https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 34dfe32379a4e905b318f825fd6eab4c96bfc8c4 authored by Luke Bjerring on 11 May 2018, 19:30:08 UTC
Merge branch 'master' into idlharness-dependencies
Tip revision: 34dfe32
element-replacement.html
<!DOCTYPE html>
<title>The content CSS attribute can replace an element's contents</title>
<link rel="match" href="element-replacement-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 a normal element's contents" />

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

<p>This text should not be visible</p>
back to top