Re: validation error message
"Michael[tm] Smith" <[email protected]> Sat, 4 Jul 2015 14:07:31 +0900
| Newsgroups | gmane.org.w3c.validator |
|---|---|
| Message-ID | <[email protected]> |
Vladislav Bushurov <[email protected]>, 2015-06-29 18:59 +0300: > Archived-At: <http://www.w3.org/mid/[email protected]> > > 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
signature.asc
(application/pgp-signature, 819 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJVl2oTAAoJEIfRdHe8OkuVXakP/0CBB90kA6HAlt0ygqcK+Lce wLYII33E4Q1BY5+QNjVCZhIfE1j1ZJoNZ9b31pTc6gFfvn9EG3lxMWnzc3R3bUBH cVfohNpQj/dARaMMG+sDV+F8DByV8zCv5UQ5r48/YO77e6REapCVetT2OjfUYrDN 7afxzmIXZwDGQDG3LGWqXQqg5CZGOJBUNWHsa/3K+fcfcvImcmT5bvVgU0olIaj0 O7SeJdOIi+MWidB5S6HQFYfvQ2iO03uzwXIV7iVQZIGk+m0le+DGM8Mpm3KSLsPC CoZkKBHT46seiU4QFAarlqRN9d70pWGc+Rbj+HVSqSQDfDo/KxjhgQ++UvUiEs0B KuSpbVbdzSOY/NTaEw87I6tcqdaMuZ5c2ZTs40NH/MFn6nPtb/1q8+1Ok/aFC2Yp rBPu3wQmsl34xSXqrDmERyD8Lv2O2r4iF+xGYO+WX8SzzHgQxbTAn0Q4qEFDUmpr uwxbj3GIFHGcOs1Z/J08UfGrxqtWx1nCXiP5QhFFeZFB8zFWt0JPCVS6L9K4k+bq twYYRJnLzyWsDH4yUmYKk3S7v15SuA8BdwFbYoaNiJeh7a2LyGKbHpOv53ISd340 0Zh13noM915nc8rPfMBWBQFSA6SrOvEsoLDBl16ZWf1uwcMNcrLBn+HepJO6UrmN tmM7+IDGwN6VdrTPc7R5 =AvhQ -----END PGP SIGNATURE-----