Bug 170783
| Summary: | Safari does not update font-size: calc values that contain vw units and anything but percentages | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | tech4him <inchristalway-webkitbugs> |
| Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED CONFIGURATION CHANGED | ||
| Severity: | Normal | CC: | ahmad.saleem792, bfulgham, hyatt, jonlee, mmaxfield, simon.fraser, webkit-bug-importer, zalan |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 10 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=87846 | ||
tech4him
Here is an example: http://codepen.io/tech4him1/pen/mmdMVX
If I set font-size to "calc(1.25em + 0.25vw)", it will calculate properly on page load, but after that it will not update if the page is resized. If I instead set font-size to "calc(125% + 0.25vw)", it works fine.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/31599335>
tech4him
Bug 87846 fixed this for regular values, but not for all combinations in "calc()".
Ahmad Saleem
I am not able to reproduce this issue in Safari 16 using CodePen from Comment 0 and the resizing of window does not trigger any change in the font size and it is similar to Chrome Canary 108 and Firefox Nightly 107.
Appreciate if someone else can confirm and mark this bug accordingly. Thanks!
Brent Fulgham
Closing based on Ahmad's testing.