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

Unified Diff: LayoutTests/fast/svg/svglength.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
« no previous file with comments | « no previous file | LayoutTests/svg/repaint/svg-length-ch-unit-font-size-change.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/svg/svglength.html
diff --git a/LayoutTests/fast/svg/svglength.html b/LayoutTests/fast/svg/svglength.html
index 9eaf1d76db4d25a3a91279cf599ef42482c6020f..2251d74c45f0a3c5e1526f6be056176f91532b1b 100644
--- a/LayoutTests/fast/svg/svglength.html
+++ b/LayoutTests/fast/svg/svglength.html
@@ -23,7 +23,8 @@ var units = {
"in": 8,
"pt": 9,
"pc": 10,
- "rem": 11
+ "rem": 11,
+ "ch":12
};
var highestExposedUnit = 10; // SVG_LENGTHTYPE_PC
var unitconstants = {
@@ -40,7 +41,8 @@ var unitconstants = {
"PC": 10,
};
var nonexposedunitconstants = {
- "REMS": 11
+ "REMS": 11,
+ "CHS":12
};
function convertTo(value, unit, outunit) {
@@ -60,6 +62,7 @@ function convertTo(value, unit, outunit) {
case "em":
case "ex":
case "rem":
+ case "ch":
return value;
case "cm":
userUnits = value * cssPixelsPerCentimeter;
@@ -86,6 +89,7 @@ function convertTo(value, unit, outunit) {
case "em":
case "ex":
case "rem":
+ case "ch":
return value;
case "cm":
return userUnits / cssPixelsPerCentimeter;
« no previous file with comments | « no previous file | LayoutTests/svg/repaint/svg-length-ch-unit-font-size-change.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698