Closed
Description
When including debug info in files created with Compass/SCSS, Respond.js won't work. An easy fix is to add "(?![\s]*-)" to the regex on line 109.
Before:
var qs = styles.match( /@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi )
After:
var qs = styles.match( /@media(?![\s]*-)[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi ),
The skips media queries of the following type:
@media -sass-debug-info{filename{font-family:<filename>}line{font-family:<line>}}
Metadata
Metadata
Assignees
Labels
No labels