-
Notifications
You must be signed in to change notification settings - Fork 18
NaNpx values when font-size is set on the html element #45
Comments
Since you can't derive an absolute value from Note: by default the font-size of the root element ( |
Other values that might be problamatic is ex and ch, unless you can read the font being used in a meaningful way. Doable but not simple. This is however another issue, but one to be mindful of.
|
As Pixrem is one of the oldest PostCSS module, it needs to be rewritten to get better errors/warn messages, so for now, I'm in favor of failing silently to 16. All browsers that do support |
indeed. |
I have posted this issue in cssnext#210 but feel that it really belongs here.
cat node_modules/pixrem/package.json | grep version
:"version": "2.0.0",
node_modules/.bin/postcss -v
:postcss version 5.0.4
Thanks to @ben-eb I have reduced a test case that reproduce the issue.
Running
postcss
/pixrem
with the following command:node_modules/.bin/postcss -u pixrem
and/ornode_modules/.bin/cssnext
Smaller test case:
Output:
The text was updated successfully, but these errors were encountered: