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> | |
6 if (window.internals) | |
7 window.internals.settings.setCSSExclusionsEnabled(true); | |
8 </script> | |
9 <!-- | 5 <!-- |
10 The shape-inside polygon is just a square rotated 90 degrees. The X and Y offset
s of the inset "padded" | 6 The shape-inside polygon is just a square rotated 90 degrees. The X and Y offset
s of the inset "padded" |
11 boundary are padding * sqrt(2). To make the bouunds of the padded boundary work
out to integral values | 7 boundary are padding * sqrt(2). To make the bouunds of the padded boundary work
out to integral values |
12 (as specified for the SVG polygon), the padding distance is 10 * sqrt(2) = 14.14
2, which makes the X and Y | 8 (as specified for the SVG polygon), the padding distance is 10 * sqrt(2) = 14.14
2, which makes the X and Y |
13 offsets 20. | 9 offsets 20. |
14 --> | 10 --> |
15 <style> | 11 <style> |
16 #shape-inside { | 12 #shape-inside { |
17 position: relative; | 13 position: relative; |
18 width: 500px; | 14 width: 500px; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 | 54 |
59 shouldBe("shapeInsideRect('b').top", "250"); | 55 shouldBe("shapeInsideRect('b').top", "250"); |
60 shouldBeCloseTo("shapeInsideRect('b').left", 150, 1, quiet) | 56 shouldBeCloseTo("shapeInsideRect('b').left", 150, 1, quiet) |
61 shouldBe("shapeInsideRect('b').width", "300"); | 57 shouldBe("shapeInsideRect('b').width", "300"); |
62 | 58 |
63 shouldBe("shapeInsideRect('c').top", "350"); | 59 shouldBe("shapeInsideRect('c').top", "350"); |
64 shouldBeCloseTo("shapeInsideRect('c').left", 250, 1, quiet); | 60 shouldBeCloseTo("shapeInsideRect('c').left", 250, 1, quiet); |
65 shouldBe("shapeInsideRect('c').width", "100"); | 61 shouldBe("shapeInsideRect('c').width", "100"); |
66 </script> | 62 </script> |
67 </html> | 63 </html> |
OLD | NEW |