Bug 327372
| Summary: | [UsedStyle] Handle border widths | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Antti Koivisto <koivisto> |
| Component: | CSS | Assignee: | Antti Koivisto <koivisto> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | koivisto, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=316654 | ||
Antti Koivisto
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/189885806>
Antti Koivisto
Pull request: https://github.com/WebKit/WebKit/pull/76870
EWS
Committed 323590@main (f63720f2dec6): <https://commits.webkit.org/323590@main>
Reviewed commits have been landed. Closing PR #76870 and removing active labels.