Debian Codegraph @

rsvg/tests/fixtures/reftests/xml-lang-css.svg

raw symbols SCIP
1 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="10" height="50">
2 <style type="text/css">
3 /* Elements should appear in red-green-blue-yellow order.
4 The :lang(en) should match en-US. It will also match en-GB,
5 but that gets overridden later. */
6 :lang(en, cn) { fill: red }
7 /* Languages should be inherited from their parent elements. */
8 :lang(es) { fill: green }
9 /* Child languages should override the parent ones. */
10 :lang(it) { fill: blue }
11 /* Language inheritence should walk more than one level of the DOM.
12 en-GB should match en-GB, but not en-US. */
13 :lang(en-GB) { fill: yellow }
14 /* a rect with no lang attribute should default to black */
15 svg { fill: black }
16 </style>
17 <rect xml:lang="en-US" x="0" y="0" width="10" height="10" />
18 <g xml:lang="es"><rect x="0" y="10" width="10" height="10" /></g>
19 <g xml:lang="es"><rect xml:lang="it" x="0" y="20" width="10" height="10" /></g>
20 <g xml:lang="en-GB"><g><rect x="0" y="30" width="10" height="10" /></g></g>
21 <rect x="0" y="40" width="10" height="10"/>
22 </svg>