summaryrefslogtreecommitdiff
path: root/node_modules/csso/lib/clean/Raw.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/csso/lib/clean/Raw.js')
-rw-r--r--node_modules/csso/lib/clean/Raw.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/node_modules/csso/lib/clean/Raw.js b/node_modules/csso/lib/clean/Raw.js
new file mode 100644
index 00000000..b9ec0ae9
--- /dev/null
+++ b/node_modules/csso/lib/clean/Raw.js
@@ -0,0 +1,9 @@
+import { isNodeChildrenList } from './utils.js';
+
+export default function cleanRaw(node, item, list) {
+ // raw in stylesheet or block children
+ if (isNodeChildrenList(this.stylesheet, list) ||
+ isNodeChildrenList(this.block, list)) {
+ list.remove(item);
+ }
+};