Bug 228143
| Summary: | AX: CSS outline clipping when elements are resized in CSS | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Dave House <davehouse> |
| Component: | Layout and Rendering | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | bfulgham, simon.fraser, webkit-bug-importer, zalan |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 14 | ||
| Hardware: | Unspecified | ||
| OS: | macOS 10.15 | ||
Dave House
When an element such as a link has an outline defined in CSS (for example as a :focus state) and that element has also been resized through bolding or increasing the font size the outline seems to clip based on the original font size. If you zoom the browser 2-3 times it triggers some kind of repaint and the outline appears.
The only way I have managed to get an outline to render properly in Safari is to add `overflow: auto` to the element which seems to force the outline to render correctly.
Simplified test case here:
https://codepen.io/iknowdavehouse/pen/wvdqdba
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/80887280>
Sam Sneddon [:gsnedders]
Some layout/paint invalidation bug?