W3C home > Mailing lists > Public > public-css-archive@w3.org > January 2018

Re: [csswg-drafts] [css-scrollbars-1] New "better" proposition for scrollbars

From: SelenIT via GitHub <sysbot+gh@w3.org>
Date: Thu, 04 Jan 2018 16:24:43 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-355327461-1515083082-sysbot+gh@w3.org>
In fact, [the current CSS Selectors Level 4 draft allows](https://drafts.csswg.org/selectors-4/#pseudo-element-states) _some_ pseudo-elements to have "user action" pseudo-classes after it (so things like `::first-line:hover` are going to be valid). Browsers also widely support things like `::-moz-range-track:hover` for their vendor-specific pseudo-elements created for native HTML5 controls like `<input type="range">`. The same approach can be used for the pseudo-elements for scrollbar parts, so making the names that long would be probably unnecessary.

Hovewer, like many other commenters before, in general I strongly prefer this pseudo-element-based approach for scrollbar customization to the current IE5-like "repainting". The assumption that scrollbars are purely decorative things, "just like text-decoration underlines", which the current proposal seems to be based on, [seems a very weak reasoning](https://github.com/w3c/csswg-drafts/issues/2009#issuecomment-355292845) to me.

-- 
GitHub Notification of comment by SelenIT
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2153#issuecomment-355327461 using your GitHub account
Received on Thursday, 4 January 2018 16:24:55 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:22 UTC