Re: [css-houdini-drafts] [css-typed-om] Clarify list-valued properties

Actually, I think what I want is:

* grammars have their top-level productions (the things separated by `|`) classified as list-valued or single-valued. (A single TypedOM object always represents either an *entire* single-valued term, or one iteration of a list-valued term.)
* you can't ever `append()` a value that matches a single-valued production. This throws an error.
* If you `append()` a value that's a list-valued iteration:
 * if the existing values are of the same production, great, it appends as normal.
 * if the existing value is of a single-valued production, it *replaces* the existing value silently. (This magically handles cases like appending to `none`, but also applies to any other single keywords/etc.)
 * if the existing values are of a *different* list-valued production, maybe that's an error? Or maybe it should replace, I'm unsure.

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

Received on Wednesday, 10 October 2018 19:18:57 UTC