Element with overflow:auto under border-radius and overflow:hidden does clip content when height is 100%
Reported by
jluras...@gmail.com,
Apr 21 2017
|
|||||||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36 Example URL: https://jsfiddle.net/ry5da8tm/1/ Steps to reproduce the problem: Take a look at: https://jsfiddle.net/ry5da8tm/1/ or create the following div: <div style="border: solid 1px #000;border-radius: 3px;width: 100px;height: 100px;overflow: hidden;"> <div style="overflow: hidden;height: 100px;width: 100px;"> <div style="overflow: auto;width: 100%;height: 100%;background-color: #FFF;/* height: 1000px; */"> <div style="height: 1000px;"> </div> </div> </div> </div> What is the expected behavior? The border should render correctly. What went wrong? The corners of the border are being clipped incorrectly. Does it occur on multiple sites: Yes Is it a problem with a plugin? No Did this work before? N/A Does this work in other browsers? Yes Chrome version: 57.0.2987.133 Channel: stable OS Version: OS X 10.11.6 Flash Version: Shockwave Flash 25.0 r0 This behavior is not consistent with other browsers. Changing the height to 1000px (instead of 100%) also seems to fix this.
,
Apr 24 2017
Oh, wait, I think I understood it now. Missed what's said in "the expected behavior".
,
Apr 24 2017
Blink paints the white background of the inner div after the border of the outer div, or use the clip of inner div to draw the border of the outer div, and thus the corner is overwritten. Only on Mac, I can't confirm on Win.
,
Apr 24 2017
,
Apr 24 2017
This is a HighDPI issue. It does not reproduce at 100% DPI setting, but does repro on Mac at 200% and on Windows at various HighDPI display settings. Somehow the border radius painting and the outside border clip rect are not growing at the same rate as DPI increases.
,
Apr 24 2017
I do have a display with HighDPI; however, this seems to repro for me at 100% as well. See the attached zoomed-in screenshot taken at 100% from Chrome:
,
Apr 24 2017
Right, I saw that too, but it was less obvious to me there whether it was just standard anti-aliasing. I do think it should be improved, but without the continued degradation at HighDPI we wouldn't consider it so important.
,
Apr 25 2018
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
,
Apr 25 2018
|
|||||||
►
Sign in to add a comment |
|||||||
Comment 1 by kojii@chromium.org
, Apr 24 201722.7 KB
22.7 KB View Download