I was reading through Eric Meyer’s CSS reset and saw this:
blockquote:before, blockquote:after,
q:before, q:after {
/* ? */ content: '';
/* ? */ content: none;
}
I assume that some browsers support content: '' and some content: none, is this the case? And which browsers support which?
Meyer credits Paul Chaplin with that version of the blockquote/q reset styles.
Chaplin’s post on the subject contains the following style block, helpfully annotated.
To boil it down: current versions of most browsers simply support a
quotes: nonestyle, which eliminates the need to use the:beforeand:afterselectors. The odd man out was Safari/WebKit, which didn’t respectquotes: none. The next way to solve this was with the:before/:afterpseudo-elements, but at the time of that writing, WebKit didn’t supportcontent: noneeither, socontent: ""was required.However, that post was in 2008, and a quick test with current WebKit browsers (Safari 5.1 and Chrome 12) shows that
quotes: noneworks fine on both. Thecontent: nonebug against WebKit is still open for some reason, while the bug for the quotes property was closed fairly recently.So, long story short, the extra styles appear to be there to support older versions of Safari (and possibly Chrome). It’s a little more difficult to nail down exactly when they got support, but current versions of all browsers seem to deal with
quotes: none(andcontent: none) just fine.