4 Ref test for https://bugs.webkit.org/show_bug.cgi?id=71488 (Add support for background-color in region styling).
5 Setting the background color is not enabled for inline elements.
6 You should not see any red background below.
11 font-family: webkit-ahem;
13 src: url(../../../resources/Ahem.ttf);
16 .regionBox { width: 300px; height: 50px; }
17 span { font-family: webkit-ahem; -webkit-font-smoothing: none; }
19 #article1 { position: absolute; top: 10px; }
20 #span1 { background-color: green; }
21 @-webkit-region #region1 { #span1 { background-color: red; } }
23 #article2 { position: absolute; top: 70px; }
24 #span2 { display: block; background-color: green; }
25 @-webkit-region #region2 { #span2 { background-color: red; } }
29 <div id="article1" class="regionBox">
30 <span id="span1">R: 00 G: 80 B: 00</span>
33 <div id="article2" class="regionBox">
34 <span id="span2">R: 00 G: 80 B: 00</span>
37 document.getElementById("span2").style.display = "inline";