Skip to content

Commit

Permalink
Give scrollbar pseudo-classes their own blocks
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
davemckenna01 committed Feb 26, 2013
1 parent 5e5639f commit 2b0a58b
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 2b0a58b

Please sign in to comment.