Bug 35567 - consider implementing bounding-box properties on the Range object
Summary: consider implementing bounding-box properties on the Range object
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac (Intel) OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-02 01:08 PST by Jaap Lous
Modified: 2010-05-06 13:38 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaap Lous 2010-03-02 01:08:14 PST
IE's "TextRange" object contains height, width, top, left and offset properties. 
These are very useful when building overlays for custom editors.

see: http://msdn.microsoft.com/en-us/library/ms535872(VS.85).aspx

Have these ever been considered for Webkit?
Comment 1 Sam Weinig 2010-03-02 09:15:40 PST
We support a very similar API called ClientRect from the http://dev.w3.org/csswg/cssom-view/ specification.  One can get a ClientRect from a range by calling range.getClientRects() or range.getBoundingClientRect(). Does this meet your requirements?
Comment 2 Jaap Lous 2010-03-03 02:23:41 PST
(In reply to comment #1)
> We support a very similar API called ClientRect from the
> http://dev.w3.org/csswg/cssom-view/ specification.  One can get a ClientRect
> from a range by calling range.getClientRects() or
> range.getBoundingClientRect(). Does this meet your requirements?

It does! Thank you very much.