Detect and add fallback if document colors are disabled in Firefox

This PR adds a check of the Firefox preference `browser.display.use_document_colors`, and triggers the fallback if appropriate.

Related issue: https://bugzilla.mozilla.org/show_bug.cgi?id=843473