Skip to content

Commit

Permalink
Fix -moz aliases for border-{start,end} properties
Browse files Browse the repository at this point in the history
Fixes #15297.
  • Loading branch information
mbrubeck committed Feb 17, 2017
1 parent 11396b4 commit 9c2dbfe
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion components/style/properties/longhand/border.mako.rs
Expand Up @@ -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;
Expand Down
12 changes: 8 additions & 4 deletions components/style/properties/shorthand/border.mako.rs
Expand Up @@ -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));
Expand Down

0 comments on commit 9c2dbfe

Please sign in to comment.