Re: [css-houdini-drafts] [css-typed-om] Provide a way to resolve a CSSUnitValue and CSSMath* to a pixel value

Oh, hm, slight wrinkle in getting it to invoke the MQ-ish behavior. Can't just rely on not passing an element, because our *current* behavior for not passing the options bag at all (which has to be treated identically) is to *throw* when you can't convert, rather than relying on global information.

However, if I remove the default values from the dictionary listed up above, then I can test for presence/absence of the key, and use an explicit `{element: null}` as a signal to resolve based on global info like MQs do.  Leaving it out (or explicitly passing `{element:undefined}`) will leave us with the current behavior, where conversion just fails.

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

Received on Thursday, 23 August 2018 20:48:38 UTC