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

Re: [CSS3][selectors] Scrolled pseudo class

From: Boris Zbarsky <bzbarsky@mit.edu>
Date: Thu, 09 Nov 2006 10:35:01 -0600
Message-ID: <455358B5.10703@mit.edu>
To: Markus Jonsson <carnaby@passagen.se>
CC: 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 happens with

   :scrolled-content { overflow: hidden; }

?  Also note that in Gecko :-moz-scrolled-content doesn't apply "to the content 
that is scrolled" (which is what the link you quote says).  It applies to the 
anonymous box that lives inside the scrollbars.

Received on Thursday, 9 November 2006 16:35:30 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:47 GMT