Index: LayoutTests/svg/css/parse-length-expected.txt |
diff --git a/LayoutTests/svg/css/parse-length-expected.txt b/LayoutTests/svg/css/parse-length-expected.txt |
index f437b9769d2558dd87237e655f138f60376655b4..21b92f35d20ef46bd6f7edfd4c3e5fedc788e976 100644 |
--- a/LayoutTests/svg/css/parse-length-expected.txt |
+++ b/LayoutTests/svg/css/parse-length-expected.txt |
@@ -1,3 +1,23 @@ |
+CONSOLE ERROR: Error: Invalid value for <mask> attribute x="auto" |
+CONSOLE ERROR: Error: Invalid value for <mask> attribute x="100 px" |
+CONSOLE ERROR: Error: Invalid value for <mask> attribute x="100px;" |
+CONSOLE ERROR: Error: Invalid value for <mask> attribute x="100px !important" |
+CONSOLE ERROR: Error: Invalid value for <mask> attribute x="{ 100px }" |
+CONSOLE ERROR: Error: Invalid value for <mask> attribute y="auto" |
+CONSOLE ERROR: Error: Invalid value for <mask> attribute y="100 px" |
+CONSOLE ERROR: Error: Invalid value for <mask> attribute y="100px;" |
+CONSOLE ERROR: Error: Invalid value for <mask> attribute y="100px !important" |
+CONSOLE ERROR: Error: Invalid value for <mask> attribute y="{ 100px }" |
+CONSOLE ERROR: Error: Invalid value for <svg> attribute x="auto" |
+CONSOLE ERROR: Error: Invalid value for <svg> attribute x="100 px" |
+CONSOLE ERROR: Error: Invalid value for <svg> attribute x="100px;" |
+CONSOLE ERROR: Error: Invalid value for <svg> attribute x="100px !important" |
+CONSOLE ERROR: Error: Invalid value for <svg> attribute x="{ 100px }" |
+CONSOLE ERROR: Error: Invalid value for <svg> attribute y="auto" |
+CONSOLE ERROR: Error: Invalid value for <svg> attribute y="100 px" |
+CONSOLE ERROR: Error: Invalid value for <svg> attribute y="100px;" |
+CONSOLE ERROR: Error: Invalid value for <svg> attribute y="100px !important" |
+CONSOLE ERROR: Error: Invalid value for <svg> attribute y="{ 100px }" |
CONSOLE ERROR: Error: Invalid value for <rect> attribute x="auto" |
CONSOLE ERROR: Error: Invalid value for <rect> attribute x="100 px" |
CONSOLE ERROR: Error: Invalid value for <rect> attribute x="100px;" |
@@ -8,6 +28,26 @@ CONSOLE ERROR: Error: Invalid value for <rect> attribute y="100 px" |
CONSOLE ERROR: Error: Invalid value for <rect> attribute y="100px;" |
CONSOLE ERROR: Error: Invalid value for <rect> attribute y="100px !important" |
CONSOLE ERROR: Error: Invalid value for <rect> attribute y="{ 100px }" |
+CONSOLE ERROR: Error: Invalid value for <image> attribute x="auto" |
+CONSOLE ERROR: Error: Invalid value for <image> attribute x="100 px" |
+CONSOLE ERROR: Error: Invalid value for <image> attribute x="100px;" |
+CONSOLE ERROR: Error: Invalid value for <image> attribute x="100px !important" |
+CONSOLE ERROR: Error: Invalid value for <image> attribute x="{ 100px }" |
+CONSOLE ERROR: Error: Invalid value for <image> attribute y="auto" |
+CONSOLE ERROR: Error: Invalid value for <image> attribute y="100 px" |
+CONSOLE ERROR: Error: Invalid value for <image> attribute y="100px;" |
+CONSOLE ERROR: Error: Invalid value for <image> attribute y="100px !important" |
+CONSOLE ERROR: Error: Invalid value for <image> attribute y="{ 100px }" |
+CONSOLE ERROR: Error: Invalid value for <foreignObject> attribute x="auto" |
+CONSOLE ERROR: Error: Invalid value for <foreignObject> attribute x="100 px" |
+CONSOLE ERROR: Error: Invalid value for <foreignObject> attribute x="100px;" |
+CONSOLE ERROR: Error: Invalid value for <foreignObject> attribute x="100px !important" |
+CONSOLE ERROR: Error: Invalid value for <foreignObject> attribute x="{ 100px }" |
+CONSOLE ERROR: Error: Invalid value for <foreignObject> attribute y="auto" |
+CONSOLE ERROR: Error: Invalid value for <foreignObject> attribute y="100 px" |
+CONSOLE ERROR: Error: Invalid value for <foreignObject> attribute y="100px;" |
+CONSOLE ERROR: Error: Invalid value for <foreignObject> attribute y="100px !important" |
+CONSOLE ERROR: Error: Invalid value for <foreignObject> attribute y="{ 100px }" |
CONSOLE ERROR: Error: Invalid negative value for <rect> attribute rx="-200px" |
CONSOLE ERROR: Error: Invalid negative value for <rect> attribute ry="-200px" |
CONSOLE ERROR: Error: Invalid value for <rect> attribute rx="auto" |
@@ -20,55 +60,194 @@ CONSOLE ERROR: Error: Invalid value for <rect> attribute ry="100 px" |
CONSOLE ERROR: Error: Invalid value for <rect> attribute ry="100px;" |
CONSOLE ERROR: Error: Invalid value for <rect> attribute ry="100px !important" |
CONSOLE ERROR: Error: Invalid value for <rect> attribute ry="{ 100px }" |
+CONSOLE ERROR: Error: Invalid negative value for <ellipse> attribute rx="-200px" |
+CONSOLE ERROR: Error: Invalid negative value for <ellipse> attribute ry="-200px" |
+CONSOLE ERROR: Error: Invalid value for <ellipse> attribute rx="auto" |
+CONSOLE ERROR: Error: Invalid value for <ellipse> attribute rx="100 px" |
+CONSOLE ERROR: Error: Invalid value for <ellipse> attribute rx="100px;" |
+CONSOLE ERROR: Error: Invalid value for <ellipse> attribute rx="100px !important" |
+CONSOLE ERROR: Error: Invalid value for <ellipse> attribute rx="{ 100px }" |
+CONSOLE ERROR: Error: Invalid value for <ellipse> attribute ry="auto" |
+CONSOLE ERROR: Error: Invalid value for <ellipse> attribute ry="100 px" |
+CONSOLE ERROR: Error: Invalid value for <ellipse> attribute ry="100px;" |
+CONSOLE ERROR: Error: Invalid value for <ellipse> attribute ry="100px !important" |
+CONSOLE ERROR: Error: Invalid value for <ellipse> attribute ry="{ 100px }" |
+CONSOLE ERROR: Error: Invalid negative value for <circle> attribute r="-200px" |
+CONSOLE ERROR: Error: Invalid value for <circle> attribute r="auto" |
+CONSOLE ERROR: Error: Invalid value for <circle> attribute r="100 px" |
+CONSOLE ERROR: Error: Invalid value for <circle> attribute r="100px;" |
+CONSOLE ERROR: Error: Invalid value for <circle> attribute r="100px !important" |
+CONSOLE ERROR: Error: Invalid value for <circle> attribute r="{ 100px }" |
Test that 'length' presentation attribute values are parsed with CSS presentation rules. |
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". |
-PASS computedStyle("x", " 100") is "100px" |
-PASS computedStyle("x", "100 ") is "100px" |
-PASS computedStyle("x", "100px") is "100px" |
-PASS computedStyle("x", "1em") is "16px" |
-PASS computedStyle("x", "20%") is "20%" |
-PASS computedStyle("x", "-200px") is "-200px" |
-PASS computedStyle("y", " 100") is "100px" |
-PASS computedStyle("y", "100 ") is "100px" |
-PASS computedStyle("y", "100px") is "100px" |
-PASS computedStyle("y", "1em") is "16px" |
-PASS computedStyle("y", "20%") is "20%" |
-PASS computedStyle("y", "-200px") is "-200px" |
-PASS computedStyle("x", "auto") is "0px" |
-PASS computedStyle("x", "100 px") is "0px" |
-PASS computedStyle("x", "100px;") is "0px" |
-PASS computedStyle("x", "100px !important") is "0px" |
-PASS computedStyle("x", "{ 100px }") is "0px" |
-PASS computedStyle("y", "auto") is "0px" |
-PASS computedStyle("y", "100 px") is "0px" |
-PASS computedStyle("y", "100px;") is "0px" |
-PASS computedStyle("y", "100px !important") is "0px" |
-PASS computedStyle("y", "{ 100px }") is "0px" |
-PASS computedStyle("rx", " 100") is "100px" |
-PASS computedStyle("rx", "100 ") is "100px" |
-PASS computedStyle("rx", "100px") is "100px" |
-PASS computedStyle("rx", "1em") is "16px" |
-PASS computedStyle("rx", "20%") is "20%" |
-PASS computedStyle("rx", "-200px") is "-200px" |
-PASS computedStyle("ry", " 100") is "100px" |
-PASS computedStyle("ry", "100 ") is "100px" |
-PASS computedStyle("ry", "100px") is "100px" |
-PASS computedStyle("ry", "1em") is "16px" |
-PASS computedStyle("ry", "20%") is "20%" |
-PASS computedStyle("ry", "-200px") is "-200px" |
-PASS computedStyle("rx", "auto") is "0px" |
-PASS computedStyle("rx", "100 px") is "0px" |
-PASS computedStyle("rx", "100px;") is "0px" |
-PASS computedStyle("rx", "100px !important") is "0px" |
-PASS computedStyle("rx", "{ 100px }") is "0px" |
-PASS computedStyle("ry", "auto") is "0px" |
-PASS computedStyle("ry", "100 px") is "0px" |
-PASS computedStyle("ry", "100px;") is "0px" |
-PASS computedStyle("ry", "100px !important") is "0px" |
-PASS computedStyle("ry", "{ 100px }") is "0px" |
+PASS computedStyle("mask", "x", " 100") is "100px" |
+PASS computedStyle("mask", "x", "100 ") is "100px" |
+PASS computedStyle("mask", "x", "100px") is "100px" |
+PASS computedStyle("mask", "x", "1em") is "16px" |
+PASS computedStyle("mask", "x", "20%") is "20%" |
+PASS computedStyle("mask", "x", "-200px") is "-200px" |
+PASS computedStyle("mask", "y", " 100") is "100px" |
+PASS computedStyle("mask", "y", "100 ") is "100px" |
+PASS computedStyle("mask", "y", "100px") is "100px" |
+PASS computedStyle("mask", "y", "1em") is "16px" |
+PASS computedStyle("mask", "y", "20%") is "20%" |
+PASS computedStyle("mask", "y", "-200px") is "-200px" |
+PASS computedStyle("mask", "x", "auto") is "0px" |
+PASS computedStyle("mask", "x", "100 px") is "0px" |
+PASS computedStyle("mask", "x", "100px;") is "0px" |
+PASS computedStyle("mask", "x", "100px !important") is "0px" |
+PASS computedStyle("mask", "x", "{ 100px }") is "0px" |
+PASS computedStyle("mask", "y", "auto") is "0px" |
+PASS computedStyle("mask", "y", "100 px") is "0px" |
+PASS computedStyle("mask", "y", "100px;") is "0px" |
+PASS computedStyle("mask", "y", "100px !important") is "0px" |
+PASS computedStyle("mask", "y", "{ 100px }") is "0px" |
+PASS computedStyle("svg", "x", " 100") is "100px" |
+PASS computedStyle("svg", "x", "100 ") is "100px" |
+PASS computedStyle("svg", "x", "100px") is "100px" |
+PASS computedStyle("svg", "x", "1em") is "16px" |
+PASS computedStyle("svg", "x", "20%") is "20%" |
+PASS computedStyle("svg", "x", "-200px") is "-200px" |
+PASS computedStyle("svg", "y", " 100") is "100px" |
+PASS computedStyle("svg", "y", "100 ") is "100px" |
+PASS computedStyle("svg", "y", "100px") is "100px" |
+PASS computedStyle("svg", "y", "1em") is "16px" |
+PASS computedStyle("svg", "y", "20%") is "20%" |
+PASS computedStyle("svg", "y", "-200px") is "-200px" |
+PASS computedStyle("svg", "x", "auto") is "0px" |
+PASS computedStyle("svg", "x", "100 px") is "0px" |
+PASS computedStyle("svg", "x", "100px;") is "0px" |
+PASS computedStyle("svg", "x", "100px !important") is "0px" |
+PASS computedStyle("svg", "x", "{ 100px }") is "0px" |
+PASS computedStyle("svg", "y", "auto") is "0px" |
+PASS computedStyle("svg", "y", "100 px") is "0px" |
+PASS computedStyle("svg", "y", "100px;") is "0px" |
+PASS computedStyle("svg", "y", "100px !important") is "0px" |
+PASS computedStyle("svg", "y", "{ 100px }") is "0px" |
+PASS computedStyle("rect", "x", " 100") is "100px" |
+PASS computedStyle("rect", "x", "100 ") is "100px" |
+PASS computedStyle("rect", "x", "100px") is "100px" |
+PASS computedStyle("rect", "x", "1em") is "16px" |
+PASS computedStyle("rect", "x", "20%") is "20%" |
+PASS computedStyle("rect", "x", "-200px") is "-200px" |
+PASS computedStyle("rect", "y", " 100") is "100px" |
+PASS computedStyle("rect", "y", "100 ") is "100px" |
+PASS computedStyle("rect", "y", "100px") is "100px" |
+PASS computedStyle("rect", "y", "1em") is "16px" |
+PASS computedStyle("rect", "y", "20%") is "20%" |
+PASS computedStyle("rect", "y", "-200px") is "-200px" |
+PASS computedStyle("rect", "x", "auto") is "0px" |
+PASS computedStyle("rect", "x", "100 px") is "0px" |
+PASS computedStyle("rect", "x", "100px;") is "0px" |
+PASS computedStyle("rect", "x", "100px !important") is "0px" |
+PASS computedStyle("rect", "x", "{ 100px }") is "0px" |
+PASS computedStyle("rect", "y", "auto") is "0px" |
+PASS computedStyle("rect", "y", "100 px") is "0px" |
+PASS computedStyle("rect", "y", "100px;") is "0px" |
+PASS computedStyle("rect", "y", "100px !important") is "0px" |
+PASS computedStyle("rect", "y", "{ 100px }") is "0px" |
+PASS computedStyle("image", "x", " 100") is "100px" |
+PASS computedStyle("image", "x", "100 ") is "100px" |
+PASS computedStyle("image", "x", "100px") is "100px" |
+PASS computedStyle("image", "x", "1em") is "16px" |
+PASS computedStyle("image", "x", "20%") is "20%" |
+PASS computedStyle("image", "x", "-200px") is "-200px" |
+PASS computedStyle("image", "y", " 100") is "100px" |
+PASS computedStyle("image", "y", "100 ") is "100px" |
+PASS computedStyle("image", "y", "100px") is "100px" |
+PASS computedStyle("image", "y", "1em") is "16px" |
+PASS computedStyle("image", "y", "20%") is "20%" |
+PASS computedStyle("image", "y", "-200px") is "-200px" |
+PASS computedStyle("image", "x", "auto") is "0px" |
+PASS computedStyle("image", "x", "100 px") is "0px" |
+PASS computedStyle("image", "x", "100px;") is "0px" |
+PASS computedStyle("image", "x", "100px !important") is "0px" |
+PASS computedStyle("image", "x", "{ 100px }") is "0px" |
+PASS computedStyle("image", "y", "auto") is "0px" |
+PASS computedStyle("image", "y", "100 px") is "0px" |
+PASS computedStyle("image", "y", "100px;") is "0px" |
+PASS computedStyle("image", "y", "100px !important") is "0px" |
+PASS computedStyle("image", "y", "{ 100px }") is "0px" |
+PASS computedStyle("foreignObject", "x", " 100") is "100px" |
+PASS computedStyle("foreignObject", "x", "100 ") is "100px" |
+PASS computedStyle("foreignObject", "x", "100px") is "100px" |
+PASS computedStyle("foreignObject", "x", "1em") is "16px" |
+PASS computedStyle("foreignObject", "x", "20%") is "20%" |
+PASS computedStyle("foreignObject", "x", "-200px") is "-200px" |
+PASS computedStyle("foreignObject", "y", " 100") is "100px" |
+PASS computedStyle("foreignObject", "y", "100 ") is "100px" |
+PASS computedStyle("foreignObject", "y", "100px") is "100px" |
+PASS computedStyle("foreignObject", "y", "1em") is "16px" |
+PASS computedStyle("foreignObject", "y", "20%") is "20%" |
+PASS computedStyle("foreignObject", "y", "-200px") is "-200px" |
+PASS computedStyle("foreignObject", "x", "auto") is "0px" |
+PASS computedStyle("foreignObject", "x", "100 px") is "0px" |
+PASS computedStyle("foreignObject", "x", "100px;") is "0px" |
+PASS computedStyle("foreignObject", "x", "100px !important") is "0px" |
+PASS computedStyle("foreignObject", "x", "{ 100px }") is "0px" |
+PASS computedStyle("foreignObject", "y", "auto") is "0px" |
+PASS computedStyle("foreignObject", "y", "100 px") is "0px" |
+PASS computedStyle("foreignObject", "y", "100px;") is "0px" |
+PASS computedStyle("foreignObject", "y", "100px !important") is "0px" |
+PASS computedStyle("foreignObject", "y", "{ 100px }") is "0px" |
+PASS computedStyle("rect", "rx", " 100") is "100px" |
+PASS computedStyle("rect", "rx", "100 ") is "100px" |
+PASS computedStyle("rect", "rx", "100px") is "100px" |
+PASS computedStyle("rect", "rx", "1em") is "16px" |
+PASS computedStyle("rect", "rx", "20%") is "20%" |
+PASS computedStyle("rect", "rx", "-200px") is "-200px" |
+PASS computedStyle("rect", "ry", " 100") is "100px" |
+PASS computedStyle("rect", "ry", "100 ") is "100px" |
+PASS computedStyle("rect", "ry", "100px") is "100px" |
+PASS computedStyle("rect", "ry", "1em") is "16px" |
+PASS computedStyle("rect", "ry", "20%") is "20%" |
+PASS computedStyle("rect", "ry", "-200px") is "-200px" |
+PASS computedStyle("rect", "rx", "auto") is "0px" |
+PASS computedStyle("rect", "rx", "100 px") is "0px" |
+PASS computedStyle("rect", "rx", "100px;") is "0px" |
+PASS computedStyle("rect", "rx", "100px !important") is "0px" |
+PASS computedStyle("rect", "rx", "{ 100px }") is "0px" |
+PASS computedStyle("rect", "ry", "auto") is "0px" |
+PASS computedStyle("rect", "ry", "100 px") is "0px" |
+PASS computedStyle("rect", "ry", "100px;") is "0px" |
+PASS computedStyle("rect", "ry", "100px !important") is "0px" |
+PASS computedStyle("rect", "ry", "{ 100px }") is "0px" |
+PASS computedStyle("ellipse", "rx", " 100") is "100px" |
+PASS computedStyle("ellipse", "rx", "100 ") is "100px" |
+PASS computedStyle("ellipse", "rx", "100px") is "100px" |
+PASS computedStyle("ellipse", "rx", "1em") is "16px" |
+PASS computedStyle("ellipse", "rx", "20%") is "20%" |
+PASS computedStyle("ellipse", "rx", "-200px") is "-200px" |
+PASS computedStyle("ellipse", "ry", " 100") is "100px" |
+PASS computedStyle("ellipse", "ry", "100 ") is "100px" |
+PASS computedStyle("ellipse", "ry", "100px") is "100px" |
+PASS computedStyle("ellipse", "ry", "1em") is "16px" |
+PASS computedStyle("ellipse", "ry", "20%") is "20%" |
+PASS computedStyle("ellipse", "ry", "-200px") is "-200px" |
+PASS computedStyle("ellipse", "rx", "auto") is "0px" |
+PASS computedStyle("ellipse", "rx", "100 px") is "0px" |
+PASS computedStyle("ellipse", "rx", "100px;") is "0px" |
+PASS computedStyle("ellipse", "rx", "100px !important") is "0px" |
+PASS computedStyle("ellipse", "rx", "{ 100px }") is "0px" |
+PASS computedStyle("ellipse", "ry", "auto") is "0px" |
+PASS computedStyle("ellipse", "ry", "100 px") is "0px" |
+PASS computedStyle("ellipse", "ry", "100px;") is "0px" |
+PASS computedStyle("ellipse", "ry", "100px !important") is "0px" |
+PASS computedStyle("ellipse", "ry", "{ 100px }") is "0px" |
+PASS computedStyle("circle", "r", " 100") is "100px" |
+PASS computedStyle("circle", "r", "100 ") is "100px" |
+PASS computedStyle("circle", "r", "100px") is "100px" |
+PASS computedStyle("circle", "r", "1em") is "16px" |
+PASS computedStyle("circle", "r", "20%") is "20%" |
+PASS computedStyle("circle", "r", "-200px") is "-200px" |
+PASS computedStyle("circle", "r", "auto") is "0px" |
+PASS computedStyle("circle", "r", "100 px") is "0px" |
+PASS computedStyle("circle", "r", "100px;") is "0px" |
+PASS computedStyle("circle", "r", "100px !important") is "0px" |
+PASS computedStyle("circle", "r", "{ 100px }") is "0px" |
PASS successfullyParsed is true |
TEST COMPLETE |