| 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>
|
|
|