summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/css/cue-serialize.html
blob: a93e83fe848ad2eb02ddf805435c1b9a69c98914 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!DOCTYPE html>
<style>
::cue {}
::cue(c) {}
::cue(c, .class, #id:past, i:future) {}
</style>
<script src="../../resources/js-test.js"></script>
<script>
description("Check serialization of ::cue and ::cue()");

var rules = document.styleSheets[0].cssRules;

shouldBe("rules.length", "3");
shouldBe("rules[0].selectorText", "'::cue'");
shouldBe("rules[1].selectorText", "'::cue(c)'");
shouldBe("rules[2].selectorText", "'::cue(c,.class,#id:past,i:future)'");
</script>