Servo: Rotating squares in the background in twgljs.org is not rendered

Created on 7 May 2020  路  4Comments  路  Source: servo/servo

While checking https://twgljs.org/ on Firefox, we can see many squares rotating in the background but, in Servo, we can only see a blue background without rotating squares.

| Servo | Firefox |
| --- | --- |
| image | image |

Built with latest master (5ee1a48d82) on macOS 10.14.6

A-layou2020 A-layouuncategorized C-has-manual-testcase

Most helpful comment

Here's a minimal testcase for layout 2020:

<html>
<style>
html {
  background-color: blue
}
#frame {
  background-color: rgb(0, 0, 0, 0.7);
  color: #ddd;
}
#background {
  position: fixed;
  width: 100px;
  height: 100px;
  z-index: -1;
  background-color: green;
}
</style>
<div id="background"></div>
<div id="frame">hi</div>

All 4 comments

I am able to reproduce this issue in Windows 10 in the latest nightly build.

Here's a minimal testcase:

<div style="position: fixed; width: 100px; height: 100px; z-index: -1; background-color: green"></div>

If we don't use position fixed or z-index, the green box appears. In Layout 2013 this shows a blank page. In layout 2020 we see a green box, but I still don't see the background canvas on the original website.

Here's a minimal testcase for layout 2020:

<html>
<style>
html {
  background-color: blue
}
#frame {
  background-color: rgb(0, 0, 0, 0.7);
  color: #ddd;
}
#background {
  position: fixed;
  width: 100px;
  height: 100px;
  z-index: -1;
  background-color: green;
}
</style>
<div id="background"></div>
<div id="frame">hi</div>

I believe that fixing this depends on #26121.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SimonSapin picture SimonSapin  路  3Comments

jdm picture jdm  路  3Comments

AgustinCB picture AgustinCB  路  4Comments

noisiak picture noisiak  路  3Comments

gterzian picture gterzian  路  3Comments