[css-houdini-drafts] [css-typed-om] Setting/registering is allowed to be order-dependent

tabatkins has just created a new issue for 
https://github.com/w3c/css-houdini-drafts:

== [css-typed-om] Setting/registering is allowed to be order-dependent
 ==
Per [Seattle 
resolution](https://log.csswg.org/irc.w3.org/houdini/2017-01-10/#e756205)
 (resolution is badly worded, read up to figure out what was actually 
being discussed), we're OK with an order-dependence between setting a 
value and registering a value.

That is, we want the following behavior:

```js
CSS.registerProperty("--foo", { grammar: "<color>" });
el.styleMap.set("--foo", "red");
el.styleMap.set("--foo", "hello"); // throws an error
// --foo is still set to "red"
```

and 

```js
el.styleMap.set("--foo", "red");
el.styleMap.set("--foo", "hello"); // valid at this point; --foo is 
untyped
CSS.registerProperty("--foo", { grammar: "<color>" }); // valid
// because --foo was set to a non-<color> value,
// it's now set to "unset", the bottom value for properties
```

Please view or discuss this issue at 
https://github.com/w3c/css-houdini-drafts/issues/354 using your GitHub
 account

Received on Friday, 3 February 2017 19:31:20 UTC