Created
June 9, 2022 12:13
-
-
Save LeaVerou/f62e1c69c1902fc6544a201a6a1ac768 to your computer and use it in GitHub Desktop.
Invalid custom property values
This file contains 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
/** | |
* Invalid custom property values | |
*/ | |
@property --foo { | |
syntax: "red | orange"; | |
initial-value: red; | |
inherits: false; | |
} | |
html { --foo: green } | |
body { | |
--foo: 42deg; | |
background: linear-gradient(pink 1em, transparent 0) var(--foo, yellow); | |
} |
This file contains 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
<!-- content to be placed inside <body>…</body> --> |
This file contains 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
// alert('Hello world!'); |
This file contains 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
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment