forked from mirrors/gecko-dev
Automatic update from web-platform-tests [css-nesting-ident] Enable relaxed syntax I2S: https://groups.google.com/a/chromium.org/g/blink-dev/c/Ods7RbPlCjI Fixed: 1427259 Change-Id: Icf6f434f9e993aee0b32d2046e096b1e183966b8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4917199 Reviewed-by: Rune Lillesveen <futhark@chromium.org> Commit-Queue: Anders Hartvoll Ruud <andruud@chromium.org> Cr-Commit-Position: refs/heads/main@{#1207558} -- wpt-commits: 71600fa2262cfb18de5ab2ce1ac4bc641dd8dbd7 wpt-pr: 42432
22 lines
508 B
HTML
22 lines
508 B
HTML
<!DOCTYPE html>
|
|
<title>CSS Nesting: Implicit nesting (ident)</title>
|
|
<link rel="help" href="https://drafts.csswg.org/css-nesting-1/">
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<style>
|
|
#main {
|
|
div {
|
|
color: green;
|
|
}
|
|
}
|
|
</style>
|
|
<div id=main>
|
|
<div id=target>
|
|
Green
|
|
</div>
|
|
</main>
|
|
<script>
|
|
test(() => {
|
|
assert_equals(getComputedStyle(target).color, 'rgb(0, 128, 0)');
|
|
}, 'Nested rule starting with tag');
|
|
</script>
|