| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../../resources/js-test.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 #container-border { | 7 #container-border { |
| 8 border: 1px solid black; | 8 border: 1px solid black; |
| 9 margin: 10px; | 9 margin: 10px; |
| 10 width: 500px; | 10 width: 500px; |
| 11 } | 11 } |
| 12 | 12 |
| 13 #container { | 13 #container { |
| 14 font: 20px/1 Ahem, sans-serif; | 14 font: 20px/1 Ahem, sans-serif; |
| 15 width: 500px; | 15 width: 500px; |
| 16 height: 300px; | 16 height: 300px; |
| 17 text-align: right; | 17 text-align: right; |
| 18 } | 18 } |
| 19 | 19 |
| 20 #float-right { | 20 #float-right { |
| 21 float: right; | 21 float: right; |
| 22 position: relative; | 22 position: relative; |
| 23 overflow: visible; | 23 overflow: visible; |
| 24 shape-outside: ellipse(225px, 125px, 200px, 100px); | 24 shape-outside: ellipse(200px 100px at 225px 125px); |
| 25 shape-margin: 25px; | 25 shape-margin: 25px; |
| 26 width: 450px; | 26 width: 450px; |
| 27 height: 250px; | 27 height: 250px; |
| 28 } | 28 } |
| 29 | 29 |
| 30 #svg-shape-ellipse { | 30 #svg-shape-ellipse { |
| 31 position: absolute; | 31 position: absolute; |
| 32 display:block; | 32 display:block; |
| 33 top: 0px; | 33 top: 0px; |
| 34 left: 0px; | 34 left: 0px; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 | 80 |
| 81 shouldBe("elementRect('s2').top", "20"); | 81 shouldBe("elementRect('s2').top", "20"); |
| 82 shouldBe("elementRect('s2').right", marginEllipseRightXIntercept(40, 225, 225, 1
25), quiet); | 82 shouldBe("elementRect('s2').right", marginEllipseRightXIntercept(40, 225, 225, 1
25), quiet); |
| 83 | 83 |
| 84 shouldBe("elementRect('s3').top", "40"); | 84 shouldBe("elementRect('s3').top", "40"); |
| 85 shouldBe("elementRect('s3').right", marginEllipseRightXIntercept(60, 225, 225, 1
25), quiet); | 85 shouldBe("elementRect('s3').right", marginEllipseRightXIntercept(60, 225, 225, 1
25), quiet); |
| 86 | 86 |
| 87 </script> | 87 </script> |
| 88 </html> | 88 </html> |
| 89 | 89 |
| OLD | NEW |