DEV Community

Discussion on: Lesser-known CSS display values

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀 • Edited

As long is there is not accessibility implications I will be checking these out. My wierd one for you is

body {
    background: background;
}
Collapse
 
ekaterina_vu profile image
Ekaterina Vujasinović

I have no clue what background: background; does 🤯
There are accessibility implications for display: contents, developer.mozilla.org/en-US/docs/W....
Looks like there is a bug which should be solved soon in most browsers.

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀

background: background; gives you the background colour behind your desktop walpaper of your OS. It's so useless 🤪. I tried out display contents to fix a bug, seems to have done the trick in atleast proving there was a display issue. Thanks for the post.

Thread Thread
 
ekaterina_vu profile image
Ekaterina Vujasinović

I'm glad it was useful to you!