You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The constructor for CSSUnparsedValue takes (DOMString or CSSVariableReferenceValue)... rest parameters. This is inconsistent with pretty much every collection-style constructor in ES and the Web Platform, including:
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.
The text was updated successfully, but these errors were encountered:
TimothyGu
changed the title
[css-typed-om]
[css-typed-om] Constructor for CSSUnparsedValue takes rest params rather than sequence
Jan 31, 2018
The constructor for
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
(!)which take a
sequence<>
(or equivalent) as the sole parameter.From IRC #whatwg:
The text was updated successfully, but these errors were encountered: