Bug 250129 - CounterStyle parses all symbols as a single one
Summary: CounterStyle parses all symbols as a single one
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-01-05 06:38 PST by Vitor Roriz
Modified: 2023-01-05 06:51 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.