Re: [css-houdini-drafts] [css-typed-om] [css-paint-api] What happens to unsupported property names in the registered paint styleMap?

Hmm, we do need to accept invalid properties, but reflecting them is problematic - what would they reflect as? The best we could do is treat them like untyped custom properties, and return a token list; this is weird tho, and seems just as likely to break naive code that assumes the property exists as just not returning the property at all in the map.

So, we should filter the list of input properties and store the filtered list as the set of listened-to properties that get reflected in the StylePropertyMap. That also matches up with the existing behavior of StylePropertyMap, as you cited.

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

Received on Tuesday, 12 December 2017 22:40:26 UTC