`filter` on `html` doesn't affect backgrounds
Open
Nobody has claimed this yet.
A-layout/2020
C-has-manual-testcase
I-wrong
- Dominant language
- Rust
- Stars
- 38k
- Forks
- 3.8k
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 459
Description
Describe the bug:
filter CSS on html doesn't seem to apply an effect on the backgrounds of <html> or contained elements. This doesn't apply if filter is placed on body or any element below that.
To Reproduce:
<!doctype html>
<style>
html { filter:invert(100%) hue-rotate(-180deg); }
</style>
<body style="background:gold;color:brown;">Hello
Chrome:
Servo:
Platform:
Windows 10.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the HTML reproducer in the issue and compare Servo's rendering of an html-level filter with the body-level case. Trace the browser rendering path for CSS filters and the backgrounds of the html element and its descendants. Done means the supplied example applies the filter to those backgrounds consistently with Chrome.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css, html, rust
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100