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

Inset box shadows with spread and rounded corners also spread to the outside if an outset box shadow is present #1737

Closed
mstange opened this issue Sep 21, 2017 · 1 comment

Comments

@mstange
Copy link
Contributor

@mstange mstange commented Sep 21, 2017

https://bugzilla.mozilla.org/show_bug.cgi?id=1402060

>> Testcase <<

Webrender seems to draw the inset box shadow in this testcase twice; both as an inset and as an outset box shadow. There actually is also an outset box shadow in the testcase, but it's transparent and should be completely invisible.

Expected vs actual rendering:
screen shot 2017-09-21 at 2 35 20 pm

<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<title>Inset box shadows with spread also spread to the outside if an outset box shadow is present</title>

<style>

div {
  display: inline-block;
  margin: 10px;
  border-radius: 40px;
  width: 100px;
  height: 100px;
  background: gray;
  box-shadow: rgba(0,0,255,0.5) 0 0 0 5px inset, transparent 0 0 0 0;
}

</style>

<div></div>
@mstange
Copy link
Contributor Author

@mstange mstange commented Oct 7, 2017

This is a Gecko bug, not a WebRender bug.

@mstange mstange closed this Oct 7, 2017
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
1 participant
You can’t perform that action at this time.