Re: [css-houdini-drafts] [css-typed-om] algorithm for coercing value doesn't describe how to check grammar

We don't want to rely on serialization; that way lies madness.

CSSNumericValues already define a notion of "matching" a CSS grammar term - they "match" `<length>` if their type is `{length: 1}`, etc.  Handwaving somewhat, what we want is the same notion - defining that certain TypedOM values match certain grammar constructions, such that you can validate a TypedOM value against a CSS grammar same as you can a string.

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

Received on Wednesday, 31 January 2018 04:03:54 UTC