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

Fix a couple of correctness issues around border-radius. #122

Merged
merged 1 commit into from Dec 24, 2015

Conversation

@pcwalton
Copy link
Collaborator

pcwalton commented Dec 24, 2015

  1. Masks for large border radii were not being tessellated properly.
    This commit simply switches off tessellation for them. Eventually we may
    want to go back and fix this properly.
  2. Border corners were being rendered correctly when 0 < border radius <
    border width. We needed to do a bit more tessellation than we were. This
    commit fixes that and adds a diagram to add_border_corner to explain
    what's going on.

These commits fix the border_radius_clip_a.html and
border_radius_zero_sizes_a.html reftests.

1. Masks for large border radii were not being tessellated properly.
This commit simply switches off tessellation for them. Eventually we may
want to go back and fix this properly.

2. Border corners were being rendered correctly when 0 < border radius <
border width. We needed to do a bit more tessellation than we were. This
commit fixes that and adds a diagram to `add_border_corner` to explain
what's going on.

These commits fix the `border_radius_clip_a.html` and
`border_radius_zero_sizes_a.html` reftests.
glennw added a commit that referenced this pull request Dec 24, 2015
Fix a couple of correctness issues around border-radius.
@glennw glennw merged commit 55b6457 into servo:master Dec 24, 2015
@glennw
Copy link
Member

glennw commented Dec 24, 2015

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.