These tests use the spec styling. Lang values are chosen to avoid conflicts.
deuxcinqtroisquatre
two three
four
cinqtwo drei
four
cinqtwo drei vier
fünf
four
cinqIn test #1, which is monolingual, the quotation marks work as expected. For the other multilingual quotes, the quotation marks are determined by the language of the text quoted.
These tests use a possible alternative styling that just swaps the position of the :not selector.
deuxcinqtroisquatre
two three
four
cinqtwo drei
four
cinqtwo drei vier
fünf
four
cinqThe quotation marks are determined by the language of the text surrounding the quote.
One further problem, however, is that the secondary quotations marks are being chosen rather than the primary quotation marks.
These tests use an adaptation of the alternative styling proposed, with two separate lines per language.
deuxcinqtroisquatre
two three
four
cinqtwo drei
four
cinqtwo drei vier
fünf
four
cinqThe quotation marks are determined by the language of the text surrounding the quote, and for this level of embedding they apply the primary and secondary quotation marks a little better.
These tests show what the browser does with no style declarations, using the language tags fr-CH, en, and de.
deuxcinqtroisquatre
two three
four
cinqtwo drei
four
cinqtwo drei vier
fünf
four
cinq