| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <title>CSS Test: flow-into on p's and div's that use different CSS count
ers as content in ::after</title> | |
| 5 <link rel="author" title="Mihai Balan" href="mibalan@adobe.com"> | |
| 6 <link rel="help" href="http://www.w3.org/TR/css3-regions/#properties-and
-rules" /> | |
| 7 <link rel="help" href="http://www.w3.org/TR/css3-regions/#the-flow-into-
property" /> | |
| 8 <link rel="stylesheet" type="text/css" href="../resources/font-smoothing
-disabler.css"> | |
| 9 <meta name="flags" content=""> | |
| 10 <meta name="assert" content="Test checks that extracting paragraphs and
divs with content that use counters behaves as without regions."> | |
| 11 <style> | |
| 12 #container { | |
| 13 counter-reset: p 0 d 0; | |
| 14 } | |
| 15 #container p, | |
| 16 #container div { | |
| 17 -webkit-flow-into: f1; | |
| 18 margin: 0; | |
| 19 } | |
| 20 #container p, | |
| 21 #container div { | |
| 22 counter-increment: p d; | |
| 23 } | |
| 24 | |
| 25 #container p::after, | |
| 26 #container div::after { | |
| 27 display: block; | |
| 28 text-align: right; | |
| 29 border-top: medium solid black; | |
| 30 font-size: 200%; | |
| 31 } | |
| 32 | |
| 33 #container p::after { | |
| 34 color: red; | |
| 35 content: counter(p); | |
| 36 } | |
| 37 #container div::after { | |
| 38 color: green; | |
| 39 content: counter(d); | |
| 40 } | |
| 41 | |
| 42 #region { | |
| 43 width: 20em; | |
| 44 background-color: lightblue; | |
| 45 border: 1px solid lightblue; | |
| 46 -webkit-flow-from: f1; | |
| 47 } | |
| 48 </style> | |
| 49 </head> | |
| 50 <body> | |
| 51 <!-- Numbered <p>-s and <div>-s using different counters, displayed as b
locks via ::after --> | |
| 52 <p>Test passes if you see a light blue rectangle below, with eight lines
of text in it. Each line of text should be black and with a thick underline. Be
low and to the right of each line of text you should see the number of that line
, colored alternatingly red and green.</p> | |
| 53 <div id="container"> | |
| 54 <p>This is numbered line of text no. 1</p> | |
| 55 <div>This is numbered line of text no. 2</div> | |
| 56 <p>This is numbered line of text no. 3</p> | |
| 57 <div>This is numbered line of text no. 4</div> | |
| 58 <p>This is numbered line of text no. 5</p> | |
| 59 <div>This is numbered line of text no. 6</div> | |
| 60 <p>This is numbered line of text no. 7</p> | |
| 61 <div>This is numbered line of text no. 8</div> | |
| 62 </div> | |
| 63 <div id="region"></div> | |
| 64 </body> | |
| 65 </html> | |
| OLD | NEW |