wpt / css / css-content / element-replacement-root.html

Status: FAIL | Duration: 10ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-content/element-replacement-root.html

<!DOCTYPE html>
<title>The content CSS attribute can replace a document's root</title>
<link rel="match" href="element-replacement-root-ref.html" />
<link rel="help" href="https://drafts.csswg.org/css-content-3/#content-property" />
<meta name="assert" content="This test checks that the CSS content propertly can replace the contents of a document's root" />

<style>
:root {
  content: url('resources/rect.svg');
}
</style>

<p>This text should not be visible</p>

/css/css-content/element-replacement-root-ref.html

<!doctype html>
<title>Reference for the content CSS attribute can replace a document's root</title>

<style>
body {
  margin: 0;
}
</style>

<img src="resources/rect.svg" />