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

Re: [cssom-view] empty range

From: Anne van Kesteren <annevk@opera.com>
Date: Tue, 28 Jul 2009 10:33:52 +0200
To: robert@ocallahan.org, "www-style@w3.org" <www-style@w3.org>
Message-ID: <op.uxrreqy364w2qv@annevk-t60>
On Fri, 27 Feb 2009 02:49:55 +0100, Robert O'Callahan <robert@ocallahan.org> wrote:
> http://dev.w3.org/csswg/cssom-view/#the-rangeview-interface
> 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.

I attempted to fix this:

  http://dev.w3.org/csswg/cssom-view/#dom-range-getclientrects


-- 
Anne van Kesteren
http://annevankesteren.nl/
Received on Tuesday, 28 July 2009 08:34:34 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:19 GMT