OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <title>CSS Test: flow-into on inline elements (span's) that use a CSS co
unter as content for ::before</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 multiple elemen
ts into named flows but flowing only some of them into regions still preserves p
roper numbering via counters."> | |
11 <style> | |
12 span:nth-of-type(odd) { | |
13 -webkit-flow-into: odd; | |
14 } | |
15 span:nth-of-type(even) { | |
16 -webkit-flow-into: even; | |
17 } | |
18 #container { | |
19 counter-reset: spans 0; | |
20 } | |
21 span { | |
22 counter-increment: spans; | |
23 } | |
24 span::before { | |
25 display: inline-block; | |
26 content: counter(spans) "."; | |
27 width: 2em; | |
28 margin: 0 .5em; | |
29 background: red; | |
30 color: white; | |
31 text-align: center; | |
32 } | |
33 | |
34 #region { | |
35 background-color: lightblue; | |
36 -webkit-flow-from: even; | |
37 } | |
38 </style> | |
39 </head> | |
40 <body> | |
41 <!-- Numbered <p>-s and <div>-s using different counters, displayed as b
locks via ::after --> | |
42 <p>Test passes if you see a light blue rectangle below, with three block
s of black text on a single line. Each block of text should be numbered with eve
n numbers (2, 4, 6); the numbers should be white on a red background.</p> | |
43 <div id="container"> | |
44 <span>A bit of text 1</span> | |
45 <span>A bit of text 2</span> | |
46 <span>A bit of text 3</span> | |
47 <span>A bit of text 4</span> | |
48 <span>A bit of text 5</span> | |
49 <span>A bit of text 6</span> | |
50 </div> | |
51 <div id="region"></div> | |
52 </body> | |
53 </html> | |
OLD | NEW |