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-003.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>HTML Templates: 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">
<style>
template {
border: 1px solid;
width: 100px;
height: 100px;
}
</style>
<body>
<p>Test passes if there's no anything below this line.</p>
<template>
<span style="color:red">Test fails if you can see this text or border around it</span>
</template>
</body>