You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was working on an updated fallback for @custom-media and was surprised to find that there are subtle and unexpected differences between browsers when it comes to @media.
There are many failing WPT tests across all browsers but some examples :
extra parenthese : ((orientation))
or support : (orientation) or (orientation)
Rationale
It is not trivial for users to figure out which @media features are supported in all browsers.
Are styles not applied because the query doesn't match or because it is not supported?
Aligning supported features across browsers at the same time will aid in adoption of some the new features.
I think it is best to see this mostly separate from #141.
Media range syntax is the most well known and most popular addition in media queries 4 but in general I think media queries need a bit of extra attention.
There aren't that many tests for media queries and no single browser scores really well.
Only the basic features and usage can be expected to work well in all engines.
There aren't that many tests for media queries and no single browser scores really well. Only the basic features and usage can be expected to work well in all engines.
A lot of the Firefox failures at least are down to w3c/csswg-drafts#7595, where it seems like different people interpreted the spec differently. I don't think there's necessarily a large number of discrete bugs here.
But yeah, there's definitely still more work to be done here above and beyond range syntax. Just, like, it's worthwhile knowing there are both proposals. And that may have implications if one or both are accepted (e.g., one could imagine if both are accepted we just have a singular "Media Queries" focus area).
one could imagine if both are accepted we just have a singular "Media Queries" focus area
I would like that :)
I plan to focus for a while on bits of mediaqueries-4 in PostCSS. Very little has been done in PostCSS in the past. A large factor was the lack of a media query parser and OM.
Thank you for that list and the command to generate it!
Hehe, wasn't asking to include all of them for the purpose of interop 2023 :)
I wanted to make sure that I wasn't misjudging the current test coverage (my perception vs. reality).
I am going over the specification and adding missing tests in WPT to get a better overview.
I didn't look closely at the features mentioned above, but after looking a bit closer, nav-controls is introduced in level 5 of the spec. overflow-block/inline and update look quite trivial to implement, but I'm not sure how important they are.
Thank you for proposing Media Queries 4 for inclusion in Interop 2023.
We are pleased to let you know that this proposal was accepted as the Media Queries 4 focus area. You can follow the progress of this Focus Area on the Interop 2023 dashboard.
For an overview of our process, see the proposal selection summary. Thank you for contributing to Interop 2023!
Activity
gsnedders commentedon Sep 25, 2022
In practice, this has significant overlap with #141, as that is one of the most significant parts of MQ4.
romainmenke commentedon Nov 9, 2022
I think it is best to see this mostly separate from #141.
Media range syntax is the most well known and most popular addition in media queries 4 but in general I think media queries need a bit of extra attention.
https://wpt.fyi/results/css/mediaqueries?label=master&label=experimental&aligned&view=subtest&q=media
There aren't that many tests for media queries and no single browser scores really well.
Only the basic features and usage can be expected to work well in all engines.
gsnedders commentedon Nov 9, 2022
A lot of the Firefox failures at least are down to w3c/csswg-drafts#7595, where it seems like different people interpreted the spec differently. I don't think there's necessarily a large number of discrete bugs here.
But yeah, there's definitely still more work to be done here above and beyond range syntax. Just, like, it's worthwhile knowing there are both proposals. And that may have implications if one or both are accepted (e.g., one could imagine if both are accepted we just have a singular "Media Queries" focus area).
romainmenke commentedon Nov 9, 2022
I would like that :)
I plan to focus for a while on bits of
mediaqueries-4in PostCSS. Very little has been done in PostCSS in the past. A large factor was the lack of a media query parser and OM.romainmenke commentedon Nov 10, 2022
@gsnedders Just to be sure that I am not overlooking anything.
There are two sections with tests that are focussed on
@media:css-conditional: https://wpt.fyi/results/css/css-conditional?label=master&label=experimental&aligned&view=subtestmediaqueries: https://wpt.fyi/results/css/mediaqueries?label=master&label=experimental&aligned&view=subtestcorrect?
gsnedders commentedon Nov 10, 2022
I highly doubt we want all of these, but:
romainmenke commentedon Nov 10, 2022
Thank you for that list and the command to generate it!
Hehe, wasn't asking to include all of them for the purpose of interop 2023 :)
I wanted to make sure that I wasn't misjudging the current test coverage (my perception vs. reality).
I am going over the specification and adding missing tests in WPT to get a better overview.
foolip commentedon Nov 11, 2022
Survey results for range media queries, which is part of Media Queries Level 4, have been posted to #141 (comment).
foolip commentedon Nov 17, 2022
@lilles has helped me review the Chrome failures in https://wpt.fyi/results/css/mediaqueries?label=master&label=experimental&aligned
We'd like to exclude:
<meta name="viewport" content="width=300">and can't be tested in desktop browsers.Additional test review might turn up more things.
romainmenke commentedon Nov 17, 2022
I am also adding more tests like this one : web-platform-tests/wpt#36911
lilles commentedon Nov 17, 2022
I didn't look closely at the features mentioned above, but after looking a bit closer,
nav-controlsis introduced in level 5 of the spec.overflow-block/inlineandupdatelook quite trivial to implement, but I'm not sure how important they are.foolip commentedon Dec 5, 2022
@romainmenke thanks for adding those tests! I've reviewed, merged and also have labeled them. A link to all labeled tests to follow...
foolip commentedon Feb 1, 2023
Thank you for proposing Media Queries 4 for inclusion in Interop 2023.
We are pleased to let you know that this proposal was accepted as the Media Queries 4 focus area. You can follow the progress of this Focus Area on the Interop 2023 dashboard.
For an overview of our process, see the proposal selection summary. Thank you for contributing to Interop 2023!
Posted on behalf of the Interop team.
romainmenke commentedon Feb 1, 2023
Really excited about this!
Thank you @foolip and everyone involved 🙇