Open Bug 1511031 Opened 7 years ago Updated 3 years ago

The Element.clientWidth property returns an incorrect value when a table has borders

Categories

(Core :: Layout: Tables, defect, P3)

63 Branch
Desktop
All
defect

Tracking

()

Tracking Status
firefox63 --- affected
firefox64 --- affected
firefox65 --- affected

People

(Reporter: support, Unassigned)

Details

(Keywords: parity-chrome)

Attachments

(4 files)

Attached file sample.html
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36 Steps to reproduce: Create a table. Set borders to it. Add a cell. Get the clientWidth property of the table using the document.getElementById("tableID").clientWidth JavaScript code. Attached a sample HTML page. Reproduced in the stable 63 and night 65 builds. Actual results: The clientWidth property returns 38px. Expected results: The clientWidth property returns 28px.
Attached image ff_night.png
results in the night build
Attached image ff_stable.png
results in the stable build
Attached image chrome.png
results in Chrome
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:65.0) Gecko/20100101 Build ID: 20181203093109 I manage to reproduce this on Windows 10 x64 with 65.0a1 (2018-12-03) (64-bit).
Status: UNCONFIRMED → NEW
Component: Untriaged → SVG
Ever confirmed: true
OS: Unspecified → All
Product: Firefox → Core
Hardware: Unspecified → Desktop
Component: SVG → Layout: Tables
Keywords: parity-chrome
Priority: -- → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: