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-001.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="Test checks that the template contents are hidden implicitly">
<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>
<span style="color:red">Test fails if you can see this text</span>
</template>
</body>