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

Side by Side Diff: LayoutTests/fast/dom/shadow/distributed-pseudo-element-style-in-doc.html

Issue 212123002: Unship '::-webkit-distributed(...)' functional pseudo element. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased 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 ::-webkit-distributed(h1) {
6 border: 1px solid currentcolor;
7 }
8 h1 {
9 color: red;
10 }
11 </style>
12
13 <template>
14 <content select="#second"></content>
15 </template>
16
17 <script>
18 function runTest() {
19 var host = document.querySelector('#shadowhost');
20 var shadow = host.createShadowRoot();
21 shadow.innerHTML = document.querySelector('template').innerHTML;
22 }
23 </script>
24 </head>
25 <body onload="runTest()">
26 <div id='shadowhost'>
27 <h1 id='first'>First element</h1>
28 <h1 id='second'>I should be red without a border</h1>
29 </div>
30 </body>
31 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698