Skip to content

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

@mstange

Description

@mstange

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions