Bug 99959 - getBoundingClientRect() returns the incorrect rectangle on elements whose parent element is set -webkit-column-count
Summary: getBoundingClientRect() returns the incorrect rectangle on elements whose par...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Simon Fraser (smfr)
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2012-10-21 23:30 PDT by Tatsuya Nitta
Modified: 2021-07-16 22:42 PDT (History)
13 users (show)

See Also:


Attachments
HTML file to reproduce the issue (1.64 KB, text/html)
2012-10-21 23:30 PDT, Tatsuya Nitta
no flags Details
Screenshot of actual result (80.12 KB, image/png)
2012-10-21 23:31 PDT, Tatsuya Nitta
no flags Details
Patch (42.15 KB, patch)
2021-07-16 12:13 PDT, Simon Fraser (smfr)
zalan: review+
ews-feeder: commit-queue-
Details | Formatted Diff | Diff
Patch (45.75 KB, patch)
2021-07-16 15:28 PDT, Simon Fraser (smfr)
ews-feeder: commit-queue-
Details | Formatted Diff | Diff
Patch (47.80 KB, patch)
2021-07-16 16:08 PDT, Simon Fraser (smfr)
ews-feeder: commit-queue-
Details | Formatted Diff | Diff
Patch (47.80 KB, patch)
2021-07-16 21:37 PDT, Simon Fraser (smfr)
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tatsuya Nitta 2012-10-21 23:30:02 PDT
Created attachment 169831 [details]
HTML file to reproduce the issue

Overview: 
   Element.getBoundingClientRect() returns incorrect value when the <p> element inside <div> element that is set -webkit-column-count.

Steps to Reproduce:
  1) Open the attached test file which contains <P> element inside <DIV> element that is set -webkit-column-count
  2) Observe actual result of getBoundingClientRect() as gray colored box

Actual Results: 
  The actual result of getBoundingClientRect() is incorrect on element whose parent element is set -webkit-column-count 

Expected Results:
  getBoundingClientRect should return correct rectangle.
Comment 1 Tatsuya Nitta 2012-10-21 23:31:47 PDT
Created attachment 169832 [details]
Screenshot of actual result
Comment 2 Simon Fraser (smfr) 2021-07-16 12:13:26 PDT
Created attachment 433690 [details]
Patch
Comment 3 Simon Fraser (smfr) 2021-07-16 13:00:57 PDT
<rdar://80106111>
Comment 4 Simon Fraser (smfr) 2021-07-16 15:28:02 PDT
Created attachment 433710 [details]
Patch
Comment 5 Simon Fraser (smfr) 2021-07-16 16:08:43 PDT
Created attachment 433714 [details]
Patch
Comment 6 EWS 2021-07-16 21:15:29 PDT
ChangeLog entry in LayoutTests/ChangeLog contains OOPS!.
Comment 7 Simon Fraser (smfr) 2021-07-16 21:37:38 PDT
Created attachment 433728 [details]
Patch
Comment 8 EWS 2021-07-16 22:42:41 PDT
Committed r280017 (239759@main): <https://commits.webkit.org/239759@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 433728 [details].