Bug 254339

Summary: @counter-style rule can't redefine certain predefined styles.
Product: WebKit Reporter: Vitor Roriz <vitor.roriz>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   

Description Vitor Roriz 2023-03-23 09:32:51 PDT
User is allowed to redefine @counter-style rules predefined by user-agent, except if the rules are:

Except for "decimal, disc, square, circle, disclosure-open, and disclosure-closed" according to https://w3c.github.io/csswg-drafts/css-counter-styles/#the-counter-style-rule.

We currently just avoid 'decimal' and 'disc' from being redefined.
Comment 1 Radar WebKit Bug Importer 2023-03-23 09:33:02 PDT
<rdar://problem/107138989>
Comment 2 Vitor Roriz 2023-03-23 09:44:31 PDT
Pull request: https://github.com/WebKit/WebKit/pull/11867
Comment 3 EWS 2023-03-23 14:23:26 PDT
Committed 262038@main (5507daf4822f): <https://commits.webkit.org/262038@main>

Reviewed commits have been landed. Closing PR #11867 and removing active labels.