Skip to content

Commit

Permalink
Drop vendor prefix for @custom-media
Browse files Browse the repository at this point in the history
  • Loading branch information
MoOx committed May 20, 2014
1 parent 677dd07 commit 02b448d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
7 changes: 3 additions & 4 deletions index.js
Expand Up @@ -389,14 +389,13 @@ module.exports = function(css, options){

function atcustommedia() {
var pos = position();
var m = match(/^@([-\w]+)?custom-media (--[^\s]+) *([^{]+);/);
var m = match(/^@custom-media (--[^\s]+) *([^{]+);/);
if (!m) return;

return pos({
type: 'custom-media',
vendor: trim(m[1]),
name: trim(m[2]),
media: trim(m[3])
name: trim(m[1]),
media: trim(m[2])
});
}

Expand Down
1 change: 0 additions & 1 deletion test/cases/custom-media.json
Expand Up @@ -4,7 +4,6 @@
"rules": [
{
"type": "custom-media",
"vendor": "",
"name": "--narrow-window",
"media": "(max-width: 30em)",
"position": {
Expand Down

0 comments on commit 02b448d

Please sign in to comment.