- From: Darren Shen via GitHub <sysbot+gh@w3.org>
- Date: Thu, 09 Nov 2017 00:11:59 +0000
- To: public-houdini-archive@w3.org
darrnshn has just created a new issue for https://github.com/w3c/css-houdini-drafts: == [css-typed-om] StylePropertMap.set for non-list properties == What should StylePropertyMap.set do for non-list properties when given multiple arguments? e.g. ``` styleMap.set('width', CSS.px(1), CSS.px(2), CSS.px(3)); styleMap.getAll('width'); // ??? ``` According to the [spec](https://drafts.css-houdini.org/css-typed-om-1/#set-a-value-on-a-stylepropertymap), the "property model" will contain an entry `("width", [1px, 2px, 3px])`. It's then unclear what `getAll` should return. If we follow the [spec](https://drafts.css-houdini.org/css-typed-om-1/#get-all-values-from-a-stylepropertymap) strictly, we return `[[1px, 2px, 3px]]` (a single-element list containing a 3-element list), which is probably not right... Should `set` throw an exception or just set the first element? Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/512 using your GitHub account
Received on Thursday, 9 November 2017 00:12:31 UTC