mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
- [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #35390 - [X] There are tests for these changes [Successful WPT run](https://github.com/reesmichael1/servo/actions/runs/14097679625) (which includes the new test files) (I didn't make the formatting changes intentionally--those came from `mach format` following `mach test-tidy`.) --------- Signed-off-by: Michael Rees <mrees@noeontheend.com>
This commit is contained in:
parent
f29c182929
commit
dfcd9de138
8 changed files with 53 additions and 0 deletions
|
@ -746,6 +746,12 @@ impl ComputedValuesExt for ComputedValues {
|
|||
return true;
|
||||
}
|
||||
|
||||
// From https://www.w3.org/TR/CSS22/visuren.html#z-index:
|
||||
// > The root element forms the root stacking context.
|
||||
if fragment_flags.contains(FragmentFlags::IS_ROOT_ELEMENT) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// TODO: We need to handle CSS Contain here.
|
||||
false
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue