diff --git a/test/specificity/issue60.mml b/test/specificity/issue60.mml new file mode 100644 index 0000000..ccea8a4 --- /dev/null +++ b/test/specificity/issue60.mml @@ -0,0 +1,14 @@ +{ + "srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over", + "Stylesheet": [ + "issue60.mss" + ], + "Layer": [{ + "name": "world", + "srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over", + "Datasource": { + "file": "http://tilemill-data.s3.amazonaws.com/test_data/shape_demo.zip", + "type": "shape" + } + }] +} diff --git a/test/specificity/issue60.mss b/test/specificity/issue60.mss new file mode 100644 index 0000000..baf44fa --- /dev/null +++ b/test/specificity/issue60.mss @@ -0,0 +1,6 @@ +#world { + [NET_INFLOW > -30000] { polygon-fill: #f00; } + [NET_INFLOW > -10000] { polygon-fill: #0f0; } +} + +#world [OBJECTID=12] { polygon-pattern-file:url(../resources/textures/stripe.png); } diff --git a/test/specificity/issue60.result b/test/specificity/issue60.result new file mode 100644 index 0000000..71a2e26 --- /dev/null +++ b/test/specificity/issue60.result @@ -0,0 +1,6 @@ +[ + {"elements":["#world"],"filters":["OBJECTID=12"],"specificity":[1,0,1,131]}, + {"elements":["#world"],"filters":["NET_INFLOW>-10000"],"specificity":[1,0,1,83]}, + {"elements":["#world"],"filters":["NET_INFLOW>-30000"],"specificity":[1,0,1,35]}, + {"elements":["#world"],"specificity":[1,0,0,0]} +]