[css2][css-tables] z-index
property should apply to table wrapper box instead of table grid box
#11689
Labels
z-index
property should apply to table wrapper box instead of table grid box
#11689
Consider the following testcase:
CSS 2.2, 17.4 Tables in the visual formatting model states:
and
An equivalent formulation can be found in in CSS Table Module Level 3, 3.6.1. Overrides applying in all modes.
Based on these rules, the following happens for the
#in-front
element:position: fixed
andz-index: auto
position: static
andz-index: 2
.Because
z-index
has no effect on elements with static position, it is effectively ignored, causing the#in-front
element to be rendered behind the#behind
element. As a result a red square must be displayed.This contradicts observed behavior in Chrome and Firefox where instead the green square is displayed. This problem was discovered in LadybirdBrowser/ladybird#3533 where these rules are implemented based on above wording and a red square is displayed. Also the Ladybird implementation causes severe layout issues on a website which the above test case was reduced from.
Changing the Ladybird implementation to include
z-index
in the properties that apply to the table wrapper box instead of the table grid box "fixes" the Ladybird behavior both for this reduced test case and for the layout issues on the original website. Therefore, I think the formulation needs to be adjusted so thatz-index
is included in the list of properties that are used on the wrapper box.The text was updated successfully, but these errors were encountered: