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

Unified Diff: third_party/WebKit/LayoutTests/svg/custom/percent-height.svg

Issue 2835153002: Fix percent height calc for svg docs. (Closed)
Patch Set: Split percent height test into percent-height.svg Created 3 years, 7 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/LayoutTests/svg/custom/percent-height-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/svg/custom/percent-height.svg
diff --git a/third_party/WebKit/LayoutTests/svg/custom/percent-height.svg b/third_party/WebKit/LayoutTests/svg/custom/percent-height.svg
new file mode 100644
index 0000000000000000000000000000000000000000..57044a4fa90e9582f7814015c063f5b5849ec592
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/svg/custom/percent-height.svg
@@ -0,0 +1,27 @@
+<svg xmlns="http://www.w3.org/2000/svg" onload="startTest()">
+<script>
+if (self.internals)
+ internals.runtimeFlags.overlayScrollbarsEnabled = true;
+
+function startTest() {
+ if (!window.testRunner)
+ return;
+
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
+ testRunner.setBackingScaleFactor(2, finishTest);
+ var rect = document.getElementById('rect');
+ var result = document.getElementById('result');
+ result.innerHTML = 'rect.offsetHeight = ' + rect.getBoundingClientRect().height;
+}
+
+function finishTest() {
+ setTimeout(function () { testRunner.notifyDone(); }, 0);
+}
+</script>
+
+<mask id='mask'>
+ <rect id='rect' width='100%' height='100%' fill='white'/>
+</mask>
+<text id='result'></text>
+</svg>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/svg/custom/percent-height-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698