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

Side by Side Diff: third_party/WebKit/LayoutTests/css-display-3/display-contents-first-letter-001.html

Issue 2450093005: Support display: contents for elements, first-line and first-letter pseudos. (Closed)
Patch Set: Support display: contents for elements, first-line and first-letter pseudos. Created 4 years, 1 month 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <meta charset="utf-8"> 2 <meta charset="utf-8">
3 <title>CSS Display: display:contents and ::first-letter</title> 3 <title>CSS Display: display:contents and ::first-letter</title>
4 <link rel="author" title="Rune Lillesveen" href="mailto:rune@opera.com"> 4 <link rel="author" title="Rune Lillesveen" href="mailto:rune@opera.com">
5 <link rel="help" href="https://drafts.csswg.org/css-display-3/#valdef-display-co ntents"> 5 <link rel="help" href="https://drafts.csswg.org/css-display-3/#valdef-display-co ntents">
6 <link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#first-letter-pseud o"> 6 <link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#first-letter-pseud o">
7 <link rel="match" href="display-contents-pass-green-no-red-ref.html"> 7 <link rel="match" href="display-contents-pass-green-no-red-ref.html">
8 <style> 8 <style>
9 /* FIXME: when crbug.com/6122 is fixed we can just use the imported tests */
10 html { font-kerning: none; }
9 #contents { display: contents } 11 #contents { display: contents }
10 #contents::first-letter { background-color: red } 12 #contents::first-letter { background-color: red }
11 #container::first-letter { color: green } 13 #container::first-letter { color: green }
12 span { color: green } 14 span { color: green }
13 </style> 15 </style>
14 <p>You should see the word PASS in green and no red below.</p> 16 <p>You should see the word PASS in green and no red below.</p>
15 <div id="container"> 17 <div id="container">
16 <div id="contents">P<span>ASS</span></div> 18 <div id="contents">P<span>ASS</span></div>
17 </div> 19 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698