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

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: Reduce behavior change 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..fb033690ec7ebb29d2b528ad7aa9b03be242ce2e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/svg/css/getComputedStyle-svg-text-width-height.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<title>Width/height properties in getComputedStyle of svg text</title>
+<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, 'auto');
+ assert_equals(getComputedStyle(text2).height, 'auto');
+});
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698