| Index: LayoutTests/svg/repaint/svg-length-ch-unit-font-size-change.html
|
| diff --git a/LayoutTests/svg/repaint/svg-length-rem-unit-font-size-change.html b/LayoutTests/svg/repaint/svg-length-ch-unit-font-size-change.html
|
| similarity index 55%
|
| copy from LayoutTests/svg/repaint/svg-length-rem-unit-font-size-change.html
|
| copy to LayoutTests/svg/repaint/svg-length-ch-unit-font-size-change.html
|
| index 3286f17ec22c7f5a7bd3887f083f6ae6c4d0fdce..5500d17005ad42cfa23dc09b5c52fb6fc2190b10 100644
|
| --- a/LayoutTests/svg/repaint/svg-length-rem-unit-font-size-change.html
|
| +++ b/LayoutTests/svg/repaint/svg-length-ch-unit-font-size-change.html
|
| @@ -7,7 +7,7 @@ window.onload = runRepaintAndPixelTest;
|
|
|
| function repaintTest() {
|
| setTimeout(function() {
|
| - document.getElementsByTagName("html")[0].style.fontSize="5px";
|
| + document.getElementById("rootdiv").style.fontSize="20px";
|
| requestAnimationFrame(function() {
|
| if (window.testRunner)
|
| finishRepaintTest();
|
| @@ -15,10 +15,16 @@ function repaintTest() {
|
| }, 0);
|
| };
|
| </script>
|
| +<style>
|
| + @font-face {
|
| + font-family: Ahem;
|
| + src: url(../../resources/Ahem.ttf);
|
| + }
|
| +</style>
|
| <body>
|
| -<div style="font-size:10px">
|
| -<svg style="width:20rem; height:20rem;">
|
| - <rect width="20rem" height="20em" style="fill:rgb(0,0,255);" />
|
| +<div id="rootdiv" style="font-size:10px; font-family:Ahem">
|
| +<svg style="width:10ch; height:10ch;">
|
| + <rect width="10ch" height="10ch" style="fill:rgb(0,0,255);" />
|
| </svg>
|
| </div>
|
| </body>
|
|
|