W3C home > Mailing lists > Public > www-style@w3.org > November 2006

Re: [CSS3][selectors] Scrolled pseudo class

From: Daniel Glazman <daniel.glazman@disruptive-innovations.com>
Date: Thu, 09 Nov 2006 17:44:55 +0100
Message-ID: <45535B07.7090009@disruptive-innovations.com>
To: "www-style@w3.org" <www-style@w3.org>

Markus Jonsson wrote:
> I would want to propose a pseudo class like this one: http://www.blooberry.com/indexdot/css/syntax/pseudo/pclassscrolledcontent.htm for 
> elements that are in a state with scrollbars. Because, in a case like this:
> <div style="background-color: red; height: 100px; overflow: auto"> <table border="1">...</table> </div>
> ...normally there should be no padding between the TABLE and the DIV.
> However, if a vertical scrollbar appears, you might wan't to apply a small padding-right to the DIV, so that the scrollbar doesn't lie 
> directly to the table border. Comments?

What you are really looking for is overflow-state-based events.
onoverflowchange or something.

Received on Thursday, 9 November 2006 16:45:11 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:26 UTC