зеркало из https://github.com/mozilla/gecko-dev.git
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
This commit is contained in:
Родитель
f048b225c6
Коммит
160cc7df98
|
@ -0,0 +1,17 @@
|
|||
<!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>
|
Загрузка…
Ссылка в новой задаче