From 2b0a58bb71370dc3a713fcb22dee9d9b6d7b22b7 Mon Sep 17 00:00:00 2001 From: Dave McKenna Date: Tue, 26 Feb 2013 11:55:10 -0500 Subject: [PATCH] Give scrollbar pseudo-classes their own blocks 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.css | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/antiscroll.css b/antiscroll.css index 0dd3b27..2962629 100644 --- a/antiscroll.css +++ b/antiscroll.css @@ -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; }