all elements now support content property?
Good night everyone
I am reading a CSS2 cookbook(6 years old), which mentions that "most browsers only support the 'content' property in ::before and ::after pseudo-element, except Chrome". And the author suggests examining the following HTML and CSS in Chrome.
But after I tried, I found only IE11 does not support it. Both Firefox and any other browser based on Chrome works well.
Is my question that all modern browser support elements with the content property now? Or only some non-pseudo elements support the content property?
1 Reply
between https://caniuse.com/mdn-css_properties_content and https://developer.mozilla.org/en-US/docs/Web/CSS/content I'd say yes, they all support it, but also because of https://developer.mozilla.org/en-US/docs/Web/CSS/content#accessibility_concerns you should be careful doing so