google / accompanist

A collection of extension libraries for Jetpack Compose
https://google.github.io/accompanist
Apache License 2.0
7.43k stars 598 forks source link

[WebView] Empty elements with size and Background are not rendered #1532

Closed Wegi closed 1 year ago

Wegi commented 1 year ago

Description Empty elements are not rendered, even when they have a background and a fixed size.

Steps to reproduce Try to load this basic site:

<!DOCTYPE html>
<html>
<head>
  <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
  <meta charset="utf-8">
  <title>Reproduce Non-Loading</title>
  <style>
    body {
        margin: 0;
    }
    div {
        background: green;
        filter: brightness(175%);
        display:block;
        width: 100%;
        min-height: 500px;
        height: 500px;
        position: absolute;
    }
  </style>
</head>
<body>
  <div>
  </div>
</body>
</html>

Expected behavior After rendering a green square of height 500px should be seen.

Additional context If you input any content, that is visible the div is rendered, but not otherwise.

It works normally up to including version 0.29.0-alpha

Wegi commented 1 year ago

I just tested with MR #1515 and it fixes this issue.