mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Refactor outline-style to accept "auto" value in addition to border-style values.
Fixes https://github.com/servo/servo/issues/15207
This commit is contained in:
parent
8b9dc9392b
commit
09d4751054
11 changed files with 164 additions and 26 deletions
|
@ -25,9 +25,9 @@ macro_rules! define_numbered_css_keyword_enum {
|
|||
$( $variant = $value ),+
|
||||
}
|
||||
|
||||
impl $name {
|
||||
impl Parse for $name {
|
||||
#[allow(missing_docs)]
|
||||
pub fn parse(input: &mut ::cssparser::Parser) -> Result<$name, ()> {
|
||||
fn parse(_context: &ParserContext, input: &mut ::cssparser::Parser) -> Result<$name, ()> {
|
||||
match_ignore_ascii_case! { try!(input.expect_ident()),
|
||||
$( $css => Ok($name::$variant), )+
|
||||
_ => Err(())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue