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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <svg xmlns="http://www.w3.org/2000/svg" onload="startTest()">
2 <script>
3 if (self.internals)
4 internals.runtimeFlags.overlayScrollbarsEnabled = true;
5
6 function startTest() {
7 if (!window.testRunner)
8 return;
9
10 testRunner.dumpAsText();
11 testRunner.waitUntilDone();
12 testRunner.setBackingScaleFactor(2, finishTest);
13 var rect = document.getElementById('rect');
14 var result = document.getElementById('result');
15 result.innerHTML = 'rect.offsetHeight = ' + rect.getBoundingClientRect().heigh t;
16 }
17
18 function finishTest() {
19 setTimeout(function () { testRunner.notifyDone(); }, 0);
20 }
21 </script>
22
23 <mask id='mask'>
24 <rect id='rect' width='100%' height='100%' fill='white'/>
25 </mask>
26 <text id='result'></text>
27 </svg>
OLDNEW
« 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