- From: Michael[tm] Smith <mike@w3.org>
- Date: Sat, 4 Jul 2015 14:07:31 +0900
- To: Vladislav Bushurov <balansy@mail.ru>
- Cc: www-validator@w3.org
- Message-ID: <20150704050731.GH32052@sideshowbarker.net>
Vladislav Bushurov <balansy@mail.ru>, 2015-06-29 18:59 +0300: > Archived-At: <http://www.w3.org/mid/1435593582.286924731@f145.i.mail.ru> > > https://validator.w3.org/check?uri=www.m2-spb.ru&charset=%28detect+automatically%29&doctype=Inline&group=0 > > Line 48, Column 155 : Bad value handheld, screen and (max-width: 640px), > only screen and (max-device-width: 640px) for attribute media on element > link: Expected a CSS media type but the query ended. > > Line 49, Column 199 : Bad value screen and (min-width: 641px) and > (max-width: 959px), only screen and (min-device-width: 641px) and > (max-device-width: 959px) for attribute media on element link: Expected a > CSS media feature but saw min-device-width instead. > > Two days ago there was no one error in this place. > Are there errors in the code indeed? > New rules? > What's happened? New rules. I changed the code and updated the validator a few days ago in order to resolve some open bugs. See: https://github.com/validator/validator/issues/82 https://github.com/validator/validator/issues/83 https://github.com/validator/validator/commit/af079e49bcd60b5344a3ac200d2273a5faeb2d49 So the validator is behaving as expected here. > > http://www.w3.org/TR/css3-mediaqueries/ > > Is that not valid? It’s outdated and superseded by http://www.w3.org/TR/mediaqueries-4/ (http://drafts.csswg.org/mediaqueries/). See: - http://drafts.csswg.org/mediaqueries/#media-types “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.” - http://drafts.csswg.org/mediaqueries/#mf-deprecated “The following media features are deprecated. They kept for backward compatibility, but are not appropriate for newly written style sheets. Authors must not use them. ... To query for the size of the viewport (or the page box on page media), the width, height and aspect-ratio media features should be used, rather than device-width, device-height and device-aspect-ratio.” I should refine the validator to emit a more-helpful message for this case. To remind myself, I’ve opened an issue: https://github.com/validator/validator/issues/115 —Mike -- Michael[tm] Smith https://people.w3.org/mike
Received on Saturday, 4 July 2015 05:07:57 UTC