diff options
Diffstat (limited to 'tests/wpt/web-platform-tests/css/css-nesting/implicit-nesting.html')
-rw-r--r-- | tests/wpt/web-platform-tests/css/css-nesting/implicit-nesting.html | 29 |
1 files changed, 25 insertions, 4 deletions
diff --git a/tests/wpt/web-platform-tests/css/css-nesting/implicit-nesting.html b/tests/wpt/web-platform-tests/css/css-nesting/implicit-nesting.html index 05b9e04fa84..0a76dedc5bf 100644 --- a/tests/wpt/web-platform-tests/css/css-nesting/implicit-nesting.html +++ b/tests/wpt/web-platform-tests/css/css-nesting/implicit-nesting.html @@ -6,8 +6,8 @@ <style> .test { background-color: red; - width: 100px; - height: 100px; + width: 30px; + height: 30px; display: grid; } @@ -41,12 +41,30 @@ } } - .test { + .test-5 { :is(.test-5, &.does-not-exist) { background-color: green; } } + .test-6 { + > .foo,.test-6-child,+ .bar { + background-color: green; + } + } + + .test-7 { + > .foo, .bar, + .test-7-sibling { + background-color: green; + } + } + + .test-8 { + > .foo, .test-8-child, + .bar { + background-color: green; + } + } + body * + * { margin-top: 8px; } @@ -57,5 +75,8 @@ <div class="test test-2"><div class="test-2-child"></div></div> <div class="test test-3"><div class="test-3-child"></div></div> <div class="test test-4"></div> - <div class="test test-5"></div> + <div class="test test-5"><div class="test-5"></div></div> + <div class="test test-6"><div class="test-6-child"></div></div> + <div class="test test-7" style="display:none"></div><div class="test test-7-sibling"></div> + <div class="test test-8"><div class="test-8-child"></div></div> </body> |