Re: [cssom-view] empty range

On Fri, 27 Feb 2009 02:49:55 +0100, Robert O'Callahan <> wrote:
> 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:

Anne van Kesteren

Received on Tuesday, 28 July 2009 08:34:34 UTC