| Summary: | View->Zoom In makes text sized with viewport units bigger (contrary to other browsers) | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Nick Sherman <nick> | ||||||
| Component: | Layout and Rendering | Assignee: | Nobody <webkit-unassigned> | ||||||
| Status: | RESOLVED WONTFIX | ||||||||
| Severity: | Normal | CC: | ap, bfulgham, koivisto, mmaxfield, simon.fraser, webkit-bug-importer, zalan | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | Safari 16 | ||||||||
| Hardware: | Mac (Apple Silicon) | ||||||||
| OS: | macOS 13 | ||||||||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=145614 | ||||||||
| Attachments: |
|
||||||||
|
Description
Nick Sherman
2023-03-07 15:32:51 PST
Thank you for the report! Do you happen to know when this last worked as expected? (In reply to Alexey Proskuryakov from comment #1) > Thank you for the report! Do you happen to know when this last worked as > expected? Unfortunately no. As I mentioned before I don't know which version this first became an issue in but I believe it would have been within the last year. Coincidentally, this bug also affects the new 2023 Typographics website too. Compare the difference in zooming this page between the latest versions of Safari and Chrome/Firefox: https://2023.typographics.com When you say "zooming the homepage" can you be more specific? We have like at least 4 different ways of zooming, and I'll need to know which kind you're describing in order to investigate. (In reply to Myles C. Maxfield from comment #5) > When you say "zooming the homepage" can you be more specific? We have like > at least 4 different ways of zooming, and I'll need to know which kind > you're describing in order to investigate. The technique I tested against was pressing Command-Plus Sign (+) or Command-Minus Sign (-) This is because the content has font-size:16vw; When the user does command-plus in WebKit, we increase the size of the text, but other browsers don't. There is no spec here, and it's not obvious which behavior is correct. On one hand, not matching the other browsers is bad; but on the other hand, having command-plus do nothing in those other browsers is also bad. How confident are we that this is a regression? Created attachment 465544 [details]
Reduction
`vw` unit resolution is not affected here. Cmd-+ mutates the `zoom` property which increases the computed font size after unit resolution. You can ignore the zoom with <div style="font-size: 16vw; zoom: reset">Hello</div> `zoom` is not a standardized property, however. Given that we want command-+ to do things, even when the sizes are in viewport units, and given that there's a workaround (using zoom:reset), I'm inclined to close this as WONTFIX. I'm going to do so. Please feel free to re-open this, if you disagree with this conclusion. |