- From: Gunnar Bittersmann <gunnar@bittersmann.de>
- Date: Fri, 8 Apr 2016 08:48:33 +0200
- To: www-international@w3.org
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‽ ;-) > :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 06:48:58 UTC