| 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 } | 17 } |
| 18 | 18 |
| 19 #float-left { | 19 #float-left { |
| 20 float: left; | 20 float: left; |
| 21 position: relative; | 21 position: relative; |
| 22 overflow: visible; | 22 overflow: visible; |
| 23 shape-outside: ellipse(225px, 125px, 200px, 100px); | 23 shape-outside: ellipse(200px 100px at 225px 125px); |
| 24 shape-margin: 25px; | 24 shape-margin: 25px; |
| 25 width: 450px; | 25 width: 450px; |
| 26 height: 250px; | 26 height: 250px; |
| 27 } | 27 } |
| 28 | 28 |
| 29 #svg-shape-ellipse { | 29 #svg-shape-ellipse { |
| 30 position: absolute; | 30 position: absolute; |
| 31 display:block; | 31 display:block; |
| 32 top: 0px; | 32 top: 0px; |
| 33 left: 0px; | 33 left: 0px; |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 | 78 |
| 79 shouldBe("elementRect('s2').top", "20"); | 79 shouldBe("elementRect('s2').top", "20"); |
| 80 shouldBe("elementRect('s2').left", marginEllipseLeftXIntercept(40, 225, 225, 125
), quiet); | 80 shouldBe("elementRect('s2').left", marginEllipseLeftXIntercept(40, 225, 225, 125
), quiet); |
| 81 | 81 |
| 82 shouldBe("elementRect('s3').top", "40"); | 82 shouldBe("elementRect('s3').top", "40"); |
| 83 shouldBe("elementRect('s3').left", marginEllipseLeftXIntercept(60, 225, 225, 125
), quiet); | 83 shouldBe("elementRect('s3').left", marginEllipseLeftXIntercept(60, 225, 225, 125
), quiet); |
| 84 | 84 |
| 85 </script> | 85 </script> |
| 86 </html> | 86 </html> |
| 87 | 87 |
| OLD | NEW |