OLD | NEW |
| (Empty) |
1 <!doctype html> | |
2 <script> | |
3 var proto = Object.create(HTMLElement.prototype); | |
4 proto.createdCallback = function() { | |
5 var root = this.createShadowRoot(); | |
6 document.querySelector('li').matches('::content *'); | |
7 }; | |
8 var MyList = document.registerElement("my-list", { prototype: proto }); | |
9 </script> | |
10 <my-list> | |
11 <li></li> | |
12 </my-list> | |
13 <div>crbug.com/489911 blink crashy with shadow DOM</div> | |
14 <div>If this test passes, no crash occurs and "PASS" is shown.</div> | |
15 <div id="result"></div> | |
16 <script> | |
17 if (window.testRunner) | |
18 testRunner.dumpAsText(); | |
19 result.textContent = "PASS"; | |
20 </script> | |
OLD | NEW |