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

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.

-Boris

Received on Tuesday, 10 February 2015 22:50:36 UTC