summaryrefslogtreecommitdiff
path: root/node_modules/csso/cjs/clean/Raw.cjs
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/csso/cjs/clean/Raw.cjs')
-rw-r--r--node_modules/csso/cjs/clean/Raw.cjs13
1 files changed, 13 insertions, 0 deletions
diff --git a/node_modules/csso/cjs/clean/Raw.cjs b/node_modules/csso/cjs/clean/Raw.cjs
new file mode 100644
index 00000000..0286e198
--- /dev/null
+++ b/node_modules/csso/cjs/clean/Raw.cjs
@@ -0,0 +1,13 @@
+'use strict';
+
+const utils = require('./utils.cjs');
+
+function cleanRaw(node, item, list) {
+ // raw in stylesheet or block children
+ if (utils.isNodeChildrenList(this.stylesheet, list) ||
+ utils.isNodeChildrenList(this.block, list)) {
+ list.remove(item);
+ }
+}
+
+module.exports = cleanRaw;