4 ms·
Amazingly, Shadow DOM does not block all outside CSS. The * properties leak in, unless you add #container { all: initial; } inside, but that doesn't work in Fir
by rado 8y ago
Amazingly, Shadow DOM does not block all outside CSS. The * properties leak in, unless you add #container { all: initial; } inside, but that doesn't work in Firefox. I wonder why authors forget this strange fact.
- spankalee 8y agoI don't think it's very strange. It's extremely likely that you want to inherit the default inherited properties like color and font-family. Otherwise Web Components would look out of place on the page by default.