Add support for insensitive attribute match (#1760)

I had no idea this existed!
master
Christopher Chedeau 2017-05-26 19:30:29 -07:00 committed by GitHub
parent 1255c5c51b
commit f66d1b05d6
4 changed files with 14 additions and 0 deletions

View File

@ -2594,6 +2594,7 @@ function genericPrintNoParens(path, options, print, args) {
n.attribute,
n.operator ? n.operator : "",
n.value ? n.value : "",
n.insensitive ? " i" : "",
"]"
]);
}

View File

@ -0,0 +1,10 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`insensitive.css 1`] = `
input[type="radio" i] {
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
input[type="radio" i] {
}
`;

View File

@ -0,0 +1,2 @@
input[type="radio" i] {
}

View File

@ -0,0 +1 @@
run_spec(__dirname, { parser: "postcss" });