mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
fix {transform,perspective}-origin accepts (and ignores) anything for their second part of value
This commit is contained in:
parent
6318c4b699
commit
e165d1f885
1 changed files with 1 additions and 1 deletions
|
@ -487,7 +487,7 @@ pub fn parse_origin(context: &ParserContext, input: &mut Parser) -> Result<Origi
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
}) {
|
}) {
|
||||||
match LengthOrPercentage::parse(context, input) {
|
match input.try(|input| LengthOrPercentage::parse(context, input)) {
|
||||||
Ok(value) => {
|
Ok(value) => {
|
||||||
if horizontal.is_none() {
|
if horizontal.is_none() {
|
||||||
horizontal = Some(value);
|
horizontal = Some(value);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue