diff --git a/src/printer.js b/src/printer.js index 515599be..896c1a38 100644 --- a/src/printer.js +++ b/src/printer.js @@ -2594,6 +2594,7 @@ function genericPrintNoParens(path, options, print, args) { n.attribute, n.operator ? n.operator : "", n.value ? n.value : "", + n.insensitive ? " i" : "", "]" ]); } diff --git a/tests/css_attribute/__snapshots__/jsfmt.spec.js.snap b/tests/css_attribute/__snapshots__/jsfmt.spec.js.snap new file mode 100644 index 00000000..195ea5ce --- /dev/null +++ b/tests/css_attribute/__snapshots__/jsfmt.spec.js.snap @@ -0,0 +1,10 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`insensitive.css 1`] = ` +input[type="radio" i] { +} +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +input[type="radio" i] { +} + +`; diff --git a/tests/css_attribute/insensitive.css b/tests/css_attribute/insensitive.css new file mode 100644 index 00000000..c3fce765 --- /dev/null +++ b/tests/css_attribute/insensitive.css @@ -0,0 +1,2 @@ +input[type="radio" i] { +} diff --git a/tests/css_attribute/jsfmt.spec.js b/tests/css_attribute/jsfmt.spec.js new file mode 100644 index 00000000..a7d303b6 --- /dev/null +++ b/tests/css_attribute/jsfmt.spec.js @@ -0,0 +1 @@ +run_spec(__dirname, { parser: "postcss" });