- From: Boris Zbarsky <bzbarsky@mit.edu>
- Date: Thu, 09 Nov 2006 10:35:01 -0600
- 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. -Boris
Received on Thursday, 9 November 2006 16:35:30 UTC