Re: [geometry] Dictionary argument for DOMQuad constructor

On 3/24/15 5:13 PM, Elliott Sprehn wrote:
> Is it possible to write it as:
>
> Constructor(optional (DOMPointInit or DOMRectInit) arg1, optional
> DOMPointInit p2, ...)

At the moment, no, because those types in the union are not 
distinguishable so Web IDL can't decide whether the first arg should get 
treated as a DOMPointInit or DOMRectInit.

> and then specify that if the first argument is convertible to a
> DOMRectInit

Any object is "convertible" to a DOMRectInit as it's defined right now.

-Boris

Received on Tuesday, 24 March 2015 22:30:29 UTC