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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/csswg-test/css-display-3/display-contents-dynamic-flex-001-none.html

Issue 2450093005: Support display: contents for elements, first-line and first-letter pseudos. (Closed)
Patch Set: Allow text as child of the LayoutView, since it can happen with display: contents Created 4 years 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 <meta charset="utf-8">
3 <title>CSS Display 3: Display contents reattachment works well in a flex contain er</title>
4 <link rel="author" title="Emilio Cobos Álvarez" href="mailto:ecobos@igalia.com">
5 <link rel="help" href="https://drafts.csswg.org/css-display-3/#valdef-display-co ntents">
6 <link rel="match" href="display-contents-flex-001-ref.html">
7 <script src="support/util.js"></script>
8 <style>
9 .flex {
10 display: flex;
11 }
12 .inline {
13 display: inline;
14 }
15 .contents {
16 display: contents;
17 }
18 </style>
19 <p>Test passes if you see the word "PASS", with a "0" under the first "S"</p>
20 <div class="flex">
21 P
22 <div class="contents">
23 <div>A</div>
24 </div>
25 <div class="contents">
26 <div class="inline">S<div>0</div></div>
27 </div>
28 <div class="contents">
29 S
30 </div>
31 </div>
32 <script>
33 window.onload = function() {
34 eachDisplayContentsElementIn(document, window,
35 function(e) { e.style.display = 'none'; },
36 function(e) { e.style.display = ''; })
37 }
38 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698