mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 10:44:56 +00:00
servo: Merge #15340 - Reject negative value for border-image-width (from upsuper:border-image-width); r=Wafflespeanut
Source-Repo: https://github.com/servo/servo Source-Revision: 8aa23b46db300210b67c16190c794bc9ee216f3f
This commit is contained in:
parent
9c33ad6815
commit
fa2d49cb0e
@ -521,12 +521,12 @@ ${helpers.single_keyword("-moz-float-edge", "content-box margin-box",
|
||||
}
|
||||
|
||||
impl Parse for SingleSpecifiedValue {
|
||||
fn parse(context: &ParserContext, input: &mut Parser) -> Result<Self, ()> {
|
||||
fn parse(_context: &ParserContext, input: &mut Parser) -> Result<Self, ()> {
|
||||
if input.try(|input| input.expect_ident_matching("auto")).is_ok() {
|
||||
return Ok(SingleSpecifiedValue::Auto);
|
||||
}
|
||||
|
||||
if let Ok(len) = input.try(|input| LengthOrPercentage::parse(context, input)) {
|
||||
if let Ok(len) = input.try(|input| LengthOrPercentage::parse_non_negative(input)) {
|
||||
return Ok(SingleSpecifiedValue::LengthOrPercentage(len));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user