Blame test/SVG/mathswitch.xml
|
Packit |
423ecb |
|
|
Packit |
423ecb |
|
|
Packit |
423ecb |
xmlns = 'http://www.w3.org/Graphics/SVG/svg-19990412.dtd'>
|
|
Packit |
423ecb |
<desc>This example uses the switch element to provide a
|
|
Packit |
423ecb |
fallback graphical representation of an equation, if
|
|
Packit |
423ecb |
MathML is not supported.
|
|
Packit |
423ecb |
</desc>
|
|
Packit |
423ecb |
|
|
Packit |
423ecb |
whose testing attributes evaluate to true.-->
|
|
Packit |
423ecb |
<switch>
|
|
Packit |
423ecb |
|
|
Packit |
423ecb |
|
|
Packit |
423ecb |
evaluates to true (i.e., the user agent supports MathML
|
|
Packit |
423ecb |
embedded within SVG). -->
|
|
Packit |
423ecb |
|
|
Packit |
423ecb |
system-required="http://www.w3.org/TR/REC-MathML-19980407"
|
|
Packit |
423ecb |
width="100" height="50">
|
|
Packit |
423ecb |
|
|
Packit |
423ecb |
</foreignobject>
|
|
Packit |
423ecb |
|
|
Packit |
423ecb |
|
|
Packit |
423ecb |
Note that there are no testing attributes on the <g> element.
|
|
Packit |
423ecb |
If no testing attributes are provided, it is as if there
|
|
Packit |
423ecb |
were testing attributes and they evaluated to true.-->
|
|
Packit |
423ecb |
<g>
|
|
Packit |
423ecb |
|
|
Packit |
423ecb |
<rect style="fill: red"/>
|
|
Packit |
423ecb |
<text>Formula goes here</text>
|
|
Packit |
423ecb |
</g>
|
|
Packit |
423ecb |
|
|
Packit |
423ecb |
</switch>
|
|
Packit |
423ecb |
</svg>
|