Skip to content

Commit

Permalink
Merge pull request #47 from davemckenna01/chrome-25-lion-issues
Browse files Browse the repository at this point in the history
Give scrollbar pseudo-classes their own blocks, fixes issue #46
  • Loading branch information
rauchg committed Apr 10, 2013
2 parents 4d31236 + 2b0a58b commit e435a1b
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion antiscroll.css
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,20 @@
overflow: scroll;
}

.antiscroll-inner::-webkit-scrollbar, .antiscroll-inner::scrollbar {
/** A bug in Chrome 25 on Lion requires each selector to have their own
blocks. E.g. the following:
.antiscroll-inner::-webkit-scrollbar, .antiscroll-inner::scrollbar {...}
causes the width and height rules to be ignored by the browser resulting
in both native and antiscroll scrollbars appearing at the same time.
*/
.antiscroll-inner::-webkit-scrollbar {
width: 0;
height: 0;
}

.antiscroll-inner::scrollbar {
width: 0;
height: 0;
}

0 comments on commit e435a1b

Please sign in to comment.