6 ms·
It looks like Chrome's default user agent stylesheet defaults table border-collapse to separate. So you don't necessarily have to set it, but it's required and
by Pwntastic 13y ago
It looks like Chrome's default user agent stylesheet defaults table border-collapse to separate. So you don't necessarily have to set it, but it's required and will potentially confound you if you use a css reset that changes this.
- bzbarsky 13y agoThe initial value of 'border-collapse' in the absence of any user/document/UA styles is "separate". See http://www.w3.org/TR/CSS21/tables.html#propdef-border-collapse http://www.w3.org/TR/CSS21/tables.html#propdef-border-collap... If you have a "CSS reset" that resets it to a non-initial value, that seems like a bug in that "CSS reset", no?
- Pwntastic 13y agoAh. Well I hadn't checked the spec; I just meant that in my 5 minute testing it appeared that chrome set border-collapse to separate by default, which would explain why the parent commenter didn't ever have to set it to see table styles.