Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / css1 / units / rounding.html
blobaeb65cfbf8f127a3ef020be3c73cc69767f4103c
1 <html>
2 <head>
3 <style type="text/css">
4 body, div {
5 margin: 0;
6 padding: 0;
7 border: 0;
9 #top, #bottom {
10 line-height: 1.5;
11 font-size: 70%;
12 background:green;
13 color:white;
14 width:100%;
16 #top {
17 padding:.6em 0 .7em;
19 #bottom {
20 position:absolute;
21 top:2.8em;
23 </style>
24 </head>
25 <body>
27 <div id="top">no gap below</div>
28 <div id="bottom">no gap above</div>
30 <div id="description"></div>
31 <div id="console"></div>
32 <script src="../../resources/js-test.js"></script>
33 <script>
35 description("This test checks that floating point rounding doesn't cause misalignment. There should be no gap between the divs.");
37 var divtop = document.getElementById("top").getBoundingClientRect();
38 var divbottom = document.getElementById("bottom").getBoundingClientRect();
39 shouldBe('Math.round(divtop.bottom)', '31');
40 shouldBe('Math.round(divbottom.top)', '31');
42 </script>
45 </body>
46 </html>