Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 1e7932ecb00da4b22c15182d9ef18f1f7e63d30a
https://github.com/WebKit/WebKit/commit/1e7932ecb00da4b22c15182d9ef18f1f7e63d30a
Author: Ben Nham <[email protected]>
Date: 2026-03-13 (Fri, 13 Mar 2026)
Changed paths:
A LayoutTests/fast/css/counters/counter-style-pad-length-limit-expected.txt
A LayoutTests/fast/css/counters/counter-style-pad-length-limit.html
M Source/WebCore/css/CSSCounterStyle.cpp
M Source/WebCore/css/CSSCounterStyle.h
Log Message:
-----------
Limit length of @counter-style padding
https://bugs.webkit.org/show_bug.cgi?id=309875
rdar://172044856
Reviewed by Antti Koivisto.
We should limit the length of padding in a @counter-style rule. CSS Counter
Styles Level 3
explicitly allows this, and Chrome and Firefox already apply a length limit of
120 and 150
respectively. This patch applies a limit of 150 to match Firefox.
Test: fast/css/counters/counter-style-pad-length-limit.html
* LayoutTests/fast/css/counters/counter-style-pad-length-limit-expected.txt:
Added.
* LayoutTests/fast/css/counters/counter-style-pad-length-limit.html: Added.
* Source/WebCore/css/CSSCounterStyle.cpp:
(WebCore::CSSCounterStyle::text):
(WebCore::CSSCounterStyle::applyPadSymbols const):
* Source/WebCore/css/CSSCounterStyle.h:
Canonical link: https://commits.webkit.org/309228@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications