RESOLVED FIXED327372
[UsedStyle] Handle border widths
https://bugs.webkit.org/show_bug.cgi?id=327372
Summary [UsedStyle] Handle border widths
Antti Koivisto
Reported 2026-10-12 23:58:25 PDT
A zero border width for border-style none or hidden is a used-value effect (css-backgrounds-3, csswg-drafts#11494). Move the used border widths from ComputedStyle to UsedStyle, which returns them zoomed and snapped to device pixels. Formatting-context adjustments, like collapsed table borders and fieldset legends, stay in RenderBoxModelObject::borderTop() and friends. Code without a renderer, like style comparisons and themes, uses Style::effectiveBorderWidths().
Attachments
Radar WebKit Bug Importer
Comment 1 2026-10-12 23:58:34 PDT
Antti Koivisto
Comment 2 2026-10-13 00:00:40 PDT
EWS
Comment 3 2026-10-13 09:41:51 PDT
Committed 323590@main (f63720f2dec6): <https://commits.webkit.org/323590@main> Reviewed commits have been landed. Closing PR #76870 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.