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

Side by Side Diff: LayoutTests/fast/dom/shadow/shadowdom-for-fieldset-only-shadow.html

Issue 14594006: Remove Internals::createShadowRoot(element) and polyfill.js. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="resources/polyfill.js"></script>
3 2
4 <p>When the AuthorShadowDOM has only a shadow element, this should be rendered l ike no Shadow DOM is added.</p> 3 <p>When the AuthorShadowDOM has only a shadow element, this should be rendered l ike no Shadow DOM is added.</p>
5 <form> 4 <form>
6 <fieldset id="host"> 5 <fieldset id="host">
7 <legend>legend</legend> 6 <legend>legend</legend>
8 <input type="text"></input> 7 <input type="text"></input>
9 </fieldset> 8 </fieldset>
10 <input id="submit" type="submit" value="Submit"> 9 <input id="submit" type="submit" value="Submit">
11 </form> 10 </form>
12 11
13 <script> 12 <script>
14 if (window.internals) 13 if (window.internals)
15 internals.settings.setAuthorShadowDOMForAnyElementEnabled(true); 14 internals.settings.setAuthorShadowDOMForAnyElementEnabled(true);
16 15
17 var host = document.getElementById('host'); 16 var host = document.getElementById('host');
18 var shadowRoot = host.webkitCreateShadowRoot(); 17 var shadowRoot = host.webkitCreateShadowRoot();
19 shadowRoot.innerHTML = "<shadow></shadow>" 18 shadowRoot.innerHTML = "<shadow></shadow>"
20 </script> 19 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698