Skip to content

[css-counter-styles-3] Should fallback use prefix/suffix of original style or fallback style? #8619

@vitorroriz

Description

@vitorroriz

Hi everybody,

Counter styles specification says at https://www.w3.org/TR/css-counter-styles-3/#counter-styles:

Note: prefix and suffix don’t play a part in this algorithm. This is intentional; the prefix and suffix aren’t part of the string returned by the counter() or counters() functions. Instead, the prefix and suffix are added by the algorithm that constructs the value of the content property for the ::marker pseudo-element. This also implies that the prefix and suffix always come from the specified counter-style, even if the actual representation is constructed by a fallback style.

However, some related WPT tests (below) expects that the suffix and prefix come from the fallback style:
imported/w3c/web-platform-tests/css/css-counter-styles/counter-style-at-rule/suffix-fallback.html
imported/w3c/web-platform-tests/css/css-counter-styles/counter-style-at-rule/system-additive.html
imported/w3c/web-platform-tests/css/css-counter-styles/counter-style-at-rule/system-alphabetic.html
imported/w3c/web-platform-tests/css/css-counter-styles/counter-style-at-rule/system-extends.html
imported/w3c/web-platform-tests/css/css-counter-styles/counter-style-at-rule/system-symbolic.html
imported/w3c/web-platform-tests/css/css-counter-styles/counter-style-at-rule/fallback-cycle.html
imported/w3c/web-platform-tests/css/css-counter-styles/counter-style-at-rule/descriptor-prefix.html

I've created a related issue at the WPT repo (web-platform-tests/wpt#38772) since there were related changes to the expected values here web-platform-tests/wpt@90a953f

I'd like to clarify what the proper behavior should be.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions