Hi,
I was wondering if ::before and ::after pseudo-elements can apply to
elements styled with the display: table-* properties. None of my tests
worked in either Firefox or Opera, yet I could not find anywhere in
either the CSS2.1, CSS3 Selectors or CSS3 Generated and Replaced Content
Module specs that defines which elements these pseudo-elements actually
apply to.
Specifically, I was wondering if something like this were possible:
table>:not(col) :not(colgroup): first-child::before {
/* Should work with thead, tfoot, tbody or tr (whichever comes first
* in the table), if not preceded by a col or colgroup element.
*/
display: table-column;
background: green;
}
--
Lachlan Hunt
http://GetFirefox.com/ Rediscover the Web
http://GetThunderbird.com/ Reclaim your Inbox
I was wondering if ::before and ::after pseudo-elements can apply to
elements styled with the display: table-* properties. None of my tests
worked in either Firefox or Opera, yet I could not find anywhere in
either the CSS2.1, CSS3 Selectors or CSS3 Generated and Replaced Content
Module specs that defines which elements these pseudo-elements actually
apply to.
Specifically, I was wondering if something like this were possible:
table>:not(col) :not(colgroup): first-child::before {
/* Should work with thead, tfoot, tbody or tr (whichever comes first
* in the table), if not preceded by a col or colgroup element.
*/
display: table-column;
background: green;
}
--
Lachlan Hunt
http://GetFirefox.com/ Rediscover the Web
http://GetThunderbird.com/ Reclaim your Inbox
Comment