mirror of
https://github.com/servo/servo.git
synced 2025-07-03 21:43:41 +01:00
style: Allow trailing whitespace in a calc expression.
This commit is contained in:
parent
20d0e71232
commit
1eb24f1adc
1 changed files with 3 additions and 0 deletions
|
@ -588,6 +588,9 @@ impl CalcLengthOrPercentage {
|
|||
let position = input.position();
|
||||
match input.next_including_whitespace() {
|
||||
Ok(Token::WhiteSpace(_)) => {
|
||||
if input.is_exhausted() {
|
||||
break; // allow trailing whitespace
|
||||
}
|
||||
match input.next() {
|
||||
Ok(Token::Delim('+')) => {
|
||||
products.push(try!(CalcLengthOrPercentage::parse_product(input, expected_unit)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue