Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

SVG Preview (Scaled)

Preview of https://raw.githubusercontent.com/mozilla-firefox/firefox/main/testing/web-platform/tests/svg/render/order/z-index.tentative.svg
width="300" height="200" viewBox="0 0 300 200">
<metadata>
<h:link rel="help" href="https://github.com/w3c/svgwg/issues/483"/>
<h:link rel="match" href="z-index-ref.svg"/>
<h:meta name="assert" content="The z-index property allows an element to be assigned to a stack level."/>
</metadata>
<!--
Tentative: SVG 2 deferred z-index to a future version of SVG, so no current
specification requires this rendering. The previous rel=help pointed at
render.html#ZIndexProperty, which was removed together with the feature.
The test records the behaviour the deferred feature described; it is not
normative unless and until the working group takes z-index up again.
-->
<rect x="74" y="35" width="70" height="70" fill="red" style="z-index: 1;" />
<rect x="130" y="50" width="70" height="70" fill="green" />
<rect x="100" y="80" width="70" height="70" fill="blue" />
</svg>