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
20 lines
546 B
HTML
20 lines
546 B
HTML
<!DOCTYPE html>
|
|
<title>CSS Syntax: trailing braces</title>
|
|
<link rel="help" href="https://drafts.csswg.org/css-syntax-1/">
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<style id=style>
|
|
#target1 {
|
|
color:green;
|
|
color:red{};
|
|
color:red {};
|
|
}
|
|
</style>
|
|
<div id=target1>Green</div>
|
|
<script>
|
|
test(() => {
|
|
let rules = style.sheet.rules;
|
|
assert_equals(rules.length, 1);
|
|
assert_equals(rules[0].style.color, 'green');
|
|
}, 'Trailing braces are not valid');
|
|
</script>
|