Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-display/display-contents-svg-anchor-child.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Display: display:contents on SVG anchor child</title>
<link rel="author" title="Rune Lillesveen" href="mailto:futhark@chromium.org">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<svg>
<a>
<tspan style="display:contents;color:green">Text</tspan>
</a>
<text>
<a>
<tspan style="display:contents;color:green">Text</tspan>
</a>
</text>
</svg>
<script>
test(() => {}, "Loading this page should not cause a crash.");
</script>