- From: Henrik Andersson <henke@henke37.cjb.net>
- Date: Tue, 01 Oct 2013 12:21:33 +0200
- To: Simon Pieters <simonp@opera.com>, www-style list <www-style@w3.org>, Dirk Schulze <dschulze@adobe.com>
Shouldn't the operator sign be flipped in the getters? As far as I understand the text the intent is that the top attribute should be min(y,y+height). The text specifies min(y,y-height). That will correctly deal with negative heights. The same issue goes for the left, right and bottom attributes. That is, assuming a traditional computer coordinate system where the top left corner is (0,0). And while at it, can you pick a logical ordering the four mentioned attributes? Simon Pieters skriver: > On Thu, 26 Sep 2013 23:20:37 +0200, Dirk Schulze <dschulze@adobe.com> > wrote: > >> Hi, >> >> Would it be possible to add alias attributes 'x' and 'y' that point to >> 'left' and 'top'? That would make it more compatible with SVGRect and >> the SVG WG could start replacing SVGRect[1] with DOMRect as well for a >> unified platform. > > DOMRect should now be compatible with SVGRect, so SVG can start using it > (or DOMRectReadOnly). > > I added a no-argument constructor to DOMRect in > https://dvcs.w3.org/hg/csswg/rev/3eb9884be51c > > The missing piece would be to alias the window.SVGRect property to > DOMRect, but do we need to? Is there actually Web content that relies on > the SVGRect constructor/interface object? (The same question applies to > SVGMatrix also.) >
Received on Tuesday, 1 October 2013 10:22:31 UTC