| Summary: | iPhone: Inserting text causes other text to become bigger | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Šime Vidas <sime.vidas> |
| Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW --- | ||
| Severity: | Normal | CC: | brandonstewart, ik, karlcow, simon.fraser, webkit-bug-importer, wenson_hsieh |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 16 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
|
Description
Šime Vidas
2023-01-20 19:58:31 PST
Another thing I noticed is that if you restrict the width of the first two grid items (the ones that contain “Test”), the issue does not occur.
It seems that the issue has something to do with the grid items being very wide (in my case, 640px wide), although that doesn’t explain why the issue only occurs when there are more than one grid item with text.
Added CSS that makes the issue go away:
.wrapper > :not(:last-child) {
width: 4ch;
}
Test page with added CSS: https://output.jsbin.com/rijariw/quiet
Thanks a lot Šime. I wonder if there is a WPT already covering this or if one is needed. The font size jumps from 16px to 23px. After deactivating grid, the issue doesn't reproduce. But as soon I reactivate grid, the font jumps to 23px again. That looks like a bug indeed. |