We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39e89a4 commit 5e8b4c9Copy full SHA for 5e8b4c9
index.js
@@ -113,6 +113,20 @@ Compiler.prototype.charset = function(node){
113
return '@charset ' + node.charset + ';\n';
114
};
115
116
+/**
117
+ * Visit supports node.
118
+ */
119
+
120
+Compiler.prototype.supports = function(node){
121
+ return '@supports '
122
+ + node.supports
123
+ + ' {\n'
124
+ + this.indent(1)
125
+ + node.rules.map(this.visit, this).join('\n\n')
126
+ + this.indent(-1)
127
+ + '\n}';
128
+};
129
130
/**
131
* Visit keyframes node.
132
*/
test/cases/supports.css
@@ -0,0 +1,10 @@
1
2
+@supports (display: flex) {
3
+ div {
4
+ display: flex;
5
+ }
6
7
8
+ something: else;
9
10
+}
0 commit comments