Fix -moz aliases for border-{start,end} properties

Fixes #15297.
This commit is contained in:
Matt Brubeck 2017-02-17 11:26:20 -08:00
parent 11396b4dd3
commit 9c2dbfe0d7
2 changed files with 9 additions and 5 deletions

View file

@ -34,7 +34,7 @@
% for side in ALL_SIDES:
<%helpers:longhand name="border-${side[0]}-width" animatable="True" logical="${side[1]}"
alias=maybe_moz_logical_alias(product, side, "-moz-border-%s-width")
alias="${maybe_moz_logical_alias(product, side, '-moz-border-%s-width')}"
spec="${maybe_logical_spec(side, 'width')}">
use app_units::Au;
use std::fmt;

View file

@ -84,10 +84,14 @@ pub fn parse_border(context: &ParserContext, input: &mut Parser)
if logical:
spec = "https://drafts.csswg.org/css-logical-props/#propdef-border-%s" % side
%>
<%helpers:shorthand name="border-${side}" sub_properties="${' '.join(
'border-%s-%s' % (side, prop)
for prop in ['color', 'style', 'width']
)}" alias=maybe_moz_logical_alias(product, side, "-moz-border-%s") spec="${spec}">
<%helpers:shorthand
name="border-${side}"
sub_properties="${' '.join(
'border-%s-%s' % (side, prop)
for prop in ['color', 'style', 'width']
)}"
alias="${maybe_moz_logical_alias(product, (side, logical), '-moz-border-%s')}"
spec="${spec}">
pub fn parse_value(context: &ParserContext, input: &mut Parser) -> Result<Longhands, ()> {
let (color, style, width) = try!(super::parse_border(context, input));