WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
[patch]
Patch
tmp.patch (text/plain), 7.26 KB, created by
Hans Muller
on 2013-08-06 08:40:21 PDT
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Hans Muller
Created:
2013-08-06 08:40:21 PDT
Size:
7.26 KB
patch
obsolete
>diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog >index b8bc9fd..c1c03cc 100644 >--- a/LayoutTests/ChangeLog >+++ b/LayoutTests/ChangeLog >@@ -1,3 +1,21 @@ >+2013-08-05 Hans Muller <hmuller@adobe.com> >+ >+ [CSS Shapes] New positioning model: scripted shape-margin tests >+ https://bugs.webkit.org/show_bug.cgi?id=119491 >+ >+ Update some of the shape-margin tests to work with the new positioning model. Floats >+ that specify shape-outside are now positioned according to their margin box, not the >+ bounding box of the shape-outside shape. The tests have been revised to reflect the >+ change. >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ * TestExpectations: >+ * fast/shapes/shape-outside-floats/shape-outside-floats-diamond-margin-polygon.html: >+ * fast/shapes/shape-outside-floats/shape-outside-floats-ellipse-margin-bottom.html: >+ * fast/shapes/shape-outside-floats/shape-outside-floats-ellipse-margin-left.html: >+ * fast/shapes/shape-outside-floats/shape-outside-floats-ellipse-margin-right.html: >+ > 2013-08-05 Alexey Proskuryakov <ap@apple.com> > > <rdar://problem/13128990> chunked-progress-event-expectedLength.html is flaky on Mac >diff --git a/LayoutTests/TestExpectations b/LayoutTests/TestExpectations >index 7cd7b94..0b6df8a 100644 >--- a/LayoutTests/TestExpectations >+++ b/LayoutTests/TestExpectations >@@ -34,10 +34,6 @@ webkit.org/b/119325 dom/xhtml/level3/core/nodecomparedocumentposition38.xhtml [ > # The CSS Shapes spec has changed the positioning model for floats with shape-outside. > # Thus all of the tests need to be rewitten to work as the implementation of > # the new model is completed. >-webkit.org/b/118088 fast/shapes/shape-outside-floats/shape-outside-floats-diamond-margin-polygon.html [ Skip ] >-webkit.org/b/118088 fast/shapes/shape-outside-floats/shape-outside-floats-ellipse-margin-bottom.html [ Skip ] >-webkit.org/b/118088 fast/shapes/shape-outside-floats/shape-outside-floats-ellipse-margin-left.html [ Skip ] >-webkit.org/b/118088 fast/shapes/shape-outside-floats/shape-outside-floats-ellipse-margin-right.html [ Skip ] > webkit.org/b/118088 fast/shapes/shape-outside-floats/shape-outside-floats-left-margin-polygon.html [ Skip ] > webkit.org/b/118088 fast/shapes/shape-outside-floats/shape-outside-floats-right-margin-polygon.html [ Skip ] > >diff --git a/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-diamond-margin-polygon.html b/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-diamond-margin-polygon.html >index 42f6ffb..ee4fb36 100644 >--- a/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-diamond-margin-polygon.html >+++ b/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-diamond-margin-polygon.html >@@ -19,8 +19,10 @@ > float: left; > position: relative; > overflow: visible; >- -webkit-shape-outside: polygon(50px 0px, 100px 50px, 50px 100px, 0px 50px); >+ -webkit-shape-outside: polygon(70px 20px, 120px 70px, 70px 120px, 20px 70px); > -webkit-shape-margin: 20px; >+ width: 140px; >+ height: 140px; > } > > #svg-shape { >@@ -30,6 +32,7 @@ > left: 0px; > width: 100px; > height: 100px; >+ margin: 20px; > } > </style> > <body> >@@ -51,11 +54,16 @@ function elementRect(elementId) > return {left: r.left - s.left, top: r.top - s.top, width: r.width, height: r.height}; > } > >-// The polygon's X coordinates are 0, 50, 100, specified relative to the "float-left" element. Its shape-marign is 20px. >-// The horizontal center of the margin polygon, relative to the container element is 20*sqrt(2) + 50. So the left >-// edge of the (20px square) Ahem character on the first "l1" line (y == 20) is: 20 + (20*sqrt(2) + 50) = 98.28. >-// The second and third lines, "l2" and "l3" are similar, each one begins 20 pixels farther to the right. >-// The left edges of "l4-l6" are the same as the first three, just in reverse order. >+// The shape-outside polygon's X and Y coordinates are 20, 70, 120, specified relative to the >+// "float-left" element. Its shape-marign is 20px, which means that the X and Y limits of the >+// margin boundary are 0, and 140. This is because the margin boundary has circular arc segments >+// at the vertices, i.e. it's a rounded rectangle rotated by 45 degrees. None of the character >+// positions in this test are defined by the arc segments. >+// >+// The left edge of the (20px square) Ahem character on the first "l1" line (y == 20) is: >+// 20 + (20*sqrt(2) + 50) = 98.28. The second and third lines, "l2" and "l3" are similar, each >+// one begins 20 pixels farther to the right. The left edges of "l4-l6" are the same as the first three, >+// just in reverse order. > > function marginLeftXIntercept(lineNumber) > { >diff --git a/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-ellipse-margin-bottom.html b/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-ellipse-margin-bottom.html >index fe8b544..ea95efd 100644 >--- a/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-ellipse-margin-bottom.html >+++ b/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-ellipse-margin-bottom.html >@@ -25,15 +25,17 @@ > float: left; > position: relative; > overflow: visible; >- -webkit-shape-outside: ellipse(200px, 100px, 200px, 100px); >+ -webkit-shape-outside: ellipse(225px, 125px, 200px, 100px); > -webkit-shape-margin: 25px; >+ width: 450px; >+ height: 250px; > } > > #svg-shape-ellipse { > position: absolute; > display:block; >- top: -25px; >- left: -25px; >+ top: 0px; >+ left: 0px; > width: 500px; > height: 300px; > } >diff --git a/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-ellipse-margin-left.html b/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-ellipse-margin-left.html >index 1358c09..4c97e11 100644 >--- a/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-ellipse-margin-left.html >+++ b/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-ellipse-margin-left.html >@@ -25,15 +25,17 @@ > float: left; > position: relative; > overflow: visible; >- -webkit-shape-outside: ellipse(200px, 100px, 200px, 100px); >+ -webkit-shape-outside: ellipse(225px, 125px, 200px, 100px); > -webkit-shape-margin: 25px; >+ width: 450px; >+ height: 250px; > } > > #svg-shape-ellipse { > position: absolute; > display:block; >- top: -25px; >- left: -25px; >+ top: 0px; >+ left: 0px; > width: 500px; > height: 300px; > } >diff --git a/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-ellipse-margin-right.html b/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-ellipse-margin-right.html >index 632ec1a..86e55f8 100644 >--- a/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-ellipse-margin-right.html >+++ b/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-ellipse-margin-right.html >@@ -26,15 +26,17 @@ > float: right; > position: relative; > overflow: visible; >- -webkit-shape-outside: ellipse(200px, 100px, 200px, 100px); >+ -webkit-shape-outside: ellipse(225px, 125px, 200px, 100px); > -webkit-shape-margin: 25px; >+ width: 450px; >+ height: 250px; > } > > #svg-shape-ellipse { > position: absolute; > display:block; >- top: -25px; >- left: -25px; >+ top: 0px; >+ left: 0px; > width: 500px; > height: 300px; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
achicu
:
review+
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 119491
:
208193
|
208217