csswg-drafts
csswg-drafts copied to clipboard
[css-content] Styling applied to a quoted element should not affect the quotation marks
2.4.1. Specifying quotes with the quotes property https://drafts.csswg.org/css-content/#quotes-property
[Moving this comment from https://github.com/w3c/csswg-drafts/issues/5478 to a new issue]
I was just reviewing an article i wrote in 2018 but haven't yet published, pending the resolution of this discussion. Some parts, esp. related to how to write CSS, need to be rewritten after the dust settles.
The section Problems with scope describes an issue that i don't think we have yet discussed: If you apply a font change to a quotation in another language marked up with the q element, the font change also affects the quote marks, but the quote marks should be treated as part of the surrounding text, and remain in the same font as the stuff around the quote.
The following response from @jfkthame is copied here:
Probably worth discussing in a separate issue. Logically, I agree that the quote marks "belong" to the context of the quoted text, but if the quote is styled quite distinctively, I suspect it could look quite jarring to surround it with quote marks that don't match its style.
(I'm sure I've seen typographic guidelines that insist punctuation marks should use the style of the adjacent word, and haven't said anything about an exception for quote marks.)