Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Remove `html {overflow-y:scroll}` due to Firefox bugs #918

Closed
necolas opened this Issue · 7 comments

7 participants

@necolas
Owner

Problems with Firefox and JavaScript calculations or modifications have been brought up a number of times at the normalize.css repo:

necolas/normalize.css#71
necolas/normalize.css#65
necolas/normalize.css#64

I think we should consider removing the offending code. There is no simple, viable alternative to setting this scroll property on the html element and it isn't really needed.

@nimbupani

+1 this was useful for pixel perfect designs, but we definitely dont advocate that any more.

@paulirish
Owner

i do really like this trick and it's come in useful...

but to me you're building a site or an app. apps are fullscreen and shouldnt have a scrollbar.
sites are long pages and definitely should have a scrollbar.

there isnt much of a place for pages that are shorter than the browser window, i'd say.

that's why i'm +1 on this.

@necolas necolas was assigned
@Matt-Deacalion

I really like html {overflow-y:scroll}. Call me a stickler, but I hate the jerky movement when I'm going through a site from one long page to a short one and the scrollbar keeps flickering on and off.

@mathiasbynens

Sounds like something that could be removed + documented in the wiki?

@addyosmani

I'm with Mathias on this one. I think removing and doc'ing would be the way to go.

@necolas necolas closed this issue from a commit
@necolas necolas Remove forced scrollbars on `html` element. Fix #918
This can cause problems for JavaScript plugins (such as modal or
drag-and-drop UIs) in Firefox.
5c02f40
@necolas necolas closed this in 5c02f40
@benkutil benkutil referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
@bryandowning

Note that the docs still reference the overflow-y property on html. http://html5boilerplate.com/docs/The-style/

@necolas
Owner

This is where the up-to-date CSS docs are - http://html5boilerplate.com/docs/css/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.