mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
style: Fixups for css-fonts-4 font-weight.
This commit is contained in:
parent
0f19c25706
commit
48de556f8c
10 changed files with 51 additions and 64 deletions
|
@ -1,17 +0,0 @@
|
|||
/* 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::properties::longhands::font_weight;
|
||||
|
||||
#[test]
|
||||
fn font_weight_keyword_should_preserve_keyword() {
|
||||
use style::properties::longhands::font_weight::SpecifiedValue;
|
||||
|
||||
let result = parse(font_weight::parse, "normal").unwrap();
|
||||
assert_eq!(result, SpecifiedValue::Normal);
|
||||
|
||||
let result = parse(font_weight::parse, "bold").unwrap();
|
||||
assert_eq!(result, SpecifiedValue::Bold);
|
||||
}
|
|
@ -109,7 +109,6 @@ mod border;
|
|||
mod box_;
|
||||
mod column;
|
||||
mod effects;
|
||||
mod font;
|
||||
mod image;
|
||||
mod inherited_text;
|
||||
mod length;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue