Skip to content

Instantly share code, notes, and snippets.

@MurakamiShinyu
Last active May 31, 2023 07:49
Show Gist options
  • Select an option

  • Save MurakamiShinyu/39f3bce45a70b63e9bba39f50eb29f87 to your computer and use it in GitHub Desktop.

Select an option

Save MurakamiShinyu/39f3bce45a70b63e9bba39f50eb29f87 to your computer and use it in GitHub Desktop.
running-element-display-none.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>TITLE</title>
<style>
title {
position: running(Title);
}
@page {
@top-center {
content: element(Title);
}
}
</style>
</head>
<body>
<h1>position:running() on display:none element</h1>
<p>The <code>title</code> element has <code>display: none</code> by default,<br>
so <code>title { position: running(Title); }</code> should have no effect<br>
and <code>@top-center { content: element(Title); }</code> should output empty.</p>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment