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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/shadow/shadowdom-for-progress-with-style.html

Issue 1751953003: Remove the support of multiple shadow roots with a user agent shadow root (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix failing tests Created 4 years, 9 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <div id="container">
5 <progress id="host" min="0" max="100" value="50"></progress>
6 </div>
7
8 <script>
9 var style = document.createElement('style');
10 style.textContent = " \
11 progress { \
12 display: block; \
13 margin: 0; \
14 padding: 0; \
15 width: auto; \
16 height: 3em; \
17 vertical-align: 0; \
18 } \
19 \
20 progress::-webkit-progress-inner-element { \
21 -webkit-appearance: progress-bar; /* We have to write this for now. Plea se see Bug 92455. */ \
22 display: block; \
23 width: 15em; \
24 height: 3em; \
25 }";
26 document.querySelector('head').appendChild(style);
27
28 if (window.internals)
29 internals.settings.setAuthorShadowDOMForAnyElementEnabled(true);
30
31 var shadowRoot = host.createShadowRoot();
32 shadowRoot.innerHTML = "<div style='margin-left: 100px'><shadow></shadow><span>( after)</span></div>";
33 </script>
34
35 </body>
36 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698