summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/css/pseudostyle-anonymous-text.html
blob: 39c9f4acbbf685659a675255f472eae1c67ccad5 (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
<html>
<head>
    <style>
        select::selection { color: red; }
        input[type="button"]::selection { color: red; }
    </style>
    <script>
        function test() {
            if (window.testRunner)
                testRunner.dumpAsText();
            document.execCommand("SelectAll");
        }
    </script>
</head>
<body onload="test()">
    This tests that this crasher is fixed:<br>
    http://bugs.webkit.org/show_bug.cgi?id=10139<br>
    REGRESSION: Reproducible crash when selecting a popup/button with ::selection pseudostyle"<br>
    <select>
        <option>Option 1</option>
    </select>
    <input type="button" value="button"></input>
</body>
</html>