Open
Description
I have a css rule with :not(.asd, .ass)
and it becomes separated into two different rule_sets. I worked around it in my project by removing the space, :not(.asd, .ass)
=> :not(.asd,.ass)
.
I have traced the issue to lib/css_parser/parser.rb#L329.
css_parser/lib/css_parser/parser.rb
Line 329 in 2b0e89c
Also included a script to reproduce.
require 'css_parser'
parser = CssParser::Parser.new
parser.load_string! "a:not(.asd, .ass) { color: hotpink; }"
parser.each_rule_set do |rule_set, media_types|
puts "rule_set #{rule_set}"
rule_set.selectors.each do |selector_string|
puts " selector_string #{selector_string}"
end
end
# output:
# rule_set a:not(.asd,.ass) { color: hotpink; }
# selector_string a:not(.asd
# selector_string .ass)
Metadata
Metadata
Assignees
Labels
No labels