W3C home > Mailing lists > Public > www-style@w3.org > February 2009


From: Robert O'Callahan <robert@ocallahan.org>
Date: Fri, 27 Feb 2009 14:49:55 +1300
Message-ID: <11e306600902261749k1412dd36oed26365eaee81412@mail.gmail.com>
To: "www-style@w3.org" <www-style@w3.org>
RangeView::getClientRects on an empty range should not always return an
empty rectangle list. When the empty range is in a Text node, it should
return a rectangle roughly corresponding to where the caret would be if it
was at that point. This would be useful in conjunction with
caretRangeFromPoint, but there are other use cases too, such as positioning
an annotation. For horizontal writing, there would normally be a zero-width
rectangle whose height is determined by the font ascent and descent, unless
the Text node's line box was collapsed away, in which case it could return
no rectangle or a zero-height rectangle.

"He was pierced for our transgressions, he was crushed for our iniquities;
the punishment that brought us peace was upon him, and by his wounds we are
healed. We all, like sheep, have gone astray, each of us has turned to his
own way; and the LORD has laid on him the iniquity of us all." [Isaiah
Received on Friday, 27 February 2009 01:50:33 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:24 UTC