display-contents-svg-elements.html (927B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Display: display:contents and SVG elements</title> 4 <link rel="author" title="Rune Lillesveen" href="mailto:futhark@chromium.org"> 5 <link rel="help" href="https://drafts.csswg.org/css-display/#unbox-svg"> 6 <link rel="match" href="display-contents-svg-elements-ref.html"> 7 <p>You should see the word PASS below.</p> 8 <div style="font: 16px monospace"> 9 <svg> 10 <defs><text x="20" y="20" id="S">S</text></defs> 11 <text y="40" style="display:contents">FAIL</text> 12 <svg style="display:contents;opacity:0"> 13 <text x="0" y="20">P</text> 14 </svg> 15 <g style="display:contents;opacity:0"> 16 <text x="10" y="20"><tspan dx="2000" style="display:contents;opacity:0">A</tspan></text> 17 </g> 18 <use xlink:href="#S" style="display:contents;opacity:0"></use> 19 <text x="30" y="20">S</text> 20 </svg> 21 <svg style="display:contents"><text y="40">FAIL</text></svg> 22 </div>