@property: Next-gen CSS variables now with universal browser support
web.dev
web.dev
.card {
border-radius: 1rem;
max-width: 36ch;
padding: 2rem;
background: radial-gradient(
300px circle at 55% 60% in oklab,
var(--shine-2), transparent 100% 100%
), radial-gradient(
farthest-side circle at 75% 30% in oklab,
var(--shine-1) 0%, var(--card-bg) 100%
);
background-blend-mode: color-burn;
animation: animate-color-1 8s infinite linear alternate, 4s animate-color-2 1s infinite linear alternate;
}CSS has already become one of the most complex languages in the world. Wish there was an attempt to simplify and unify syntax as opposed to just adding more and more features.
I’ve been around a while, I understand that English is the lingua-franca of compiled languages … but CSS seems like a singular travesty.. other instructions in the “radial-gradient” function are “animate”, “infinite”, “alternate”.
I feel like CSS deserves to be internationalized, as it stands this group is creating a dialect that only English speakers can understand with relatively low cognitive load.
Mandarin and Hindi follow but unlike English theyre heavily concentrated geographically.
Also, the symbolic examples you’ve provided are also based off English (variable and integer). It’s just that in a pre-cheap compression time words would be shortened to reduce space or transfer bits, but with cheap and easy compression that’s not a concern anymore.
Ultimately the learning pattern of looking up what each individual property does and how interacts with the DOM remains regardless of if you know English or not. If anything I think the English semantics of CSS are more misleading than intuitive.