← Back to context

Comment by nicoburns

4 days ago

There's nothing stopping you from defining those yourself for your own websites:

     grid { display: grid }

will work in every modern browser.

You're supposed to only use custom elements with a dash in the name. Otherwise the spec can add an element that means something new, and you've accidentally used that name.

For that to work I would need to define a custom component from JavaScript, wouldn't I? (and I thought custom components had to contain an hyphen in there name, is that wrong?)