Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(419)

Side by Side Diff: LayoutTests/fast/dom/shadow/hit-test-inside-shadow-root.html

Issue 1204933006: Elements moved from a shadow root to a detached tree should clear their IsInShadowTree Flag (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <sub id="sub">
3 </sub>
4 <del id="del">
5 <i id="italic"></i>
6 </del>
7 <div id="div"></div>
8 <script>
9 text = document.createTextNode('Text');
10 italic.appendChild(text);
11
12 shadow = sub.createShadowRoot();
13 shadow.appendChild(del);
14
15 // Take the text node out of the document
16 section = document.createElement('div');
17 section.appendChild(sub);
18 div.appendChild(text);
19 </script>
20 <p>crbug.com/491844 Moving a node from inside a shadow-root to a detached tree s hould not crash when we hit-test it. Hover over 'Text' to test. </p>
21 <div id="result">Test passes if it does not crash.</div>
22 <script>
23 if (window.testRunner) {
24 testRunner.dumpAsText();
25 eventSender.mouseMoveTo(10, 10);
26 eventSender.mouseDown();
27 eventSender.mouseUp();
28 }
29 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/shadow/hit-test-inside-shadow-root-expected.txt » ('j') | Source/core/dom/Element.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698