Web::CSS::MediaQueries::Checker
A Media Queries conformance checker
DESCRIPTION
The Web::CSS::MediaQueries::Checker
module,
combined with the Web::CSS::MediaQueries::Parser,
forms a conformance checker for Media Queries' media query lists and media queries.
METHODS
$c = Web::CSS::MediaQueries::Checker->new
-
Return a new instance of the conformance checker.
$code = $c->onerror
$c->onerror ($code)
-
Return or specify the code reference to which any error or warning is reported by the checker.
XXX
$c->check_mq_list ($mq_list)
-
Validate the specified media query list construct (a structure returned by the Web::CSS::MediaQueries::Parser's media query list parser). Any error is reported to the
onerror
handler. $c->check_mq ($mq_list)
-
Validate the specified media query construct (a structure returned by the Web::CSS::MediaQueries::Parser's media query parser). Any error is reported to the
onerror
handler.
SPECIFICATIONS
CSS 2.1 - Media types <http://www.w3.org/TR/CSS21/media.html>
.
SEE ALSO
Web::CSS::MediaQueries::Parser.
SuikaWiki:media types <http://suika.suikawiki.org/~wakaba/wiki/sw/n/media%20types>
.
AUTHOR
Wakaba <wakaba@suikawiki.org>.
LICENSE
Copyright 2013 Wakaba <wakaba@suikawiki.org>.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.