Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /html/semantics/scripting-1/the-template-element/additions-to-the-css-user-agent-style-sheet/css-user-agent-style-sheet-test-002.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>Template Test: check that template content is invisible by default</title>
<link rel="author" title="Sergey G. Grekhov" href="mailto:sgrekhov@unipro.ru">
<meta name="assert" content="The template element itself must be hidden by default">
<link rel="match" href="css-user-agent-style-sheet-test-001-ref.html">
<body>
<p>Test passes if there's no anything below this line.</p>
<template style="border: 1px solid; width: 100px; height: 100px">
<span style="color:red">Test fails if you can see this text or border around it</span>
</template>
</body>