mirror of
https://github.com/servo/servo.git
synced 2025-09-30 08:39:16 +01:00
Improve logic for establishing a stacking context (#35947)
In particular: - `z-index` will now work on unpositioned grid items. - `will-change: z-index` will only establish a stacking context if `z-index` applies, i.e. if the box is positioned or a flex/grid item. - The conditions in `establishes_stacking_context()` are reordered, so that the most likely ones are checked first. Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
parent
205b97d5ed
commit
f93006af95
33 changed files with 233 additions and 114 deletions
39
tests/wpt/meta/MANIFEST.json
vendored
39
tests/wpt/meta/MANIFEST.json
vendored
|
@ -307667,6 +307667,45 @@
|
|||
{}
|
||||
]
|
||||
],
|
||||
"will-change-stacking-context-z-index-2.html": [
|
||||
"9379185048a78b031e8ac290bd7bb3e5df24fa5f",
|
||||
[
|
||||
null,
|
||||
[
|
||||
[
|
||||
"/css/reference/ref-filled-green-100px-square.xht",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
{}
|
||||
]
|
||||
],
|
||||
"will-change-stacking-context-z-index-3.html": [
|
||||
"4ec40ae1a430a095ea6f703c8c27698e04792220",
|
||||
[
|
||||
null,
|
||||
[
|
||||
[
|
||||
"/css/reference/ref-filled-green-100px-square.xht",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
{}
|
||||
]
|
||||
],
|
||||
"will-change-stacking-context-z-index-4.html": [
|
||||
"d8a87b23415c3c10a6f4875f16cd63301e789152",
|
||||
[
|
||||
null,
|
||||
[
|
||||
[
|
||||
"/css/reference/ref-filled-green-100px-square.xht",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
{}
|
||||
]
|
||||
],
|
||||
"will-change-transform-add-content.html": [
|
||||
"1d8568ee629e48adfe99abab2e2194a73ae1301a",
|
||||
[
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue