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

Side by Side Diff: LayoutTests/fast/dom/shadow/pseudo-attribute-dynamic.html

Issue 187573002: Revert "Reverting custom pseudo element". (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 #host::x-foo {
6 color: red;
7 }
8
9 #host::x-bar {
10 color: blue;
11 }
12 </style>
13 </head>
14 <body>
15
16 <p>This test checks dynamic 'pseudo' attribute should reflect style.</p>
17
18 <div id="host"></div>
19
20 <script>
21 if (window.testRunner)
22 testRunner.waitUntilDone();
23
24 var shadowRoot = host.createShadowRoot();
25 var div = document.createElement('div');
26 div.pseudo = 'x-foo';
27 div.innerHTML = "This should be blue.";
28 shadowRoot.appendChild(div);
29
30 setTimeout(function() {
31 div.pseudo = 'x-bar';
32 if (window.testRunner)
33 testRunner.notifyDone();
34 }, 0);
35 </script>
36 </body>
37 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/shadow/pseudo-attribute.html ('k') | LayoutTests/fast/dom/shadow/pseudo-attribute-dynamic-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698