Re: Issue with CSS :root definitions

> On May 12, 2025, at 10:22 AM, HaFr One <harm@harmfrielink.nl> wrote:
> 
>    --404-border      : 1px solid white;

If I'm reading the spec correctly, CSS property names must start with a non-numeric character:

https://drafts.csswg.org/css-syntax-3/#ident-token-diagram

Some browsers are lenient, and accept the malformed name. To correct the name, you could change it to something like "--err404-border".

- Chuck

Received on Wednesday, 14 May 2025 12:11:57 UTC