source: josm/trunk/test/data/renderer/order/style.mapcss@ 11838

Last change on this file since 11838 was 11698, checked in by michael2402, 8 years ago

Add test that tests if elements are ordered correctly.

File size: 1.1 KB
Line 
1canvas {
2 default-points: true;
3 default-lines: false;
4}
5
6way[color=A] {
7 color: blue;
8 fill-color: blue;
9 width: 5;
10}
11
12way[color=B] {
13 color: green;
14 fill-color: green;
15 width: 5;
16}
17
18way[color=A]:selected {
19}
20
21way[color=B]:selected {
22}
23
24node[color=EndNode] {
25 symbol-shape: circle;
26 symbol-size: 2;
27 symbol-fill-color: yellow;
28}
29
30node[color=N] {
31 symbol-shape: circle;
32 symbol-size: 20;
33 symbol-fill-color: blue;
34 major-z-index: 4.1;
35}
36
37way[z-index] {
38 z-index: eval(tag("z-index"));
39}
40
41way[test=object-z-index-1] {
42 object-z-index: 10.000;
43}
44
45way[test=object-z-index-1]::B {
46 object-z-index: 9.999;
47 color: yellow;
48 width: 5;
49}
50
51way[test=object-z-index-1b] {
52 object-z-index: 9.999;
53}
54
55way[test=object-z-index-1b]::B {
56 object-z-index: 10.000;
57 color: yellow;
58 width: 5;
59}
60
61way[test=object-z-index-2] {
62 object-z-index: 0.00;
63}
64
65way[test=object-z-index-2]::B {
66 object-z-index: 0.01;
67 color: yellow;
68 width: 5;
69}
70
71way[test=object-z-index-2b] {
72 object-z-index: 0.02;
73}
74
75way[test=object-z-index-2b]::B {
76 object-z-index: 0.01;
77 color: yellow;
78 width: 5;
79}
80
81way[major-z-index] {
82 major-z-index: eval(tag("major-z-index"));
83}
Note: See TracBrowser for help on using the repository browser.