We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 278edb5 commit 27a9bb5Copy full SHA for 27a9bb5
lib/syntax_tree/css/format.rb
@@ -111,6 +111,10 @@ def visit_combinator(node)
111
case node.value
112
when WhitespaceToken
113
q.text(" ")
114
+ when Array
115
+ q.text(" ")
116
+ node.value.each { |val| val.format(q) }
117
118
else
119
120
node.value.format(q)
test/selectors_test.rb
@@ -251,6 +251,13 @@ class SelectorsTest < Minitest::Spec
251
".outer section.foo > table.bar tr",
252
)
253
end
254
+
255
+ it "handles all the combinators" do
256
+ assert_selector_format(
257
+ "a b > c + d ~ e || f",
258
259
+ )
260
+ end
261
262
263
private
0 commit comments