- From: Tab Atkins Jr. <jackalmage@gmail.com>
- Date: Wed, 11 Feb 2015 10:13:02 +1100
- To: Boris Zbarsky <bzbarsky@mit.edu>
- Cc: Rik Cabanier <cabanier@gmail.com>, "public-fx@w3.org" <public-fx@w3.org>
On Wed, Feb 11, 2015 at 9:50 AM, Boris Zbarsky <bzbarsky@mit.edu> wrote: > On 2/10/15 5:42 PM, Tab Atkins Jr. wrote: >> Correct. The filter should just invert the text to light gray, and >> paint it on a white canvas. If the author wants a nearly-black >> background, they should set background:white on the <html>. > > How does that help? The background doesn't get painted on the <html> > itself; it gets painted on the canvas. In particular, this testcase: > > <!DOCTYPE html> > <html style="filter: invert(90%);; background: white"> > Some text > </html> > > has a white background in Firefox. Please suggest better wording, but the intent is that the "canvas color" defined here is a final underlying layer underneath everything else, which solely provides a final compositing step to ensure the page is opaque, and is not accessible to any other bit of CSS functionality. ~TJ
Received on Tuesday, 10 February 2015 23:13:50 UTC