Re: [fxtf-drafts] [filter-effects-1] What is the visual effect of filter() on the document element?

Here's another thing with the Firefox/Blink implementation:
`
html { }
body {
    filter: invert(1);
    background-color: white;
}
`
does not result in a black body background, because the body background got propagated to the root. So the content is inverted, but not the background.

Now add a background on the html:
`
html {
    background-color: pink;
 }
body {
    filter: invert(1);
    background-color: white;
}
`
and suddenly the body has a black background. That's terrible for authors.

-- 
GitHub Notification of comment by smfr
Please view or discuss this issue at https://github.com/w3c/fxtf-drafts/issues/282#issuecomment-386776221 using your GitHub account

Received on Saturday, 5 May 2018 03:41:36 UTC