[css-houdini-drafts] [css-typed-om] Serialization of CSSStyleValues constructed from string

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

== [css-typed-om] Serialization of CSSStyleValues constructed from string ==
>From the [spec](https://drafts.css-houdini.org/css-typed-om-1/#stylevalue-serialization):

> if the value was constructed from a DOMString
the serialization is the DOMString from which the value was constructed.

How does that work with strings that produce multiple CSSStyleValues e.g.

```javascript
const results = CSSStyleValue.parseAll("transition-duration", "/* foo */1,  2 , /* */ 3");
results[0].toString() // ?
results[1].toString() // ?
results[2].toString() // ?
```

```javascript
const result = CSSStyleValue.parse("width", "calc( 1%   + 1px)");
result.values[0].toString() // ?
result.values[1].toString() // ?
```

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

Received on Sunday, 7 January 2018 22:13:54 UTC