summaryrefslogtreecommitdiff
path: root/rsvg/tests/fixtures/reftests/specificity.svg
blob: c9623ce2d077101fa22716db073e0e322041c9b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="16">
  <!-- We have two stylesheets - test that they are both considered.
       Also, test, that specificity and ordering are handled by having
       multiple rules that match each element.
  -->
  <style type="text/css">
    .foo {
      fill: limegreen;
    }
    .bar {
      fill: red;
    }
  </style>
  <rect x="0" y="0" width="16" height="16" class="foo"/>
  <rect x="16" y="0" width="16" height="16" class="bar"/>
  <style type="text/css">
    rect {
      fill: red;
    }
    .bar {
      fill: limegreen;
    }
  </style>
</svg>