fix {transform,perspective}-origin accepts (and ignores) anything for their second part of value

This commit is contained in:
Neck Varentsov 2017-02-17 10:18:19 +03:00
parent 6318c4b699
commit e165d1f885

View file

@ -487,7 +487,7 @@ pub fn parse_origin(context: &ParserContext, input: &mut Parser) -> Result<Origi
}
Ok(())
}) {
match LengthOrPercentage::parse(context, input) {
match input.try(|input| LengthOrPercentage::parse(context, input)) {
Ok(value) => {
if horizontal.is_none() {
horizontal = Some(value);