New issue
Advanced search Search tips
Starred by 2 users

Issue metadata

Status: Available
Owner: ----
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug

Sign in to add a comment

Issue 862205: getClientRects and getBoundingClientRect don't follow the spec for tables

Reported by, Jul 10 2018

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:63.0) Gecko/20100101 Firefox/63.0

Steps to reproduce the problem:
1. Load testcase

What is the expected behavior?
Alert shows a list with two rects in it.

What went wrong?
Alert shows a list with only one rect.

Did this work before? N/A 

Does this work in other browsers? N/A

Chrome version: 69.0.3472.3 (Official Build) dev (64-bit)  Channel: n/a
OS Version: OS X 10.12
Flash Version: Shockwave Flash 29.0 r0 says:

  If the element on which the method was invoked has a
  computed value for the display property of table or
  inline-table include both the table box and the caption
  box, if any, but not the anonymous container box.

but Blink seems to be returning only the anonymous container box.
219 bytes View Download

Comment 1 by, Jul 10 2018

Labels: Needs-Triage-M69

Comment 2 by, Jul 11 2018

Components: -Blink>DOM Blink>CSS

Comment 3 by, Jul 11 2018

Labels: Needs-Feedback Triaged-ET
As per comment #0 tested this issue on reported chrome version 69.0.3472.3 using Mac 10.12.6. Attaching screencast for reference.
1. Launched reported chrome
2. Downloaded given html test file and opened that html file on new tab 
As we are observed that Alert shows list.

@Reporter: Could you please review the attached screen-cast and confirm if anything being missed here.

1.1 MB View Download

Comment 4 by, Jul 11 2018

That screencast accurately captures the bug.

In the popup shown at 0:15 in the screencast, only one rect value is displayed (as its x/y/width/height/top/right/bottom/left members).  But the spec says that two rects should be reported.  That's the bug here.

For comparison, Firefox Nightly (from ) reports two rects in that popup, like so:

Comment 5 by, Jul 23 2018

Components: -Blink>CSS Blink>Layout>Table
Labels: -Needs-Feedback -Needs-Triage-M69
Status: Available (was: Unconfirmed)

Sign in to add a comment