Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixes #619 Support slash in media

  • Loading branch information...
commit c20cc717c402d02d72dd4162bb42c3ec32a1da3a 1 parent fdb322b
@tonistiigi authored
View
2  lib/lexer.js
@@ -456,7 +456,7 @@ Lexer.prototype = {
media: function() {
var captures;
- if (captures = /^@media[ \t]*([^\/{\n]+)/.exec(this.str)) {
+ if (captures = /^@media[ \t]*(.+?)(?=\/\/|[\n{])/.exec(this.str)) {
this.skip(captures);
return new Token('media', captures[1].trim());
}
View
5 test/cases/regression.619.css
@@ -0,0 +1,5 @@
+@media only screen and (-o-min-device-pixel-ratio: 3/2) {
+ body {
+ font-size: 66%;
+ }
+}
View
3  test/cases/regression.619.styl
@@ -0,0 +1,3 @@
+@media only screen and (-o-min-device-pixel-ratio: 3/2)
+ body
+ font-size 66%
Please sign in to comment.
Something went wrong with that request. Please try again.