mirror of
https://github.com/servo/servo.git
synced 2025-08-18 11:55:39 +01:00
Auto merge of #15866 - servo:whitespace, r=nox
Require spaces around operators in calc() (fixes #15486) <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15866) <!-- Reviewable:end -->
This commit is contained in:
commit
c11d398010
3 changed files with 37 additions and 10 deletions
12
tests/unit/style/parsing/length.rs
Normal file
12
tests/unit/style/parsing/length.rs
Normal file
|
@ -0,0 +1,12 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
use parsing::parse;
|
||||
use style::parser::Parse;
|
||||
use style::values::specified::length::Length;
|
||||
|
||||
#[test]
|
||||
fn test_calc() {
|
||||
assert!(parse(Length::parse, "calc(1px+ 2px)").is_err());
|
||||
}
|
|
@ -87,6 +87,7 @@ mod font;
|
|||
mod image;
|
||||
mod inherited_box;
|
||||
mod inherited_text;
|
||||
mod length;
|
||||
mod mask;
|
||||
mod outline;
|
||||
mod position;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue