Apply border-radius when painting borders

This commit is contained in:
Simon Sapin 2020-01-03 14:56:59 +01:00
parent 7281336116
commit 962c85b553
3 changed files with 27 additions and 6 deletions

View file

@ -75,7 +75,7 @@
"BorderCornerRadius",
"computed::BorderCornerRadius::zero()",
"parse",
engines="gecko servo-2013",
engines="gecko servo-2013 servo-2020",
extra_prefixes=prefixes,
spec=maybe_logical_spec(corner, "radius"),
boxed=True,

View file

@ -239,7 +239,7 @@ pub fn parse_border<'i, 't>(
<%helpers:shorthand
name="border-radius"
engines="gecko servo-2013"
engines="gecko servo-2013 servo-2020"
sub_properties="${' '.join(
'border-%s-radius' % (corner)
for corner in ['top-left', 'top-right', 'bottom-right', 'bottom-left']