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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/csswg-test/css-scoping-1/css-scoping-shadow-host-with-before-after.html

Issue 1922043004: Import csswg-test@b2daa426addd5ccb8e9ce1c5d800f9d82603f1ec (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update W3CImportExpectations and make me owner for css-scoping-1 Created 4 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>CSS Scoping Module Level 1 - ::before and ::after pseudo elements' co ntents on a shadow host must be rendered</title>
5 <link rel="author" title="Ryosuke Niwa" href="mailto:rniwa@webkit.org"/>
6 <link rel="help" href="http://www.w3.org/TR/css-scoping-1/#selectors-data-mo del">
7 <link rel="match" href="reference/green-box.html"/>
8 </head>
9 <body>
10 <style>
11 my-host {
12 display: block;
13 width: 100px;
14 height: 100px;
15 background: red;
16 }
17 my-host::before {
18 display: block;
19 content: "";
20 width: 100px;
21 height: 25px;
22 background: green;
23 }
24 my-host::after {
25 display: block;
26 content: "";
27 width: 100px;
28 height: 25px;
29 background: green;
30 }
31 </style>
32 <p>Test passes if you see a single 100px by 100px green box below.</p>
33 <my-host>
34 <div>FAIL</div>
35 </my-host>
36 <script>
37
38 try {
39 var shadowHost = document.querySelector('my-host');
40 shadowRoot = shadowHost.attachShadow({mode: 'open'});
41 shadowRoot.innerHTML = '<div style="width: 100px; height: 50px; back ground: green"></div>';
42 } catch (exception) {
43 document.body.appendChild(document.createTextNode(exception));
44 }
45
46 </script>
47 </body>
48 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698