New issue
Advanced search Search tips

Issue 790554 link

Starred by 2 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

getComputedStyle(objElem).width must not be affected by presence (or absence) of vertical scrollbar

Reported by goo...@gtalbot.org, Nov 30 2017

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0

Example URL:
http://www.gtalbot.org/BrowserBugsSection/CSS3Box/ScrollbarVersusComputedStyleWidth.html

Steps to reproduce the problem:
Available tests
---------------

A)
http://www.gtalbot.org/BrowserBugsSection/CSS3Box/ScrollbarVersusComputedStyleWidth.html

B)
https://lists.w3.org/Archives/Public/www-style/2014Jan/att-0509/scrollbar.html
and then Inspect and then view Console

What is the expected behavior?
A) computed CSS width should be 400px *_at all times_*

B) Value in Console should be 20px

What went wrong?
A) computed CSS width is 385px when a vertical scrollbar is rendered

B) Value in Console is 5px

Does it occur on multiple sites: N/A

Is it a problem with a plugin? No 

Did this work before? No 

Does this work in other browsers? Yes

Chrome version: 64.0.3282.0  Channel: n/a
OS Version: 
Flash Version: irrelevant

[css3-box] How do scrollbars affect width calculation?
https://lists.w3.org/Archives/Public/www-style/2014Jan/0499.html

Re: [css3-box] How do scrollbars affect width calculation?
https://lists.w3.org/Archives/Public/www-style/2014Jan/0557.html

Chrome 32.0.1700.107 failed the A) test.

Credit should go to Thomas Rosenau for initially reporting this issue.
 

Comment 1 by goo...@gtalbot.org, Nov 30 2017

I searched for Issues with the string "ComputedStyle" and Issues in component:Blink>Layout>Scrollbars and did not find a duplicate.
Cc: emilio@chromium.org
Components: Blink>CSS
Labels: -Type-Compat M-64 Triaged-ET Needs-Triage-M64 Type-Bug
Status: Untriaged (was: Unconfirmed)
Able to reproduce this issue on Ubuntu 14.04 using chrome reported version #64.0.3282.0.
Issue is specific to OS-Linux.
This is a non-regression issue as it is observed from M50 old builds. 

Hence, marking it as untriaged to get more inputs from dev team.

Thanks...!!
Status: Available (was: Untriaged)
Chrome, Edge:
scrollbars affect width

Firefox:
always 400px, with or without scrollbars

Safari:
always 400px, scrollbars never visible

Labels: Hotlist-Interop
Project Member

Comment 6 by sheriffbot@chromium.org, Dec 4

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Status: Available (was: Untriaged)

Sign in to add a comment