Image not rescaled when padding is updated
Reported by
bnguyen...@gmail.com,
Mar 23 2016
|
||||||||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36 Example URL: http://bready.xyz Steps to reproduce the problem: 1. Go to page 2. Scroll down to pictures in circle 3. Hover over the pictures What is the expected behavior? padding is supposed to change to 0 and the border-radius is supposed to maintain its radius What went wrong? The border radius does not apply after hover Does it occur on multiple sites: N/A Is it a problem with a plugin? No Did this work before? Yes A few weeks ago Does this work in other browsers? Yes Chrome version: 49.0.2623.87 Channel: stable OS Version: OS X 10.9.4 Flash Version: Shockwave Flash 21.0 r0
,
Mar 23 2016
I believe http://jsbin.com/fejisawixa/edit?html,output shows the same issue. The image isn't rescaled correctly when, given that box-sizing is specified to border-box, the width constraint forces the image content width to increase when padding is decreased.
,
Mar 23 2016
Bisect points to https://chromium.googlesource.com/chromium/src/+/5eb722fa5e9e3ac311f46923d0c6f84af5cf316a My guess is that the change happened to uncover a latent bug. Looking at the code, it seems likely that the act of rounding in LayoutReplaced triggered change invalidation "by chance"; removing the rounding (as done by the patch) causes the box to not notice the width + padding change (because they now add up to the same sum) and to do no change invalidation.
,
Mar 23 2016
,
Mar 23 2016
,
Mar 24 2016
https://jsfiddle.net/6m5m943y/2/ Specific problem display Image is supposed to resize in response to padding, but doesn't
,
Mar 29 2016
Recreated issue without animations: http://jsbin.com/fiwovabago/1/edit?html,output
,
Mar 29 2016
,
Mar 29 2016
,
Apr 7 2016
|
||||||||
►
Sign in to add a comment |
||||||||
Comment 1 by rsesek@chromium.org
, Mar 23 2016