New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 648856 link

Starred by 3 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Nov 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

Padding-right no longer goes below a vertical scrollbar since Chrome 53

Reported by ar...@vaadin.com, Sep 21 2016

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36

Example URL:
http://artur.app.fi/scrollbar-padding.html

Steps to reproduce the problem:
1. Open http://artur.app.fi/scrollbar-padding.html

What is the expected behavior?
IE8-IE11, Firefox, Chrome 52 and older all show a vertical scrollbar which is placed right after the "Hello" text

What went wrong?
Chrome 53 includes padding between the "Hello" text and the scrollbar

Does it occur on multiple sites: Yes

Is it a problem with a plugin? No 

Did this work before? Yes Chrome 52

Does this work in other browsers? Yes 

Chrome version: 53.0.2785.116  Channel: stable
OS Version: OS X 10.11.6
Flash Version: Shockwave Flash 23.0 r0
 
firefox49.png
7.3 KB View Download
chrome53.png
7.5 KB View Download
Components: -Blink Blink>Layout

Comment 2 by e...@chromium.org, Sep 22 2016

Cc: tabatkins@chromium.org
Labels: Needs-Feedback
This seems more correct to me. Without the padding the content is clipped in older versions of Chrome and in Firefox.

+tab for spec cliarification.
Spec is clear - they go between the border and padding, not overlapping.

However, that's irrelevant here - note that the scrollbar is on the container, but the padding is on the child.  The scrollbar is definitely "between the border and padding" for the container, because there's zero padding there.

What matters here is how you calculate the intrinsic width of an inline-block with overflow:auto - it definitely starts as width of "Hello" + padding-right, but does it add in the scrollbar width as well?  If not, as Firefox is doing, the child is just *overflowing* (but overflow-x is set to "hidden", so you don't see a horizontal scrollbar) and sits underneath the scrollbar.  If there were two words, I think the line would end up breaking and move the second word down.

It turns out whether the scrollbar is included in the intrinsic width is undefined in CSS2.1, so... shrug? OUr new behavior is fine.

Comment 4 by l...@vaadin.com, Sep 23 2016

What is the rationale for changing the behaviour?

Is it important enough to cause regressions in existing sites that used to work consistently in all major browsers?

Is it important enough to introduce a case where authors need to take browser differences into account?

Comment 5 by e...@chromium.org, Nov 2 2016

Status: WontFix (was: Unconfirmed)
This fixed a number of issues where we incorrectly wrapped and broke layout which is less sever than adding the padidng in your case. It's all about trade-offs. If there are cases where this change broken content or functionality we'll of course reconsider.

Sign in to add a comment