@asamuzakjp/css-color
Advanced tools
Comparing version 2.6.6 to 2.6.7
@@ -33,8 +33,8 @@ { | ||
"c8": "^10.1.3", | ||
"esbuild": "^0.24.0", | ||
"esbuild": "^0.24.2", | ||
"eslint": "^9.17.0", | ||
"eslint-plugin-import-x": "^4.5.0", | ||
"eslint-plugin-import-x": "^4.6.1", | ||
"eslint-plugin-jsdoc": "^50.6.1", | ||
"eslint-plugin-regexp": "^2.7.0", | ||
"globals": "^15.13.0", | ||
"globals": "^15.14.0", | ||
"mocha": "^11.0.1", | ||
@@ -55,3 +55,3 @@ "neostandard": "^0.12.0", | ||
}, | ||
"version": "2.6.6" | ||
"version": "2.6.7" | ||
} |
@@ -56,18 +56,2 @@ /** | ||
pixelValue = dimension.callback(unit); | ||
} else if (/^(?:ch|lh)$/.test(unit) && | ||
Object.hasOwnProperty.call(dimension, 'em')) { | ||
const { em } = dimension; | ||
if (unit === 'lh') { | ||
pixelValue = em * 1.2; | ||
} else { | ||
pixelValue = em / 2; | ||
} | ||
} else if (/^(?:rch|rlh)$/.test(unit) && | ||
Object.hasOwnProperty.call(dimension, 'rem')) { | ||
const { rem } = dimension; | ||
if (unit === 'rlh') { | ||
pixelValue = rem * 1.2; | ||
} else { | ||
pixelValue = rem / 2; | ||
} | ||
} | ||
@@ -74,0 +58,0 @@ if (Number.isFinite(pixelValue)) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1345233
5783