mirror of
https://github.com/servo/servo.git
synced 2025-08-01 19:50:30 +01:00
Support -moz-outline-radius shorthand in geckolib.
This commit is contained in:
parent
2b8f809852
commit
ad7cfcbb7e
1 changed files with 17 additions and 0 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue