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

Reply via email to