There seems to be something wrong with the code, unfortunately. When I input the code, directly, into the HTML validator, I see four errors, each saying, “CSS: Unrecognized at-rule @layer”.
I’m thinking this means @layer no longer exists as an at-rule? Tell me how I can fix this.
Thanks for your help.
Thanks to MDN for making all this educational content free!
There’s nothing wrong with your code. The problem is that the validator doesn’t know about the @layer rule, yet. This at-rule just landed in browsers a few month ago.