- From: Henrik Andersson <henke@henke37.cjb.net>
- Date: Wed, 25 Sep 2013 15:38:33 +0200
- To: Simon Pieters <simonp@opera.com>, Robert O'Callahan <robert@ocallahan.org>
- CC: "Tab Atkins Jr." <jackalmage@gmail.com>, Simon Fraser <smfr@me.com>, Dirk Schulze <dschulze@adobe.com>, www-style list <www-style@w3.org>
Simon Pieters skriver: > I don't follow. What's the use case for a movable rectangle? > > >> Since we are on the topic of DOMRect, I'd like to request some utility >> methods. >> >> First, a way to check if two DOMRects intersect and if so, a way to find >> the resulting intersection area. >> >> Second, a way to check if one DOMRect is fully contained inside another >> DOMRect. >> >> Third and finally, a way to check if a DOMPoint/DOMPointLiteral is >> contained in the DOMRect. > > Use cases for these? > >> These are very handy methods to have in a rectangle abstraction and are >> easy to implement. Lets not force content authors to implement this. >> Better have it right in the interface. > I do not have any use cases. At least nothing better than "people will want a generic Rectangle class".
Received on Wednesday, 25 September 2013 13:39:36 UTC