Caniuse: Support for CSS3 overflow-x and overflow-y properties

Created on 16 Jun 2015  路  31Comments  路  Source: Fyrd/caniuse

Most helpful comment

The CSS Overflow Module Level 3 specification has also changed the definition of overflow to allow 2 values: https://drafts.csswg.org/css-overflow-3/#propdef-overflow

html {
  overflow: hidden auto;
}

Available in Chrome 68.
Available in Firefox 61.
Issue tracker for WebKit.
Issue tracker for Edge.

Additional resources:
PostCSS Plugin

All 31 comments

http://dev.w3.org/csswg/css-overflow/ (CSS Overflow Module Level 3)

+1

+1
Don't know why this isn't already added? Anyone knows why? It's quite a popular feature.

+1

@phillq maybe because the basic functionality is quite old?

+1

+1

+1

+1

+1 :)

+1

+1

+1

+1

+1

+1

+1

+1

+1 this is supported is it not? I thought it was, then I double checked on caniuse and now I am not so sure. w3schools shows it is supported.

+1

+1

+1
Firefox (Gecko) still seems to handle overflow-y:scroll differently (or not at all) on certain elements.

+1

For anyone who doesn't want to read through the spec sheets to figure out what CSS overflow Level 3 is, I read through them and this is what I got.

According to the spec sheets, overflow was defined in CSS Level 2.1 but didn't explicitly include overflow-x and overflow-y. Those were apparently added by browser developers. Level 3 aims to officially set the standard rules for these properties and add a new property called max-lines. From the intro to Level 3, I quote:

This specification introduces the long-standing de-facto overflow-x and overflow-y properties, and defines overflow handling more fully. - Link

The max-lines property doesn't appear fully defined at the moment, but the heading describes it as:

Limiting Number of Visible Text Lines - Link

CSS overflow Level 3 spec [draft]: https://drafts.csswg.org/css-overflow-3/
CSS overflow Level 2.1 spec: https://www.w3.org/TR/CSS2/visufx.html#overflow

P.S. There also appears to be a Level 4 spec draft, but it acknowledges that Level 3 is still a draft and must be finished first.

CSS overflow Level 4 spec [draft]: https://drafts.csswg.org/css-overflow-4/

P.P.S. Also see @jonathantneal's comment below about a detail I overlooked in the Level 3 spec.

+1

+1

The CSS Overflow Module Level 3 specification has also changed the definition of overflow to allow 2 values: https://drafts.csswg.org/css-overflow-3/#propdef-overflow

html {
  overflow: hidden auto;
}

Available in Chrome 68.
Available in Firefox 61.
Issue tracker for WebKit.
Issue tracker for Edge.

Additional resources:
PostCSS Plugin

+1

+1

+1

Now available at https://caniuse.com/#feat=css-overflow

+1

Was this page helpful?
0 / 5 - 0 ratings

Related issues

greigs picture greigs  路  3Comments

SteveALee picture SteveALee  路  3Comments

SanderMuller picture SanderMuller  路  3Comments

36degrees picture 36degrees  路  3Comments

rogeriotaques picture rogeriotaques  路  3Comments