gecko-dev/testing/web-platform/tests/css/css-syntax/charset-is-not-a-rule.html
Tab Atkins Jr 160cc7df98 Bug 1523562 [wpt PR 15058] - @charset isn't a valid rule and should be dropped, a=testonly
Automatic update from web-platform-tests
@charset isn't a valid rule and should be dropped
--
Spaces, not tabs :(
--
Merge pull request #15058 from web-platform-tests/tabatkins-patch-2

@charset isn't a valid rule and should be dropped
--

wpt-commits: 77561fc06acd05384ce8c70479d8bcb10325b81b, b483a4f829a044371555c5a7b90e57c53a66a804, 388ba3a049a3473b1945b9f8f81e9d6e342a249e
wpt-pr: 15058
2019-02-07 21:51:06 +00:00

17 lines
559 B
HTML

<!doctype html>
<title>@charset isn't a valid rule and should be dropped</title>
<meta name="author" title="Tab Atkins-Bittner">
<link rel=help href="https://drafts.csswg.org/css-syntax/#charset-rule">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style>
@charset "utf-8";
@charset "utf-8";
foo { color: blue; }
@charset "utf-8";
</style>
<script>
test(()=>{
assert_true(document.styleSheets[0].cssRules.length == 1)
}, "@charset isn't a valid rule and shouldn't show up in the OM");
</script>