2 <title>SVGLinearGradientElement coordinate defaults
</title>
3 <script src=../../resources/testharness.js
></script>
4 <script src=../../resources/testharnessreport.js
></script>
6 <linearGradient id=
"lg"/>
9 function testLengthValue(result
, expected
, testcase
) {
11 assert_equals(result
, expected
);
12 }, "Testing " + document
.title
+ " " + testcase
);
15 var linearGradient
= document
.querySelector("#lg");
16 testLengthValue(linearGradient
.x1
.baseVal
.valueAsString
, "0%", "x1");
17 testLengthValue(linearGradient
.x2
.baseVal
.valueAsString
, "100%", "x2");
18 testLengthValue(linearGradient
.y1
.baseVal
.valueAsString
, "0%", "y1");
19 testLengthValue(linearGradient
.y2
.baseVal
.valueAsString
, "0%", "y2");