似乎不再有效.由于“投影”值.
我不记得确切,但这样就包含了全屏Opera.
可能Opera也将使用media =“screen”加载文件.
问题:
>为什么现在这个无效?
>还有另一种方法可以为“全屏/投影”设备提供额外的CSS吗?
>对于基本布局样式,是否应省略媒体属性?
最佳答案
这里是W3C HTML Checker的维护者.大约3个星期前,我实施并向生产W3C HTML Checker推送了发出这些新错误的更改;这个改变:
https://github.com/validator/validator/commit/66c739a49afd050226a91f2b7f49662e0dcc9a09
https://github.com/validator/validator/commit/66c739a49afd050226a91f2b7f49662e0dcc9a09
我进行了这项更改,以使HTML检查器符合当前的CSS媒体查询规范.正如之前评论中所述:
MQ4 basically deprecates all the 07001 except
all
,screen
andspeech
,citing the use of media feature detection instead,saying:In addition,the following deprecated media types are defined. Authors must not use these media types; instead,it is recommended that they select appropriate media features that better represent the aspect of the device that they are attempting to style against.
据推测,验证者将该值标记为无效,因为它违反了“作者不得使用这些媒体类型”的规定.