mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Make BorderRadius generic
This commit is contained in:
parent
0249270f61
commit
b2b3f99427
6 changed files with 100 additions and 99 deletions
|
@ -203,7 +203,8 @@ pub fn parse_border(context: &ParserContext, input: &mut Parser)
|
|||
'border-%s-radius' % (corner)
|
||||
for corner in ['top-left', 'top-right', 'bottom-right', 'bottom-left']
|
||||
)}" extra_prefixes="webkit" spec="https://drafts.csswg.org/css-backgrounds/#border-radius">
|
||||
use values::specified::basic_shape::{BorderRadius, serialize_radius_values};
|
||||
use values::generics::serialize_radius_values;
|
||||
use values::specified::basic_shape::BorderRadius;
|
||||
use parser::Parse;
|
||||
|
||||
pub fn parse_value(context: &ParserContext, input: &mut Parser) -> Result<Longhands, ()> {
|
||||
|
|
|
@ -68,7 +68,7 @@
|
|||
for corner in ['topleft', 'topright', 'bottomright', 'bottomleft']
|
||||
)}" products="gecko" spec="Nonstandard (https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-outline-radius)">
|
||||
use properties::shorthands;
|
||||
use values::specified::basic_shape::serialize_radius_values;
|
||||
use values::generics::serialize_radius_values;
|
||||
|
||||
pub fn parse_value(context: &ParserContext, input: &mut Parser) -> Result<Longhands, ()> {
|
||||
// Re-use border-radius parsing.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue