OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <title>CSS Test: flow-into on individual list items preserves other list
styling properties (list-style-*) even when CSS styling contradicts default CSS
styling for those HTML elements</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 list styling properties ar
e honored even for list items extracted in named flows when the CSS-specified li
st type is in opposition with the list type from the markup (ol/ul)."> | |
11 <style> | |
12 ul, ol { | |
13 margin: 0; | |
14 } | |
15 .ordered { | |
16 list-style-type: lower-latin; | |
17 } | |
18 .unordered { | |
19 list-style-type: circle; | |
20 } | |
21 .extract { | |
22 color: blue; | |
23 -webkit-flow-into: f1; | |
24 } | |
25 .container { | |
26 color: #006400; | |
27 background-color: lightgreen; | |
28 margin: 2em; | |
29 float: left; | |
30 width: 15em; | |
31 } | |
32 .region { | |
33 margin: 2em; | |
34 background-color: lightblue; | |
35 float: left; | |
36 width: 15em; | |
37 } | |
38 #r1 { | |
39 -webkit-flow-from: f1; | |
40 } | |
41 </style> | |
42 </head> | |
43 <body> | |
44 <p>Test passes if you see two rectangles, one green and one blue, as des
cribed below.</p> | |
45 <p>The green rectangle should contain a list with items numbered/marked
as such: the <strong>first two items</strong> should be numbered with small lati
n letters, starting with d. The <strong>next three items</strong> should be bull
eted with a circle. The numbers/bullets should all be <em>inside</em> the green
rectangle.</p> | |
46 <p>The blue rectangle should contain a list with items numbered/marked a
s such: the <strong>first three items</strong> should be numbered with small lat
in letters, starting with a. The <strong>next two items</strong> should be bulle
ted with a circle. The numbers/bullets should all be <em>outside</em> the blue r
ectangle.</p> | |
47 | |
48 <div class="container"> | |
49 <ul class="ordered"> | |
50 <li class="extract">Ordered list, item a</li> | |
51 <li class="extract">Ordered list, item b</li> | |
52 <li class="extract">Ordered list, item c</li> | |
53 <li>Ordered list, item d</li> | |
54 <li>Ordered list, item e</li> | |
55 </ul> | |
56 <ol class="unordered"> | |
57 <li>Unordered list, item 1</li> | |
58 <li>Unordered list, item 2</li> | |
59 <li>Unordered list, item 3</li> | |
60 <li class="extract">Unordered list, item 4</li> | |
61 <li class="extract">Unordered list, item 5</li> | |
62 </ol> | |
63 </div> | |
64 <div class="region" id="r1"></div> | |
65 </body> | |
66 </html> | |
OLD | NEW |