diff --git a/test/specificity/filters_and_ids.mss b/test/specificity/filters_and_ids.mss new file mode 100644 index 0000000..e9b271b --- /dev/null +++ b/test/specificity/filters_and_ids.mss @@ -0,0 +1,7 @@ +#world [NAME='Canada'] {} +#world [NAME='United States'] { + [zoom > 5] {} +} +#world #countries [NAME='United States'] {} +[NAME='United States'] {} +[zoom > 5] {} \ No newline at end of file diff --git a/test/specificity/filters_and_ids.result b/test/specificity/filters_and_ids.result new file mode 100644 index 0000000..65394dc --- /dev/null +++ b/test/specificity/filters_and_ids.result @@ -0,0 +1,8 @@ +[ + {"elements":["#world","#countries"],"filters":[{"key":"NAME","op":{"value":"="},"val":{"value":"United States","quote":"'","is":"string"}}]}, + {"elements":["#world"],"filters":[{"key":"NAME","op":{"value":"="},"val":{"value":"United States","quote":"'","is":"string"}},{"key":"zoom","op":{"value":">"},"val":5,"zoom_range":[false,false,false,false,false,false,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true]}]}, + {"elements":["#world"],"filters":[{"key":"NAME","op":{"value":"="},"val":{"value":"United States","quote":"'","is":"string"}}]}, + {"elements":["#world"],"filters":[{"key":"NAME","op":{"value":"="},"val":{"value":"Canada","quote":"'","is":"string"}}]}, + {"elements":[],"filters":[{"key":"zoom","op":{"value":">"},"val":5,"zoom_range":[false,false,false,false,false,false,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true]}]}, + {"elements":[],"filters":[{"key":"NAME","op":{"value":"="},"val":{"value":"United States","quote":"'","is":"string"}}]} +] \ No newline at end of file