layer.html (905B)
1 <!doctype html> 2 <meta charset="utf-8"> 3 <title>@layer rule parsing / serialization</title> 4 <link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io"> 5 <link rel="author" title="Mozilla" href="https://mozilla.org"> 6 <link rel="help" href="https://drafts.csswg.org/css-cascade-5/#layering"> 7 <script src="/resources/testharness.js"></script> 8 <script src="/resources/testharnessreport.js"></script> 9 <script src="/css/support/parsing-testcommon.js"></script> 10 <script> 11 test_valid_rule("@layer A;"); 12 test_valid_rule("@layer A, B, C;"); 13 test_valid_rule("@layer A.A;"); 14 test_valid_rule("@layer A, B.C.D, C;"); 15 16 test_invalid_rule("@layer;"); 17 test_invalid_rule("@layer A . A;"); 18 19 test_valid_rule("@layer {\n}"); 20 test_valid_rule("@layer A {\n}"); 21 test_valid_rule("@layer A.B {\n}"); 22 test_invalid_rule("@layer A . B {\n}"); 23 24 test_invalid_rule("@layer A, B, C {\n}"); 25 </script>