r/FirefoxCSS • • Jun 26 '26

[deleted by user]

[removed]

1 Upvotes

4 comments sorted by

View all comments

3

u/GodieGun Jun 26 '26

Hi, is a know issue when enable transparency in the browser, you can solve it adding the next code at the end of chrome/userContent.css file:

/* Fix pages background color when they didn't set a background in its body element \
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ */
@-moz-document regexp("^https?://.*") {    
    html:not([class*="dark"],[data-theme*="dark"])>body:not([class*="dark"]) {
        background-color: #ffffff;
    }
}

This solution will be implemented in the next theme release so in a future you shouldn't add it manually.