- From: Simon Sapin <simon.sapin@exyr.org>
- Date: Thu, 23 Oct 2014 09:52:10 +0900
- To: Bogdan Brinza <bbrinza@microsoft.com>, "www-style@w3.org" <www-style@w3.org>
On 23/10/14 08:38, Bogdan Brinza wrote: > Here is the actual question, looking at current media queries specs > it looks @supports is now the way to achieve this functionality. > @media (feature) looks like an old relic that should be considered > deprecated, while there is still a chance that more sites didn't take > dependency on it. What's WG opinion on this? Media features are not deprecated. In @media (min-width: 30em) {}, 'width' is a media feature. Using media features in a boolean context such as @media (inverted-colors) {} is not deprecated either. Media features query characteristics of the device being used and of the environment, whereas @supports queries support for CSS properties (and possibly in the future other CSS features like at-rules). They both have their use. However, one unresolved issue is that some contexts like @import accept a media query. We’d like to be able to have any kind of conditional rule there but are not sure yet what that would look like. -- Simon Sapin
Received on Thursday, 23 October 2014 00:52:39 UTC