Re: Should filters on the root element affect the entire canvas?

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