Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-content/element-replacement.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>The content CSS attribute can replace an element's contents</title>
<link rel="match" href="element-replacement-ref.html" />
<meta name="assert" content"This test checks that the CSS content propertly can replace a normal element's contents" />
<style>
p {
margin: 0;
content: url('resources/rect.svg');
}
</style>
<p>This text should not be visible</p>