Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upbox-shadow + border-radius doesn't work #189
Closed
Comments
|
I don't quite grok what you mean @glennw, I was looking for a ticket with regards to the fact that corner radii clipping doesn't seem to be supported for shadows, and only clips out a square, is this what you are referring to here as well? |
glennw
pushed a commit
to glennw/webrender
that referenced
this issue
Mar 28, 2017
glennw
pushed a commit
to glennw/webrender
that referenced
this issue
Mar 28, 2017
bors-servo
added a commit
that referenced
this issue
Mar 29, 2017
Add support for clip in/out. This is not a super-efficient implementation, but it adds the functionality required for box shadows that have border radii. Once this is in place, we can do some follow up optimization passes. Fixes #189. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/webrender/1015) <!-- Reviewable:end -->
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


It currently sets a clip out rect around the visual box. Could we instead modify the box-shadow raster op shader to detect if inside the visual box and output 0?
cc @pcwalton