CKTIS / CSS
CSS property `quotes`
The inherited `quotes` property defines the mark pairs that generated `open-quote` and `close-quote` values select according to the current quote depth.
Version: CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
Syntax
auto | none | bikeshed-this | [ <string> <string> ]+The inherited quotes property defines the mark pairs that generated open-quote and close-quote values select according to the current quote depth.
The example supplies two pairs: computed quotes serializes as "«" "»" "‹" "›", while pseudo-elements at both levels retain open-quote and close-quote so the renderer selects marks by depth.
Grammar: auto | none | bikeshed-this | [ <string> <string> ]+.
none emits no marks but preserves the quote keywords’ depth changes; auto chooses a system from the parent’s content language. Once pairs are exhausted the last pair repeats, and a close below depth zero is ignored. The draft specification’s placeholder keyword bikeshed-this is not a safe production choice.
Examples
<!doctype html><meta charset="utf-8"><style>q{quotes:"«" "»" "‹" "›"}q::before{content:open-quote}q::after{content:close-quote}</style><q id="outer">outer <q id="inner">inner</q></q><pre id="result"></pre><script>const pairs=getComputedStyle(outer).quotes,a=getComputedStyle(outer,'::before').content,b=getComputedStyle(inner,'::before').content,c=getComputedStyle(inner,'::after').content,d=getComputedStyle(outer,'::after').content;if(pairs!=='"«" "»" "‹" "›"'||[a,b,c,d].join('/')!=='open-quote/open-quote/close-quote/close-quote')throw new Error('quotes mismatch '+[pairs,a,b,c,d]);result.textContent='pairs='+pairs+'; pseudo='+[a,b,c,d].join('/');</script>Result
pairs="«" "»" "‹" "›"; pseudo=open-quote/open-quote/close-quote/close-quote
The example supplies two pairs: computed `quotes` serializes as `"«" "»" "‹" "›"`, while pseudo-elements at both levels retain `open-quote` and `close-quote` so the renderer selects marks by depth.