| 1 |
|
| 2 |
/** |
| 3 |
* Dashes Test |
| 4 |
* 1. Basic test - pattern should not be broken at way nodes |
| 5 |
* 2. Transparent and with background color. The foreground and background dashes must not overlap. |
| 6 |
* 3. Dashes offset - cuts off the first dash segment |
| 7 |
*/ |
| 8 |
|
| 9 |
canvas { |
| 10 |
default-points: false; |
| 11 |
default-lines: false; |
| 12 |
} |
| 13 |
|
| 14 |
way[test=dash1] { |
| 15 |
width: 10; |
| 16 |
color: blue; |
| 17 |
dashes: 30,4,17,14; |
| 18 |
} |
| 19 |
way[test=dash2] { |
| 20 |
width: 10; |
| 21 |
color: blue; |
| 22 |
opacity: 0.3; |
| 23 |
dashes: 30,4,17,14; |
| 24 |
dashes-background-color: gold; |
| 25 |
dashes-background-opacity: 0.3; |
| 26 |
} |
| 27 |
way[test=dash3] { |
| 28 |
width: 10; |
| 29 |
color: blue; |
| 30 |
dashes: 30,4,17,14; |
| 31 |
dashes-background-color: gold; |
| 32 |
dashes-offset:30; |
| 33 |
} |
| 34 |
|