Re: [css-houdini-drafts] [css-typed-om] CSSNumericValue .to() function, wishful thinking (#876)

There's only one possible `rem` value for a given page, but a script context can have 0 (worklet) or 2+ (iframes, etc) documents visible to the script. We thus can't resolve `rem` in all cases, even if we make the decision to favor the "primary document" of a running script. ^_^  (Same reason we can't resolve the viewport units, for example.)

Letting you pass in a dict of values that give conversation ratios for non-physical units to px is something I plan on adding, tho.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/876#issuecomment-484980070 using your GitHub account

Received on Friday, 19 April 2019 18:31:27 UTC