Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Background colour is drawn over elements with negative z-index #19894

Open
jdm opened this issue Jan 29, 2018 · 1 comment
Open

Background colour is drawn over elements with negative z-index #19894

jdm opened this issue Jan 29, 2018 · 1 comment

Comments

@jdm
Copy link
Member

@jdm jdm commented Jan 29, 2018

<style>
html {
  background-color: #7D2663;
}

h1 {
  position: absolute;
  z-index: -1;
}
</style>
<h1>Web</h1>

Firefox:
screen shot 2018-01-29 at 8 03 00 am

Servo:
screen shot 2018-01-29 at 8 03 19 am

@pyfisch
Copy link
Contributor

@pyfisch pyfisch commented Jan 30, 2018

This happens only with backgrounds for the root element. If the background is part of any other element both browsers do not display the text.

@ferjm ferjm self-assigned this Feb 15, 2018
bors-servo added a commit that referenced this issue Feb 19, 2018
Paint background color of root element over the entire canvas

- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #19894

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20057)
<!-- Reviewable:end -->
@ferjm ferjm removed their assignment Nov 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

3 participants
You can’t perform that action at this time.