Bug 247674

Summary: calc() does not work in media queries for the aspect-ratio feature
Product: WebKit Reporter: romain
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: ahmad.saleem792, karlcow, koivisto, nmouchtaris, ntim, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: BrowserCompat, InRadar, WPTImpact
Version: Safari 16   
Hardware: Unspecified   
OS: Unspecified   

Description romain 2022-11-09 07:36:37 PST
WPT test : https://github.com/web-platform-tests/wpt/pull/36889

`<ratio>` should accept `calc()` as one or both of it's values.

This works in Gecko, but does not work in Blink or WebKit.
Comment 1 Radar WebKit Bug Importer 2022-11-16 07:37:16 PST
<rdar://problem/102419624>
Comment 2 Ahmad Saleem 2023-05-11 12:53:15 PDT
STP169 is passing test added by this commit:

https://wpt.fyi/results/css/mediaqueries/mq-calc-008.html?label=master&label=experimental&aligned=&q=mq-calc-008.html

Marking this as "RESOLVED CONFIGURATION CHANGED".

Even Safari 16.4.1 passes this.
Comment 3 romain 2023-05-11 13:47:51 PDT
Correct, this shipped in Safari 16.4