[csswg-drafts] [css-content] what does quotes:auto do? (#10436)

frivoal has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-content] what does quotes:auto do? ==
In Webkit, when `::before { content: open-quote; }` is used, if the computed value of `quotes` is `auto`, the quotation marks used are those that correspond to the language of the originating element (i.e. the parent of the `::before` pseudo). (the same is true for the `::after` or about `close-quote`)

In Blink and Firefox, the quotation marks used are those that correspond to the language of the parent of the originating element (i.e. the grand-parent of the `::before` pseudo).

Which one do we want?

Important note: following the resolution of https://github.com/w3c/csswg-drafts/issues/5478, this does not affect the behavior of on the `q` element, because that element's behavior is driven by another value. So this would only be for elements where authors manually specify `some-element::before { content: open-quote; }` (and don't also use the value defined in https://github.com/w3c/csswg-drafts/issues/5478).

Given that new value, I'd be inclined to follow Safari here, to give authors a choice: I could reasonably see an author wanting to use a `open-quote` (or `close-quote`) on a `blockquote` element's `::before` and wanting them to be based on the language of the `blockquote` element rather than its parent.



Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10436 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 12 June 2024 15:59:33 UTC