Normalize.css: OSX radios are being clipped in chromium browsers

Created on 6 Jul 2015  路  6Comments  路  Source: necolas/normalize.css

Chromium browsers clip radio buttons one pixel on the left and bottom if a parent has overflow:hidden. This is an open issue with chromium but over a year old. It was brought up in bootstrap but I thought it should be decided on within normalize since it isn't exclusive there.


Radios and checkbox inside container with overflow:hidden

overflow-edge


This also can be seen when radios are naturally against the edge of page.

viewport-edge


Demo
This would establish a consistency across all operating systems and browsers.

awaiting feedback

Most helpful comment

@jonathantneal I have changed my stance on this and agree that it is too opinionated for inclusion in normalize. Since this is a known chromium bug (although the ticket is approaching 2 years old), developers can simply apply the 1px shift of the radio input by means of margin, padding, or positioning on the affected side of the element.

All 6 comments

Doesnt happen to me, maybe. Chrome 44.0.2403.61 beta on lubuntu 14.04. From your demo:

2015-07-07_02 39

Per http://crbug.com/396726#c1 , only Mac OS X is affected by this.

@walutisme This is an OSX only issue. Windows and Linux are fine. :)

I鈥檝e recently started addressing issues here, so forgive me for the delay. I鈥檇 like to wait till there is a fix, since the fix involves very opinionated defaults on how radio buttons should align. @josephfusco, thoughts or new info?

@jonathantneal I have changed my stance on this and agree that it is too opinionated for inclusion in normalize. Since this is a known chromium bug (although the ticket is approaching 2 years old), developers can simply apply the 1px shift of the radio input by means of margin, padding, or positioning on the affected side of the element.

Filed a WebKit bug since this affects Safari too: https://bugs.webkit.org/show_bug.cgi?id=155577

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Sky161 picture Sky161  路  6Comments

DanielPietrasik picture DanielPietrasik  路  3Comments

FDiskas picture FDiskas  路  3Comments

visicode picture visicode  路  7Comments

visicode picture visicode  路  6Comments