Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(618)

Side by Side Diff: LayoutTests/fast/regions/region-styling/region-style-inline-background-color.html

Issue 159933010: Remove everything region-specific from LayoutTests. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 Setting the background color is enabled for inline elements.
6 You should not see any red background below.
7 -->
8 <head>
9 <style>
10 @font-face {
11 font-family: webkit-ahem;
12 font-style: normal;
13 src: url(../../../resources/Ahem.ttf);
14 }
15
16 .regionBox { width: 300px; height: 50px; }
17 span { font-family: webkit-ahem; -webkit-font-smoothing: none; }
18
19 #article1 { -webkit-flow-into: flow1; }
20 #region1 { -webkit-flow-from: flow1; position: absolute; top: 10px; }
21 #span1 { background-color: red; }
22 @-webkit-region #region1 { #span1 { background-color: green; } }
23 #article2 { -webkit-flow-into: flow2; }
24 #region2 { -webkit-flow-from: flow2; position: absolute; top: 70px; }
25 #span2 { display: block; background-color: red; }
26 @-webkit-region #region2 { #span2 { background-color: green; } }
27 </style>
28 </head>
29 <body>
30 <div id="article1">
31 <span id="span1">R: 00 G: 80 B: 00</span>
32 </div>
33 <div id="region1" class="regionBox"></div>
34 <div id="article2">
35 <span id="span2">R: 00 G: 80 B: 00</span>
36 </div>
37 <div id="region2" class="regionBox"></div>
38 <script>
39 document.getElementById("span2").style.display = "inline";
40 </script>
41 </body>
42 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698