Skip to content

Commit 02b448d

Browse files
committed
Drop vendor prefix for @custom-media
1 parent 677dd07 commit 02b448d

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

index.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -389,14 +389,13 @@ module.exports = function(css, options){
389389

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

395395
return pos({
396396
type: 'custom-media',
397-
vendor: trim(m[1]),
398-
name: trim(m[2]),
399-
media: trim(m[3])
397+
name: trim(m[1]),
398+
media: trim(m[2])
400399
});
401400
}
402401

test/cases/custom-media.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"rules": [
55
{
66
"type": "custom-media",
7-
"vendor": "",
87
"name": "--narrow-window",
98
"media": "(max-width: 30em)",
109
"position": {

0 commit comments

Comments
 (0)