OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../js/resources/js-test-pre.js"></script> | 4 <script src="../../../resources/js-test.js"></script> |
5 <script src="../resources/subpixel-utils.js"></script> | 5 <script src="../resources/subpixel-utils.js"></script> |
6 <style> | 6 <style> |
7 #shape-inside { | 7 #shape-inside { |
8 position: relative; | 8 position: relative; |
9 margin: 0; | 9 margin: 0; |
10 padding: 0; | 10 padding: 0; |
11 width: 500px; | 11 width: 500px; |
12 height: 500px; | 12 height: 500px; |
13 shape-inside: polygon(0px 0px, 400px 0px, 400px 350px, 0px 350px, 200px
175px); | 13 shape-inside: polygon(0px 0px, 400px 0px, 400px 350px, 0px 350px, 200px
175px); |
14 shape-padding: 50px; | 14 shape-padding: 50px; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 shouldBe("shapeInsideRect('b').top", "150"); | 76 shouldBe("shapeInsideRect('b').top", "150"); |
77 shouldBeCloseTo("shapeInsideRect('b').left", 250, 1) | 77 shouldBeCloseTo("shapeInsideRect('b').left", 250, 1) |
78 shouldBe("shapeInsideRect('b').width", "100"); | 78 shouldBe("shapeInsideRect('b').width", "100"); |
79 | 79 |
80 shouldBe("shapeInsideRect('c').top", "250"); | 80 shouldBe("shapeInsideRect('c').top", "250"); |
81 shouldBeCloseTo("shapeInsideRect('c').left", SubPixelLayout.snapToLayoutUnit(1
90.215), 1, quiet); | 81 shouldBeCloseTo("shapeInsideRect('c').left", SubPixelLayout.snapToLayoutUnit(1
90.215), 1, quiet); |
82 shouldBe("shapeInsideRect('c').width", "150"); | 82 shouldBe("shapeInsideRect('c').width", "150"); |
83 </script> | 83 </script> |
84 </html> | 84 </html> |
85 | 85 |
OLD | NEW |