Import the css-display-3 css tests.
[WebKit-https.git] / LayoutTests / imported / w3c / web-platform-tests / css / css-display-3 / display-contents-first-letter-001.html
1 <!DOCTYPE html>
2 <meta charset="utf-8">
3 <title>CSS Display: display:contents and ::first-letter</title>
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-contents">
6 <link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#first-letter-pseudo">
7 <link rel="match" href="display-contents-pass-green-no-red-ref.html">
8 <style>
9     #contents { display: contents }
10     #contents::first-letter { background-color: red }
11     #container::first-letter { color: green }
12     span { color: green }
13 </style>
14 <p>You should see the word PASS in green and no red below.</p>
15 <div id="container">
16     <div id="contents">P<span>ASS</span></div>
17 </div>