How many unique CSS properties can a div have 🤔?

lost_semicolon

Lost Semicolon 💻🖱

Posted on July 26, 2019

How many unique CSS properties can a div have 🤔?

There are a lot of CSS properties! But just how can a div have? Let's find out!

const element = document.createElement("div");
let  totalCssProperiesNo = 0;

_.forEach(element, function(e){
   totalCssProperiesNo++
});

console.log(totalCssProperiesNo);

You get 522! As of today.

Thanks to JavaScript teacher for his CSS Dictionary book where he ran his code last year and got 415.

💖 💪 🙅 🚩
lost_semicolon
Lost Semicolon 💻🖱

Posted on July 26, 2019

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related