| Index: LayoutTests/svg/repaint/svg-length-rem-unit-font-size-change.html
|
| diff --git a/LayoutTests/svg/repaint/change-background-color.html b/LayoutTests/svg/repaint/svg-length-rem-unit-font-size-change.html
|
| similarity index 50%
|
| copy from LayoutTests/svg/repaint/change-background-color.html
|
| copy to LayoutTests/svg/repaint/svg-length-rem-unit-font-size-change.html
|
| index 4a8bc167b9148f260559f98e0be799e016a104a0..3286f17ec22c7f5a7bd3887f083f6ae6c4d0fdce 100644
|
| --- a/LayoutTests/svg/repaint/change-background-color.html
|
| +++ b/LayoutTests/svg/repaint/svg-length-rem-unit-font-size-change.html
|
| @@ -1,13 +1,13 @@
|
| <!DOCTYPE HTML>
|
| +<html style="font-size:10px">
|
| <script src="../../fast/repaint/resources/text-based-repaint.js"></script>
|
| <script>
|
| window.testIsAsync = true;
|
| -window.onload = runRepaintTest;
|
| +window.onload = runRepaintAndPixelTest;
|
|
|
| function repaintTest() {
|
| - var svg = document.querySelector('svg');
|
| setTimeout(function() {
|
| - svg.style.backgroundColor = "green";
|
| + document.getElementsByTagName("html")[0].style.fontSize="5px";
|
| requestAnimationFrame(function() {
|
| if (window.testRunner)
|
| finishRepaintTest();
|
| @@ -15,6 +15,11 @@ function repaintTest() {
|
| }, 0);
|
| };
|
| </script>
|
| -<svg width="200px" height="100px" viewBox="0 0 100 100"
|
| - style="background-color: red">
|
| +<body>
|
| +<div style="font-size:10px">
|
| +<svg style="width:20rem; height:20rem;">
|
| + <rect width="20rem" height="20em" style="fill:rgb(0,0,255);" />
|
| </svg>
|
| +</div>
|
| +</body>
|
| +</html>
|
|
|