Fix an assertion failure in Layout 2020

The recent changes to containing blocks, exposed an issue in the
StyleExt trait:

 - When deciding whether an element creates a reference frame, whether
   or not it is a non-replaced inline is taken into account when
   determining if it has a transform.
 - When deciding whether an element creates a stacking context for all
   descendants, whether or not it is a non-replaced inline is *not*
   taken into account when determining if it has a transform.

In both cases, elements that are inline should not be considered to have
transforms. This commit fixes that issue as well as making it so that
inlines cannot be transformed. Note that is also breaks transforms on
replaced elements, but that functionality was fairly half-baked due to
the inconsistent determination of transforms.
This commit is contained in:
Martin Robinson 2023-05-03 17:53:27 +02:00
parent 4e37d07ea4
commit 932dc72402
13 changed files with 28 additions and 17 deletions

View file

@ -1,2 +0,0 @@
[css-transforms-3d-on-anonymous-block-001.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[perspective-untransformable-no-stacking-context.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[transform-applies-to-002.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[transform-inline-001.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[transform-table-001.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[transform-table-002.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[transform-table-003.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[transform-table-004.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[transform-table-005.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[transform3d-image-scale-001.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[filter-cb-abspos-inline-002.html]
expected: FAIL

View file

@ -1,3 +0,0 @@
[element_parentOffset.html]
[element_parentOffset]
expected: FAIL