mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision b'1d9b01e2fad6af3a057d571b1e088e15fa9bc8e6'
This commit is contained in:
parent
cfef75c99b
commit
bb34f95b33
1683 changed files with 37170 additions and 4252 deletions
|
@ -117,4 +117,54 @@ test((t) => {
|
|||
assert_equals(getComputedStyle(inner1).zIndex, 'auto');
|
||||
assert_equals(getComputedStyle(inner2).zIndex, '1');
|
||||
}, 'Nesting-selector in the scope\'s <stylesheet>');
|
||||
</script>
|
||||
|
||||
<template id=test_parent_in_pseudo_scope>
|
||||
<div>
|
||||
<style>
|
||||
@scope (#div) {
|
||||
:scope {
|
||||
z-index: 1;
|
||||
& {
|
||||
z-index: 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<div id=div></div>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
test((t) => {
|
||||
t.add_cleanup(() => main.replaceChildren());
|
||||
main.append(test_parent_in_pseudo_scope.content.cloneNode(true));
|
||||
|
||||
assert_equals(getComputedStyle(div).zIndex, '2');
|
||||
}, 'Nesting-selector within :scope rule');
|
||||
</script>
|
||||
|
||||
<template id=test_parent_in_pseudo_scope_double>
|
||||
<div>
|
||||
<style>
|
||||
@scope (#div) {
|
||||
:scope {
|
||||
z-index: 1;
|
||||
& {
|
||||
& {
|
||||
z-index: 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<div id=div></div>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
test((t) => {
|
||||
t.add_cleanup(() => main.replaceChildren());
|
||||
main.append(test_parent_in_pseudo_scope_double.content.cloneNode(true));
|
||||
|
||||
assert_equals(getComputedStyle(div).zIndex, '2');
|
||||
}, 'Nesting-selector within :scope rule (double nested)');
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue