userContent.css can now style standalone images and videos

Discussion of features in Mozilla Firefox
Gingerbread Man

User avatar
Posts: 7744
Joined: January 30th, 2007, 10:55 am

Post Posted July 22nd, 2018, 10:58 am

Starting with Firefox 63 (Nightly 2018-07-22), userContent.css can style standalone media documents like images, videos, and plugins. You can now get rid of the image background introduced in Firefox 11. You can also style Firefox's video player, if you're so inclined. Syntax is as follows:
Code: Select all
@-moz-document media-document(image) {
/* Style goes here */
@-moz-document media-document(video) {
/* Style goes here */
@-moz-document media-document(plugin) {
/* Style goes here */

Documentation is below, though it hasn't been updated yet. If you're looking for the technical details, the bug report is the place to go for now.
Bug 1475511 - Extend @-moz-document syntax to let users style standalone images and videos

Return to Firefox Features

Who is online

Users browsing this forum: No registered users and 2 guests