- From: Surma via GitHub <sysbot+gh@w3.org>
- Date: Thu, 23 Aug 2018 13:28:18 +0000
- To: public-houdini-archive@w3.org
surma has just created a new issue for https://github.com/w3c/css-houdini-drafts: == [css-typed-om] Provide a way to resolve a CSSUnitValue and CSSMath* to a pixel value == Especially in conjunction with css-layout-api, it seems desirable to be able to resolve lengths with percentages in them. ```js const marginLeft = child.styleMap.get('margin-left'); // "calc(10px + 2%)" const marginLeftResolved = CSS.resolveLength(marginLeft, {percentResolutionSize: 250}); ``` ... or something. A similar use case might be `column-gap` etc. Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/798 using your GitHub account
Received on Thursday, 23 August 2018 13:28:20 UTC