Re: [css-houdini-drafts] [css-typed-om]: There's no nice way to represent CSSUnparsedValue as a "list-plus" style object.

The fundamental problem people are attempting to solve here is to do something like:

    styleMap.set("transform", "translate(5x) rotate(10deg)");

but without having to parse that string.  That basically means the caller needs to provide an object representation of that thing on the right; more or less an AST of what you'd get from parsing the string.

In this particular case, it might be possible to elide the CSSTransformValue information (just like it's elided in the string syntax) if we know that the "transform" property takes a list of things.  How that plays with other cases, I'm not sure.

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

Received on Wednesday, 19 April 2017 03:18:27 UTC