fune/testing/web-platform/tests/css/css-syntax/trailing-braces.html
Anders Hartvoll Ruud ae1643df5a Bug 1857998 [wpt PR 42432] - [css-nesting-ident] Enable relaxed syntax, a=testonly
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
2023-10-26 08:57:01 +00:00

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>