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="../../js/resources/js-test-pre.js"></script> |
5 <script src="../resources/subpixel-utils.js"></script> | 5 <script src="../resources/subpixel-utils.js"></script> |
6 <script> | |
7 if (window.internals) | |
8 window.internals.settings.setCSSExclusionsEnabled(true); | |
9 </script> | |
10 <style> | 6 <style> |
11 #shape-inside { | 7 #shape-inside { |
12 position: relative; | 8 position: relative; |
13 margin: 0; | 9 margin: 0; |
14 padding: 0; | 10 padding: 0; |
15 width: 500px; | 11 width: 500px; |
16 height: 500px; | 12 height: 500px; |
17 -webkit-shape-inside: polygon(0px 0px, 400px 0px, 400px 350px, 0px 350px
, 200px 175px); | 13 -webkit-shape-inside: polygon(0px 0px, 400px 0px, 400px 350px, 0px 350px
, 200px 175px); |
18 -webkit-shape-padding: 50px; | 14 -webkit-shape-padding: 50px; |
19 font: 50px/1 Ahem, sans-serif; | 15 font: 50px/1 Ahem, sans-serif; |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 shouldBe("shapeInsideRect('b').top", "150"); | 76 shouldBe("shapeInsideRect('b').top", "150"); |
81 shouldBeCloseTo("shapeInsideRect('b').left", 250, 1) | 77 shouldBeCloseTo("shapeInsideRect('b').left", 250, 1) |
82 shouldBe("shapeInsideRect('b').width", "100"); | 78 shouldBe("shapeInsideRect('b').width", "100"); |
83 | 79 |
84 shouldBe("shapeInsideRect('c').top", "250"); | 80 shouldBe("shapeInsideRect('c').top", "250"); |
85 shouldBeCloseTo("shapeInsideRect('c').left", SubPixelLayout.snapToLayoutUnit(1
90.215), 1, quiet); | 81 shouldBeCloseTo("shapeInsideRect('c').left", SubPixelLayout.snapToLayoutUnit(1
90.215), 1, quiet); |
86 shouldBe("shapeInsideRect('c').width", "150"); | 82 shouldBe("shapeInsideRect('c').width", "150"); |
87 </script> | 83 </script> |
88 </html> | 84 </html> |
89 | 85 |
OLD | NEW |