2 #include "../context.hpp"
3 #include "../parser.hpp"
9 Context ctx = Context::Data();
11 Selector* selector(std::string src)
12 { return Parser::from_c_str(src.c_str(), ctx, "", Position()).parse_selector_list(); }
14 void spec(std::string sel)
15 { std::cout << sel << "\t::\t" << selector(sel + ";")->specificity() << std::endl; }
20 spec(".foo .bar hux");
21 spec("#foo .bar[hux='mux']");