mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Fix parsing/serialization bug in contain property
This commit is contained in:
parent
86aa4e89c5
commit
05a4febc40
2 changed files with 17 additions and 5 deletions
|
@ -2096,8 +2096,10 @@ ${helpers.single_keyword("transform-style",
|
|||
const LAYOUT = 0x02,
|
||||
const STYLE = 0x04,
|
||||
const PAINT = 0x08,
|
||||
const STRICT = SIZE.bits | LAYOUT.bits | STYLE.bits | PAINT.bits,
|
||||
const CONTENT = LAYOUT.bits | STYLE.bits | PAINT.bits,
|
||||
const STRICT = 0x10,
|
||||
const STRICT_BITS = SIZE.bits | LAYOUT.bits | STYLE.bits | PAINT.bits,
|
||||
const CONTENT = 0x20,
|
||||
const CONTENT_BITS = LAYOUT.bits | STYLE.bits | PAINT.bits,
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2148,11 +2150,11 @@ ${helpers.single_keyword("transform-style",
|
|||
return Ok(result)
|
||||
}
|
||||
if input.try(|input| input.expect_ident_matching("strict")).is_ok() {
|
||||
result.insert(STRICT);
|
||||
result.insert(STRICT | STRICT_BITS);
|
||||
return Ok(result)
|
||||
}
|
||||
if input.try(|input| input.expect_ident_matching("content")).is_ok() {
|
||||
result.insert(CONTENT);
|
||||
result.insert(CONTENT | CONTENT_BITS);
|
||||
return Ok(result)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue