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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/svg/css/getComputedStyle-svg-text-width-height.html
diff --git a/third_party/WebKit/LayoutTests/svg/css/getComputedStyle-svg-text-width-height.html b/third_party/WebKit/LayoutTests/svg/css/getComputedStyle-svg-text-width-height.html
new file mode 100644
index 0000000000000000000000000000000000000000..d362ce6e99d62693e165cc9d85ec6a6f43b963ba
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/svg/css/getComputedStyle-svg-text-width-height.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<svg width="100" height="100">
+ <text id="text1">Text1</text>
+ <text id="text2" style="width: 20px; height: 30%">Text2</text>
+</svg>
+<script>
+test(function() {
+ assert_equals(getComputedStyle(text1).width, 'auto');
+ assert_equals(getComputedStyle(text1).height, 'auto');
+ assert_equals(getComputedStyle(text2).width, '20px');
+ assert_equals(getComputedStyle(text2).height, '30%');
+});
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.
+</script>

Powered by Google App Engine
This is Rietveld 408576698