| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <title>Pseudo Element Matching in Shadow DOM</title> | 3 <title>Pseudo Element Matching in Shadow DOM</title> |
| 4 <style> | 4 <style> |
| 5 input[type=range] { | 5 input[type=range] { |
| 6 -webkit-appearance: none; | 6 -webkit-appearance: none; |
| 7 } | 7 } |
| 8 </style> | 8 </style> |
| 9 <script> | 9 <script> |
| 10 | 10 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 function runTest() | 68 function runTest() |
| 69 { | 69 { |
| 70 head = document.getElementsByTagName('head')[0]; | 70 head = document.getElementsByTagName('head')[0]; |
| 71 input = document.getElementsByTagName('input')[0]; | 71 input = document.getElementsByTagName('input')[0]; |
| 72 testContainer = document.getElementById('baz'); | 72 testContainer = document.getElementById('baz'); |
| 73 logDiv = document.getElementById('log'); | 73 logDiv = document.getElementById('log'); |
| 74 log('Basic selector tests:'); | 74 log('Basic selector tests:'); |
| 75 runSelectorTest(MATCH, '::-webkit-slider-thumb'); | 75 runSelectorTest(MATCH, '::-webkit-slider-thumb'); |
| 76 runSelectorTest(MATCH, '*::-webkit-slider-thumb'); | 76 runSelectorTest(MATCH, '*::-webkit-slider-thumb'); |
| 77 runSelectorTest(NO_MATCH, '::-webkit-slider-thumb', WITH_NAMESPACES); | 77 runSelectorTest(NO_MATCH, '::-webkit-slider-thumb', WITH_NAMESPACES); |
| 78 runSelectorTest(MATCH, '*|::-webkit-slider-thumb', WITH_NAMESPACES); | 78 runSelectorTest(NO_MATCH, '*|::-webkit-slider-thumb', WITH_NAMESPACES); |
| 79 runSelectorTest(MATCH, '*|*::-webkit-slider-thumb', WITH_NAMESPACES); | 79 runSelectorTest(MATCH, '*|*::-webkit-slider-thumb', WITH_NAMESPACES); |
| 80 runSelectorTest(MATCH, 'html|::-webkit-slider-thumb', WITH_NAMESPACES); | 80 runSelectorTest(NO_MATCH, 'html|::-webkit-slider-thumb', WITH_NAMESPACES); |
| 81 runSelectorTest(MATCH, 'html|*::-webkit-slider-thumb', WITH_NAMESPACES); | 81 runSelectorTest(MATCH, 'html|*::-webkit-slider-thumb', WITH_NAMESPACES); |
| 82 runSelectorTest(MATCH, '#foo::-webkit-slider-thumb'); | 82 runSelectorTest(MATCH, '#foo::-webkit-slider-thumb'); |
| 83 runSelectorTest(MATCH, '.bar::-webkit-slider-thumb'); | 83 runSelectorTest(MATCH, '.bar::-webkit-slider-thumb'); |
| 84 runSelectorTest(NO_MATCH, '#foo::-webkit-slider-thumb', WITH_NAMESPACES); | 84 runSelectorTest(NO_MATCH, '#foo::-webkit-slider-thumb', WITH_NAMESPACES); |
| 85 runSelectorTest(NO_MATCH, '.bar::-webkit-slider-thumb', WITH_NAMESPACES); | 85 runSelectorTest(NO_MATCH, '.bar::-webkit-slider-thumb', WITH_NAMESPACES); |
| 86 runSelectorTest(MATCH, 'html|#foo::-webkit-slider-thumb', WITH_NAMESPACES); | 86 runSelectorTest(NO_MATCH, 'html|#foo::-webkit-slider-thumb', WITH_NAMESPACES
); |
| 87 runSelectorTest(MATCH, 'html|.bar::-webkit-slider-thumb', WITH_NAMESPACES); | 87 runSelectorTest(NO_MATCH, 'html|.bar::-webkit-slider-thumb', WITH_NAMESPACES
); |
| 88 runSelectorTest(MATCH, '*|#foo::-webkit-slider-thumb', WITH_NAMESPACES); | 88 runSelectorTest(NO_MATCH, '*|#foo::-webkit-slider-thumb', WITH_NAMESPACES); |
| 89 runSelectorTest(MATCH, 'input::-webkit-slider-thumb'); | 89 runSelectorTest(MATCH, 'input::-webkit-slider-thumb'); |
| 90 runSelectorTest(MATCH, 'input#foo::-webkit-slider-thumb'); | 90 runSelectorTest(MATCH, 'input#foo::-webkit-slider-thumb'); |
| 91 runSelectorTest(MATCH, 'input.bar::-webkit-slider-thumb'); | 91 runSelectorTest(MATCH, 'input.bar::-webkit-slider-thumb'); |
| 92 runSelectorTest(NO_MATCH, 'input::-webkit-slider-thumb', WITH_NAMESPACES); | 92 runSelectorTest(NO_MATCH, 'input::-webkit-slider-thumb', WITH_NAMESPACES); |
| 93 runSelectorTest(NO_MATCH, 'input#foo::-webkit-slider-thumb', WITH_NAMESPACES
); | 93 runSelectorTest(NO_MATCH, 'input#foo::-webkit-slider-thumb', WITH_NAMESPACES
); |
| 94 runSelectorTest(NO_MATCH, 'input.bar::-webkit-slider-thumb', WITH_NAMESPACES
); | 94 runSelectorTest(NO_MATCH, 'input.bar::-webkit-slider-thumb', WITH_NAMESPACES
); |
| 95 runSelectorTest(MATCH, 'html|input::-webkit-slider-thumb', WITH_NAMESPACES); | 95 runSelectorTest(MATCH, 'html|input::-webkit-slider-thumb', WITH_NAMESPACES); |
| 96 runSelectorTest(MATCH, 'html|input#foo::-webkit-slider-thumb', WITH_NAMESPAC
ES); | 96 runSelectorTest(MATCH, 'html|input#foo::-webkit-slider-thumb', WITH_NAMESPAC
ES); |
| 97 runSelectorTest(MATCH, 'html|input.bar::-webkit-slider-thumb', WITH_NAMESPAC
ES); | 97 runSelectorTest(MATCH, 'html|input.bar::-webkit-slider-thumb', WITH_NAMESPAC
ES); |
| 98 runSelectorTest(MATCH, '*|input#foo::-webkit-slider-thumb', WITH_NAMESPACES)
; | 98 runSelectorTest(MATCH, '*|input#foo::-webkit-slider-thumb', WITH_NAMESPACES)
; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 </head> | 135 </head> |
| 136 <body onload="runTest()"> | 136 <body onload="runTest()"> |
| 137 <p>Tests various selector combinations, containing unknown pseudo element se
lectors.</p> | 137 <p>Tests various selector combinations, containing unknown pseudo element se
lectors.</p> |
| 138 <div id="baz" class="qux"> | 138 <div id="baz" class="qux"> |
| 139 <span id="sib" class="ling">Sibling</span> | 139 <span id="sib" class="ling">Sibling</span> |
| 140 <input id="foo" class="bar" type="range"> | 140 <input id="foo" class="bar" type="range"> |
| 141 </div> | 141 </div> |
| 142 <div id="log"></div> | 142 <div id="log"></div> |
| 143 </body> | 143 </body> |
| 144 </html> | 144 </html> |
| OLD | NEW |