Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(152)

Side by Side Diff: LayoutTests/fast/svg/linear-gradient-default-length.html

Issue 1083893002: The default for x1, y1 and y2 is 0% for LinearGradient (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Align with review comments Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | Source/core/svg/SVGLinearGradientElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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);
13 }
14
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>
OLDNEW
« no previous file with comments | « no previous file | Source/core/svg/SVGLinearGradientElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698