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

Side by Side Diff: third_party/WebKit/LayoutTests/svg/css/getComputedStyle-svg-text-width-height.html

Issue 2798903005: Return computed style for width/height for non-root SVG (Closed)
Patch Set: - Created 3 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <svg width="100" height="100">
5 <text id="text1">Text1</text>
6 <text id="text2" style="width: 20px; height: 30%">Text2</text>
7 </svg>
8 <script>
9 test(function() {
10 assert_equals(getComputedStyle(text1).width, 'auto');
11 assert_equals(getComputedStyle(text1).height, 'auto');
12 assert_equals(getComputedStyle(text2).width, '20px');
13 assert_equals(getComputedStyle(text2).height, '30%');
14 });
fs 2017/04/05 21:36:38 Add a <title> or an explicit test name (or there'l
Xianzhu 2017/04/05 21:48:25 Done.
15 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698