mirror of
https://github.com/servo/servo.git
synced 2025-08-16 02:45:36 +01:00
layout: Make transform-style: preserve-3d
establish a containing block for all descendants (#35808)
* layout: Fix behavior of `transform-style: preserve-3d` This makes `transform-style: preserve-3d` establish a containing block for all descendants, as specified here: <https://drafts.csswg.org/css-transforms-2/#transform-style-property> Signed-off-by: Daniel Hast <hast.daniel@protonmail.com> * layout: Check for transformable elements Adds a new `is_transformable` helper method and use this in several other methods, including the methods for whether the fragment establishes a new stacking context or a containing block for all descendants. Signed-off-by: Daniel Hast <hast.daniel@protonmail.com> * Use generic green square reference for reftest. Signed-off-by: Daniel Hast <hast.daniel@protonmail.com> * layout: Fix stacking context & containing block checks. Only the computed value of `transform-style` should be used to determine whether the element establishes a stacking context and/or a containing block, not the used value. Signed-off-by: Daniel Hast <hast.daniel@protonmail.com> * Update clip-no-stacking-context test expectation to pass. Signed-off-by: Daniel Hast <hast.daniel@protonmail.com> --------- Signed-off-by: Daniel Hast <hast.daniel@protonmail.com>
This commit is contained in:
parent
991635eefb
commit
34b000c86e
4 changed files with 50 additions and 14 deletions
|
@ -1,2 +0,0 @@
|
|||
[clip-no-stacking-context.html]
|
||||
expected: FAIL
|
Loading…
Add table
Add a link
Reference in a new issue