Bug 250129

Summary: CounterStyle parses all symbols as a single one
Product: WebKit Reporter: Vitor Roriz <vitor.roriz>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WONTFIX    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   

Description Vitor Roriz 2023-01-05 06:38:59 PST
consumeCounterStyleSymbol() parses multiple symbols wrongly.
It seems to not consider space as a delimiter, so an entry with multiple symbols will produce a CSS list of a single CSSValue.

The following example will produce a list with a single CSSValue whose string is "> 1 3 #", instead of a list with three symbols/
@counter-style fooA {
    system: cyclic;
    symbols: "> 1 3 #";
}
Comment 1 Radar WebKit Bug Importer 2023-01-05 06:39:12 PST
<rdar://problem/103911900>
Comment 2 Vitor Roriz 2023-01-05 06:51:11 PST
Actually, this is correct. Syntax allows multi-glyph symbols, and multiple symbols should be separated by individual quotation marks.