::before
Read More at MDN DocsView SpecSafe to Use
::before
is considered safe to use.
It’s supported by 94% of global browsers.
Browsers
Version Breakdown
Full Support
Alternate name: :before
Full Support
Alternate name: :before
Full Support
Alternate name: :before
Full Support
Before Firefox 57, Firefox had a bug where ::before
pseudo-elements were still generated, even if the content
property value were set to normal
or none
.
Before Firefox 3.5, only the CSS level 2 behavior of :before
was supported, which disallowed position
, float
, list-style-*
and some display
properties.
Alternate name: :before
Full Support
Before Firefox 57, Firefox had a bug where ::before
pseudo-elements were still generated, even if the content
property value were set to normal
or none
.
Alternate name: :before
Full Support
Alternate name: :before
Full Support
Alternate name: :before
Full Support
Alternate name: :before
Full Support
Alternate name: :before
Full Support
Alternate name: :before
Full Support
Alternate name: :before
Full Support
Alternate name: :before
Full Support
Alternate name: :before