OLD | NEW |
| (Empty) |
1 <!doctype html> | |
2 <html> | |
3 <!-- | |
4 Test for https://bugs.webkit.org/show_bug.cgi?id=71488 (Add support for back
ground-color in region styling). | |
5 You should not see any red background below. | |
6 --> | |
7 <head> | |
8 <style> | |
9 @font-face { | |
10 font-family: webkit-ahem; | |
11 font-style: normal; | |
12 src: url(../../../resources/Ahem.ttf); | |
13 } | |
14 | |
15 p { background-color: red; font-family: webkit-ahem; } | |
16 img { background-color: red} | |
17 .regionBox2 { width: 300px; height: 100px; } | |
18 | |
19 #article { -webkit-flow-into: flow; } | |
20 #region { -webkit-flow-from: flow; position: absolute; top: 10px; } | |
21 @-webkit-region #region { | |
22 p { background-color: green; } | |
23 img { background-color: green; } | |
24 } | |
25 </style> | |
26 </head> | |
27 <body> | |
28 <div id="article"> | |
29 <!-- Green background text styled in region. --> | |
30 <p>R: 00 G: 80 B: 00</p> | |
31 <img src="resources/transparent.png"> | |
32 </div> | |
33 <div id="region" class="regionBox2"></div> | |
34 </body> | |
35 </html> | |
OLD | NEW |