Chromium Code Reviews| Index: LayoutTests/svg/repaint/repaint-non-scaling-stroke-text.html |
| diff --git a/LayoutTests/svg/repaint/svg-length-rem-unit-font-size-change.html b/LayoutTests/svg/repaint/repaint-non-scaling-stroke-text.html |
| similarity index 60% |
| copy from LayoutTests/svg/repaint/svg-length-rem-unit-font-size-change.html |
| copy to LayoutTests/svg/repaint/repaint-non-scaling-stroke-text.html |
| index 3286f17ec22c7f5a7bd3887f083f6ae6c4d0fdce..32dff780d9baf01ffefcf846ce1d4028dfadc47f 100644 |
| --- a/LayoutTests/svg/repaint/svg-length-rem-unit-font-size-change.html |
| +++ b/LayoutTests/svg/repaint/repaint-non-scaling-stroke-text.html |
| @@ -1,5 +1,5 @@ |
| <!DOCTYPE HTML> |
| -<html style="font-size:10px"> |
| +<html> |
| <script src="../../fast/repaint/resources/text-based-repaint.js"></script> |
| <script> |
| window.testIsAsync = true; |
| @@ -7,7 +7,7 @@ window.onload = runRepaintAndPixelTest; |
| function repaintTest() { |
| setTimeout(function() { |
| - document.getElementsByTagName("html")[0].style.fontSize="5px"; |
| + document.getElementById('t').setAttribute("vector-effect", "non-scaling-stroke"); |
| requestAnimationFrame(function() { |
| if (window.testRunner) |
| finishRepaintTest(); |
| @@ -16,10 +16,10 @@ function repaintTest() { |
| }; |
| </script> |
| <body> |
| -<div style="font-size:10px"> |
| -<svg style="width:20rem; height:20rem;"> |
| - <rect width="20rem" height="20em" style="fill:rgb(0,0,255);" /> |
| +<svg> |
| + <g transform="scale(2 2)"> |
| + <text id="t" x="0" y="50" stroke="blue" stroke-width="2" fill="none" font-size="36">Hello</text> |
|
fs
2015/04/22 14:05:05
I think you'd want to add the stroke as well, so t
Shanmuga Pandi
2015/04/22 14:31:02
Done.
|
| + </g> |
| </svg> |
| -</div> |
| </body> |
| </html> |