[css-houdini-drafts] [css-typed-om]

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

== [css-typed-om] ==
The [constructor](https://drafts.css-houdini.org/css-typed-om-1/#dom-cssunparsedvalue-cssunparsedvalue) for [`CSSUnparsedValue`](https://drafts.css-houdini.org/css-typed-om-1/#cssunparsedvalue) takes `(DOMString or CSSVariableReferenceValue)...` rest parameters. This is inconsistent with pretty much every collection-style constructor in ES and the Web Platform, including:

- `Array`
- `Map`
- `Set`
- `URLSearchParams`
- `Headers`
- [`CSSTransformValue`](https://drafts.css-houdini.org/css-typed-om-1/#csstransformvalue)(!)

which take a `sequence<>` (or equivalent) as the sole parameter.

----

>From IRC #whatwg:

> @TimothyGu | @TabAtkins: question: why did y'all decide on rest params for `CSSUnparsedValue`'s constructor instead of a `sequence<>`?
> @TabAtkins | I think we didn't have any particular reason, but since it's inconsistent with `CSSTransformValue` we should harmonize those two.

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

Received on Wednesday, 31 January 2018 04:32:59 UTC