W3C home > Mailing lists > Public > www-style@w3.org > September 2013

[cssom-view][matrix] Introduce DOMRectLiteral dictionary for DOMRect?

From: Simon Pieters <simonp@opera.com>
Date: Thu, 26 Sep 2013 16:52:48 +0200
To: "www-style@w3.org" <www-style@w3.org>
Message-ID: <op.w30wyan4idj3kv@simons-macbook-pro.local>
In  
http://lists.w3.org/Archives/Public/public-script-coord/2013JulSep/0690.html  
it was suggested that APIs accepting DOMRect as input should also allow an  
object with the right properties -- like we already do for  
DOMPoint/DOMPointLiteral.

I guess the same might apply to DOMQuad and DOMMatrix as well, although  
they are more complicated than DOMPoint and DOMRect. DOMQuad's attributes  
are objects. DOMMatrix's constructor takes several different inputs which  
would make sense to support as input for anything that expects a DOMMatrix  
if the argument is that the constructor shouldn't have to be invoked.

-- 
Simon Pieters
Opera Software
Received on Thursday, 26 September 2013 14:53:25 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:32 UTC