Re: [CSS3][selectors] Scrolled pseudo class

Markus Jonsson wrote:
> I would want to propose a pseudo class like this one: 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 UTC