Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / svg / linear-gradient-default-length.html
blobf3d9d3799caaaea3beb2cde7262f68a682b3a7b9
1 <!doctype html>
2 <title>SVGLinearGradientElement coordinate defaults</title>
3 <script src=../../resources/testharness.js></script>
4 <script src=../../resources/testharnessreport.js></script>
5 <svg>
6 <linearGradient id="lg"/>
7 </svg>
8 <script>
9 function testLengthValue(result, expected, testcase) {
10 test(function() {
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");
20 </script>