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

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

Issue 1073803002: SVG doesn't recognize ch units. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased 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-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>
« no previous file with comments | « LayoutTests/fast/svg/svglength.html ('k') | LayoutTests/svg/repaint/svg-length-ch-unit-font-size-change-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698