Re: [webcomponents] [Custom Elements]: Custom elements should be display: block by default (#224)

Let's not bikeshed this.

I've done some actual measurements in some of the most popular sites on the Internet (Google, Amazon, etc) even this site.

In all without exception display:block is by far the majority

Code snippet here:

`
var displayTypes = {};

[].forEach.call(document.querySelectorAll('*'), function(node) {
 var display = getComputedStyle(node).display;
 displayTypes[display] = typeof displayTypes[display] === 'undefined' ? 1 : ++displayTypes[display];
});

console.log(displayTypes);
`

---
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/224#issuecomment-193910414

Received on Tuesday, 8 March 2016 18:45:50 UTC