mirror of
https://github.com/servo/servo.git
synced 2025-08-08 06:55:31 +01:00
Update web-platform-tests to revision b'065cf84e9f00d1c11faf2a41e500a73ad6b95a48'
This commit is contained in:
parent
4931ee0eba
commit
4e30ee5e08
184 changed files with 7097 additions and 2788 deletions
|
@ -93,3 +93,28 @@ test((t) => {
|
|||
assert_equals(getComputedStyle(outside).zIndex, 'auto');
|
||||
}, 'Relative selectors in <scope-end>');
|
||||
</script>
|
||||
|
||||
<template id=test_inner_nest>
|
||||
<div>
|
||||
<style>
|
||||
@scope (.a) {
|
||||
& + & {
|
||||
z-index:1;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<div class=a>
|
||||
<div id=inner1 class=a></div>
|
||||
<div id=inner2 class=a></div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
test((t) => {
|
||||
t.add_cleanup(() => main.replaceChildren());
|
||||
main.append(test_inner_nest.content.cloneNode(true));
|
||||
|
||||
assert_equals(getComputedStyle(inner1).zIndex, 'auto');
|
||||
assert_equals(getComputedStyle(inner2).zIndex, '1');
|
||||
}, 'Nesting-selector in the scope\'s <stylesheet>');
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue