Bug 13486 - RenderObject::absoluteBoundingBoxRect() does not account for border or padding of elements
Summary: RenderObject::absoluteBoundingBoxRect() does not account for border or paddin...
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 523.x (Safari 3)
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Nobody
URL: http://www.bankofamerica.com/
Keywords: HasReduction
Depends on:
Blocks:
 
Reported: 2007-04-25 09:52 PDT by David Kilzer (:ddkilzer)
Modified: 2023-05-05 14:11 PDT (History)
3 users (show)

See Also:


Attachments
Test case (315 bytes, text/html)
2007-04-25 09:53 PDT, David Kilzer (:ddkilzer)
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Kilzer (:ddkilzer) 2007-04-25 09:52:23 PDT
* SUMMARY
When using the Web Inspector on certain elements, the red highlight box is not centered on the element, nor does it cover the whole element.

* STEPS TO REPRODUCE
1. Open Safari/WebKit.
2. Open the attached test case or view the Bank of America site.
3. Right click on the "Border" or "Padding links (on the test page) or the "Sign In" button on the Bank of America site and select "Inspect Element".
4. Note the location of the red highlight box.

* EXPECTED RESULTS
Either:
- The red highlight box should encompass the whole element, including the border and/or padding.
- The red highlight box should be centered around the original element, excluding the border and/or padding.

* ACTUAL RESULTS
The red highlight box is always in the upper left-hand corder of the area created by the element plus its border and padding, so it's neither centered around the original element, nor does it include the extra space used by the border and/or padding.

* REGRESSION
This is not a regression since shipping Safari does not include a Web Inspector, and this behavior causes no known bugs at the moment.
Comment 1 David Kilzer (:ddkilzer) 2007-04-25 09:53:18 PDT
Created attachment 14176 [details]
Test case
Comment 2 Robert Hogan 2013-07-27 02:20:21 PDT
This looks OK to me now. OK to close?
Comment 3 Ahmad Saleem 2023-05-05 14:11:57 PDT
Firefox Nightly 114, Chrome Canary 115 and Safari 16.4.1 are matching each other in the attached testcase.

Marking this as "RESOLVED CONFIGURATION CHANGED", please reopen if this is reproducible. Thanks!