Support -moz-outline-radius shorthand in geckolib.

This commit is contained in:
Cameron McCormack 2016-05-07 16:48:07 +10:00
parent 2b8f809852
commit ad7cfcbb7e

View file

@ -47,3 +47,20 @@
Err(())
}
</%helpers:shorthand>
// The -moz-outline-radius shorthand is non-standard and not on a standards track.
<%helpers:shorthand name="-moz-outline-radius" sub_properties="${' '.join(
'-moz-outline-radius-%s' % corner
for corner in ['topleft', 'topright', 'bottomright', 'bottomleft']
)}" products="gecko">
use properties::shorthands;
// Re-use border-radius parsing.
shorthands::border_radius::parse_value(context, input).map(|longhands| {
Longhands {
% for corner in ["top_left", "top_right", "bottom_right", "bottom_left"]:
_moz_outline_radius_${corner.replace("_", "")}: longhands.border_${corner}_radius,
% endfor
}
})
</%helpers:shorthand>