summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/css/pseudo-escaped-parenthesis.html
blob: a352f8cf2ab48c0e56c2eb0b98b03b4edc67dd61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<!DOCTYPE html>
<html>
<head>
    <title>Pseudo classes with escaped start parenthesis</title>
    <script src="../../resources/testharness.js"></script>
    <script src="../../resources/testharnessreport.js"></script>
    <style>:-webkit-any\( {}</style>
    <style>:nth-child\( {}</style>
    <style>:nth-of-type\( {}</style>
    <style>:nth-last-child\( {}</style>
    <style>:nth-last-of-type\( {}</style>
    <style>:lang\( {}</style>
    <style>:not\( {}</style>
    <style>:cue\( {}</style>
    <style>:part\( {}</style>
    <style>:host\( {}</style>
</head>
<body>
    <p id="log"></p>
    <script>
        var sheets = document.styleSheets;

        test(function(){
            assert_equals(sheets.length, 10, "StyleSheets.length");
        }, "All stylesheets present")

        for (var i=0; i<sheets.length; i++) {
            test(function(){
                assert_equals(sheets[i].cssRules.length, 0, "cssRules.length");
            }, "Drop \"" + sheets[i].ownerNode.firstChild.data + "\"");
        }
    </script>
</body>
</html>