Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / compositing / reflections / reflection-positioning2.html
blobb27278671be9c0ff1211ef7dcd9d5ae58ddeb9e2
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <meta http-equiv="Content-type" content="text/html; charset=utf-8">
5 <style type="text/css" media="screen">
7 div {
8 -webkit-box-sizing: border-box;
10 .container {
11 position: absolute;
12 left: 50px;
13 top: 50px;
15 .reflected {
16 position: relative;
17 width: 150px;
18 height: 120px;
19 border: 1px solid black;
20 -webkit-box-reflect: below 6px;
21 outline: 10px solid transparent; /* affects layer sizes */
24 .box {
25 width: 100px;
26 height: 100px;
29 .inner {
30 position: absolute;
31 top: 10px;
32 left: 10px;
33 background-color: green;
36 .composited {
37 transform: translateZ(0);
40 .inner.moved {
41 left: 25px;
44 #indicator {
45 position: absolute;
46 top: 135px;
47 left: 26px;
48 background-color: red;
50 </style>
51 <script type="text/javascript" charset="utf-8">
52 function doTest() {
53 document.getElementById('inner').className = 'inner moved box';
55 window.addEventListener('load', doTest, false);
56 </script>
57 </head>
59 <p>Position of reflected layer should update correctly. You should see no red below.</p>
60 <div class="container">
61 <div id="indicator" class="box"></div>
62 <div class="reflected composited">
63 <div id="inner" class="inner box">
64 </div>
65 </div>
66 </div>
68 </html>