Last active
May 31, 2023 07:49
-
-
Save MurakamiShinyu/39f3bce45a70b63e9bba39f50eb29f87 to your computer and use it in GitHub Desktop.
running-element-display-none.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!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