Open Fyrd opened 9 years ago
+1
+1
To break this down into chunks, Level 4 adds the following on top of Level 3:
pointer
, any-pointer
, hover
, any-hover
): http://caniuse.com/#feat=css-media-interactionscripting
(https://github.com/Fyrd/caniuse/blob/master/features-json/css-media-scripting.json)light-level
(#1549) (spec)update
(spec)overflow-block
, overflow-inline
specinverted-colors
(spec)color-gamut
(spec)+1
👍
+1
W3C Working Draft as at 15 November 2016.
The color-gamut
media query is already supported in Safari. It allows content authors to display richer wide-gamut images on P3 supported devices (think new iPhones and MacBooks).
+1
+1
color-gamut
will be in Chrome 58: https://developers.google.com/web/updates/2017/03/chrome-58-media-updates#colorgamut
It looks like a previous version of the Working Draft (as of 2016-01-26) had a section on custom media queries. It has since been removed from both the Working Draft and the Editors Draft though. Can anyone find any reasons for why it was removed?
It would also be nice for CanIUse to show which browsers support this feature.
@custom-media --small (min-width: 30em);
@media screen and (--small) {
/* small window styles */
}
Custom Media Queries was moved to Level 5: https://drafts.csswg.org/mediaqueries-5/#custom-mq
If this is broken apart, one thing to track is browser support for @media (width <= 320px) {}
syntax. MQ4 is now at CR status.
I've filed #3988 for color-gamut
.
update
overflow-block
, overflow-inline
Especially considering color-gamut is now supported in multiple browsers, I think at least that should be in CanIUse.
Firefox 63 will support syntactic improvements from MQ Level 4: https://bugzilla.mozilla.org/show_bug.cgi?id=1422225
+1
inverted-colors was part of the original draft of https://drafts.csswg.org/mediaqueries-4/#inverted which looks to be replaced with monochrome and color plus prefers-color-scheme: dark | light - which will be shipping soon in Safari 12.1
https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/66:
Implemented the overflow-inline and overflow-block media queries (bug 1422235).
Any reason this hasn't been added yet?
To add 2p, entry "CSS3 Media Queries" should be called "Media Queries Level 3" because it's media queries going through levels, not "The CSS". Then, outcomes of this issue would go into a new entry, "Media Queries Level 4", what do you think?
There was a marketing push around "CSS 3" circa HTML 5's heyday (e.g. https://developer.mozilla.org/en-US/docs/Archive/CSS3). Hence the logo. But yeah, it's not a particularly useful or technically correct term at this point.
Chrome tracking bug: https://bugs.chromium.org/p/chromium/issues/detail?id=962417
Since Media Queries Level 4 has become a Editors Draft, I think it should appear on Can I Use: http://dev.w3.org/csswg/mediaqueries4/.
Available on site now:
pointer
,any-pointer
,hover
,any-hover
)Data available:
scripting
(no support yet, data exists in repo )Need separate issues:
update
(spec)overflow-block
,overflow-inline
spec /3abb7e30e5a7ec5f7504f5bc6470cf3c9a123b37 )color-gamut
(spec)This issue was imported from Google Moderator
Moderator votes: +15 Issue added by Erick Petrucelli on 2014-09-30