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

WebRender fails to display shadows properly #10065

Open
matthiaskrgr opened this issue Mar 17, 2016 · 4 comments
Open

WebRender fails to display shadows properly #10065

matthiaskrgr opened this issue Mar 17, 2016 · 4 comments

Comments

@matthiaskrgr
Copy link
Contributor

@matthiaskrgr matthiaskrgr commented Mar 17, 2016

<!DOCTYPE html>

<html id="top">
    <head>
        <style>

html {
    background-color: #191919;
    color: white;
}

div {
    background-color: #333333;
    box-shadow: 4px 4px 4px black;
}

.main {
    overflow: auto; /* the artifacts disappear when I remove this */
}

code{
    background: #555555;
    box-shadow: inset 1px 1px 1px #000000;
}
        </style>
    </head>

    <body>
        <div class="main">
            <code>This is just a some text to make the line a little bit longer bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla.</code>
        </div>
    </body>
</html>

above is the normal version, below the webrender one.
webrender_bug

servo output with webrender:

compile "/home/matthias/vcs/github/servo/resources/shaders/quad.vs.glsl"
compile "/home/matthias/vcs/github/servo/resources/shaders/quad.fs.glsl"
compile "/home/matthias/vcs/github/servo/resources/shaders/blit.vs.glsl"
compile "/home/matthias/vcs/github/servo/resources/shaders/blit.fs.glsl"
compile "/home/matthias/vcs/github/servo/resources/shaders/border.vs.glsl"
compile "/home/matthias/vcs/github/servo/resources/shaders/border.fs.glsl"
compile "/home/matthias/vcs/github/servo/resources/shaders/blend.vs.glsl"
compile "/home/matthias/vcs/github/servo/resources/shaders/blend.fs.glsl"
compile "/home/matthias/vcs/github/servo/resources/shaders/filter.vs.glsl"
compile "/home/matthias/vcs/github/servo/resources/shaders/filter.fs.glsl"
compile "/home/matthias/vcs/github/servo/resources/shaders/box_shadow.vs.glsl"
compile "/home/matthias/vcs/github/servo/resources/shaders/box_shadow.fs.glsl"
compile "/home/matthias/vcs/github/servo/resources/shaders/blur.vs.glsl"
compile "/home/matthias/vcs/github/servo/resources/shaders/blur.fs.glsl"
compile "/home/matthias/vcs/github/servo/resources/shaders/mask.vs.glsl"
compile "/home/matthias/vcs/github/servo/resources/shaders/mask.fs.glsl"
compile "/home/matthias/vcs/github/servo/resources/shaders/debug_font.vs.glsl"
compile "/home/matthias/vcs/github/servo/resources/shaders/debug_font.fs.glsl"
compile "/home/matthias/vcs/github/servo/resources/shaders/debug_color.vs.glsl"
compile "/home/matthias/vcs/github/servo/resources/shaders/debug_color.fs.glsl"

glxinfo attached, in case it's needed.
glxinfo.txt

@frewsxcv
Copy link
Member

@frewsxcv frewsxcv commented Mar 17, 2016

Not suggesting this should be closed, but there are currently a bunch of box-shadow issues open in the webrender repository:

https://github.com/servo/webrender/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+box+shadow+

I haven't done any investigating to see if any of them are specifically related to your issue

@matthiaskrgr
Copy link
Contributor Author

@matthiaskrgr matthiaskrgr commented Mar 17, 2016

Ok, I only searched https://github.com/servo/servo/issues so I didn't find tickets that appeared to be directly related.

@nox
Copy link
Member

@nox nox commented Oct 1, 2017

This is still true.

@atouchet
Copy link
Contributor

@atouchet atouchet commented May 2, 2020

This appears to be looking better now:

Screenshot

@atouchet atouchet changed the title webrender fails to display shadows properly WebRender fails to display shadows properly May 2, 2020
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.

None yet
4 participants
You can’t perform that action at this time.