Re: Expected behaviour of quotation marks

Hi Richard,
I thought I was done with preparing my lightning talk on this very topic
of nested quotes for the upcoming Front-Trends conference in Warsaw—now
you come up with this discussion‽ ;-)

ishida@w3.org scripsit (2016-04-07 16:39):
> :lang(fr) > * { quotes: "« " " »" "‹ " " ›" }
> :lang(en) > * { quotes: "“" "”" "‘" "’" }

I feel guilty for having told you these selectors some years ago. Also
in
https://lists.w3.org/Archives/Public/www-international/2011JulSep/0069.html

Because of how CSS processing works: selectors are read from right to
left. In this case, `*` matches to each and every element, for all of
them it needs to be checked if their parent elements are in given
language, only to find out later that the `quotes` property has no
effect for most of the elements.

Don’t use `:lang() > *`. Use `:lang() > q` instead.

It’s micro-optimization, but with no costs.

You might want to change all documents telling otherwise. ;-)

Shame on me,
Gunnar

Received on Friday, 8 April 2016 12:57:56 UTC