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

Unified Diff: LayoutTests/svg/repaint/svg-length-rem-unit-font-size-change.html

Issue 1031223003: SVG doesn't recognize rem units (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixes builderror Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698