Reviewers: felix8a,
Description:
Implemented a function to verify that the [media-query] production in
HTML: <link rel="stylesheet" media="[media-query]">
CSS: @import "[url]" [media-query] ;
CSS: @media [media-query] { [stylesheet-element] }
JS: window.matchMedia("[media-query]")
is valid.
This CL handles the @media case above, but does not yet handle the other
cases.
Follow-on CLs will handle media-queries in @import by passing the media
query to the continuation and implementing support in the ES5 parser.
Please review this at https://codereview.appspot.com/11756043/
Affected files:
M src/com/google/caja/plugin/sanitizecss.js
M tests/com/google/caja/plugin/sanitizecss_test.js
--
---
You received this message because you are subscribed to the Google Groups "Google Caja Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.