View dabblet.css
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
/** | |
* text-wrap: balance bug | |
*/ | |
body { width: 750px } | |
div { | |
width: 200px; height: 200px; | |
background: red; |
View dabblet.css
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
/** | |
* OKLch rainbow? | |
*/ | |
--hc: 70% .2; | |
background: linear-gradient(to left in oklch longer, oklch(var(--hc) 0), oklch(var(--hc) 359)); |
View dabblet.css
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
/** | |
* Number of angles created by corner-shape | |
*/ | |
path { | |
fill: slategray; | |
} | |
text { | |
font: bold 100% Helvetica Neue; |
View dabblet.css
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
/** | |
* CSS Grid vs Lea: 1-0 | |
*/ | |
.slide { | |
position: absolute; | |
inset: 0; | |
z-index: 1; | |
padding: 2.5rem; | |
box-sizing: border-box; |
View dabblet.css
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
body { background: red } | |
@container style(--foo: 1) { | |
body { background: green; } | |
} | |
html { --foo: 1 } |
View go-to-spec.js
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
javascript:{ let table = document.querySelector("#specifications + div > table.standard-table, #specifications + table.standard-table"); table.scrollIntoView({behavior: "smooth"}); table.querySelector("a")?.click(); } undefined; |
View dabblet.css
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
/** | |
* meter gencontent | |
*/ | |
meter::before { | |
content: "before" | |
} | |
meter::after { | |
content: "after" |
View dabblet.css
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
/** | |
* Never use circle size to convey information | |
*/ | |
div { | |
display: inline-flex; align-items: center; justify-content: center; | |
width: 200px; | |
aspect-ratio: 1 / 1; | |
padding: 1em; | |
background: radial-gradient(closest-side, hsl(220 10% 70%) calc(var(--p)), transparent 0) hsl(220 10% 90%); |
View dabblet.css
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 } |
View dabblet.css
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
/** | |
* Division by <length> test | |
*/ | |
div { | |
background: green; | |
width: 100px; | |
height: calc(100px * (100vw / 100vh)); | |
} |
NewerOlder