selectors-001.svg | |
SVG Image | Inkscape Image |
![]() |
Original test: selectors-001.xht.
CSS Section: http://www.w3.org/TR/CSS21/selector.html#pattern-matching.
<style type="text/css"> text { fill: red; } tspan { fill: green; } .class { fill: green; } #id { fill: green; } text tref { fill: blue; } /* Descendant */ text > tref { fill: lime; } /* Child */ rect + text { fill: purple; } /* Sibling */ [title=attribute] { fill: aqua; } </style>