| Summary: | [shrink-to-fit] Incorrect sizing of elements with visually hidden text inside | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Wojciech Maj <kontakt> | ||||||||||
| Component: | Layout and Rendering | Assignee: | zalan <zalan> | ||||||||||
| Status: | RESOLVED FIXED | ||||||||||||
| Severity: | Minor | CC: | bfulgham, changseok, esprehn+autocc, ews-watchlist, glenn, koivisto, kondapallykalyan, pdr, simon.fraser, webkit-bug-importer, webkit-layout-noreply, zalan | ||||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||||
| Version: | Safari 15 | ||||||||||||
| Hardware: | All | ||||||||||||
| OS: | All | ||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Wojciech Maj
2022-06-09 04:50:51 PDT
Created attachment 460130 [details]
Test reduction
Apparently the combination of out-of-flow block box + margin offset confuses the preferred with computation for shrink-to-fit content.
The margin is mistakenly included twice during line layout, first when the out-of-flow box is placed (static position) and later when the adjacent text content is taken care of. Created attachment 460183 [details]
Patch
Created attachment 460184 [details]
Patch
Committed r295478 (251483@main): <https://commits.webkit.org/251483@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 460184 [details]. |