W3C home > Mailing lists > Public > public-fxtf-archive@w3.org > May 2018

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

From: Simon Fraser via GitHub <sysbot+gh@w3.org>
Date: Sat, 05 May 2018 03:40:38 +0000
To: public-fxtf-archive@w3.org
Message-ID: <issue_comment.created-386776221-1525491637-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:50:23 UTC