mdn / browser-compat-data

This repository contains compatibility data for Web technologies as displayed on MDN
https://developer.mozilla.org
Creative Commons Zero v1.0 Universal
4.91k stars 1.97k forks source link

What is `css.at-rules.media.media_query_values` ? #18080

Open romainmenke opened 1 year ago

romainmenke commented 1 year ago

added in PR : https://github.com/mdn/browser-compat-data/pull/3549

There are no specification or documentation links and the naming is ambiguous. What is this feature?

https://github.com/mdn/browser-compat-data/blob/10cdcbe47698fa6043e4a535711a544e97838c5a/css/at-rules/media.json#L787-L819

romainmenke commented 1 year ago

If I understand it correctly this refers only to calc() in @media where <number> is allowed.

Can we clarify this somehow?

romainmenke commented 1 year ago

Just found out that browser do not support calc() everywhere <number> is allowed at this time.

So this feature could be split up into sub features or support data could be changed.

see : https://github.com/web-platform-tests/wpt/pull/36889

Update :

calc() does work in <ratio> when calc() is generally supported but the values are clamped when <ratio> only supports <integer>.

<ratio> support is covered elsewhere : https://github.com/mdn/browser-compat-data/issues/18198