Gecko implements two proprietary pseudo-classes on images and sometimes <embed> / <object>. These are documented here:

 * https://developer.mozilla.org/en-US/docs/Web/CSS/:-moz-loading
 * https://developer.mozilla.org/en-US/docs/Web/CSS/:-moz-broken

While these seem somewhat useful in some cases[1], they were added for internal use and have various issues (in particular :-moz-loading is totally under-tested, and :-moz-broken no longer really reflects whether we create a replaced element for an image or not).

So over-all I think it's better to remove. Once there's a standard proposal for something like this, we should implement that.

I've done some looking-up into how risky this is to remove and it doesn't seem particularly risky. All usages of :-moz-loading I've seen were used to hide loading images, mostly due to some icon we used to display long ago (we no longer do).

For :-moz-broken, I plan to leave a pref for now (layout.css.moz-broken.content.enabled), if only because we have one internal usage.

Let me know if this looks concerning. We've removed similar pseudo-classes in the past like :-moz-suppressed without issues.

This will happen in bug 1850342, if there are no objections.

Cheers,

 -- Emilio

[1]: https://github.com/whatwg/html/issues/3631

--
You received this message because you are subscribed to the Google Groups 
"[email protected]" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/8ace9cd6-af15-4998-b084-af7ec6adf855%40mozilla.com.

Reply via email to