OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <meta charset="utf-8"> |
| 3 <title>CSS Test: display: contents inside a flex container</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 <style> |
| 8 .flex { |
| 9 display: flex; |
| 10 } |
| 11 .inline { |
| 12 display: inline; |
| 13 } |
| 14 .contents { |
| 15 display: contents; |
| 16 border: 1px solid red; |
| 17 } |
| 18 </style> |
| 19 <p>Test passes if you see the word "PASS", with a "0" under the first "S", and n
o red</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> |
OLD | NEW |