Bug 170783 - Safari does not update font-size: calc values that contain vw units and anything but percentages
Summary: Safari does not update font-size: calc values that contain vw units and anyth...
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: Safari 10
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2017-04-12 12:23 PDT by tech4him
Modified: 2024-01-22 15:24 PST (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tech4him 2017-04-12 12:23:42 PDT
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.
Comment 1 Radar WebKit Bug Importer 2017-04-12 22:44:05 PDT
<rdar://problem/31599335>
Comment 2 tech4him 2017-04-15 12:36:38 PDT
Bug 87846 fixed this for regular values, but not for all combinations in "calc()".
Comment 3 Ahmad Saleem 2022-10-01 15:04:35 PDT
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!
Comment 4 Brent Fulgham 2024-01-22 15:24:08 PST
Closing based on Ahmad's testing.