mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
style: Fix servo build.
This commit is contained in:
parent
80651fde47
commit
c7f30ad0df
16 changed files with 117 additions and 117 deletions
|
@ -20,10 +20,10 @@ fn negative_letter_spacing_should_parse_properly() {
|
|||
#[test]
|
||||
fn negative_word_spacing_should_parse_properly() {
|
||||
use style::properties::longhands::word_spacing;
|
||||
use style::values::specified::length::{FontRelativeLength, LengthOrPercentage, NoCalcLength};
|
||||
use style::values::specified::length::{FontRelativeLength, LengthPercentage, NoCalcLength};
|
||||
|
||||
let negative_value = parse_longhand!(word_spacing, "-0.5em");
|
||||
let expected = Spacing::Value(LengthOrPercentage::Length(NoCalcLength::FontRelative(
|
||||
let expected = Spacing::Value(LengthPercentage::Length(NoCalcLength::FontRelative(
|
||||
FontRelativeLength::Em(-0.5),
|
||||
)));
|
||||
assert_eq!(negative_value, expected);
|
||||
|
|
|
@ -14,10 +14,10 @@ use style::parser::ParserContext;
|
|||
use style::shared_lock::{SharedRwLock, StylesheetGuards};
|
||||
use style::stylesheets::viewport_rule::*;
|
||||
use style::stylesheets::{CssRuleType, Origin, Stylesheet, StylesheetInDocument};
|
||||
use style::values::specified::LengthOrPercentageOrAuto::{self, Auto};
|
||||
use style::values::specified::LengthPercentageOrAuto::{self, Auto};
|
||||
use style::values::specified::NoCalcLength::{self, ViewportPercentage};
|
||||
use style::values::specified::ViewportPercentageLength::Vw;
|
||||
use style::values::specified::LengthOrPercentage;
|
||||
use style::values::specified::LengthPercentage;
|
||||
use style_traits::viewport::*;
|
||||
use style_traits::{ParsingMode, PinchZoomFactor};
|
||||
|
||||
|
@ -97,12 +97,12 @@ macro_rules! assert_decl_len {
|
|||
|
||||
macro_rules! viewport_length {
|
||||
($value:expr, px) => {
|
||||
ViewportLength::Specified(LengthOrPercentageOrAuto::LengthOrPercentage(LengthOrPercentage::Length(NoCalcLength::from_px(
|
||||
ViewportLength::Specified(LengthPercentageOrAuto::LengthPercentage(LengthPercentage::Length(NoCalcLength::from_px(
|
||||
$value,
|
||||
))))
|
||||
};
|
||||
($value:expr, vw) => {
|
||||
ViewportLength::Specified(LengthOrPercentageOrAuto::LengthOrPercentage(LengthOrPercentage::Length(ViewportPercentage(Vw(
|
||||
ViewportLength::Specified(LengthPercentageOrAuto::LengthPercentage(LengthPercentage::Length(ViewportPercentage(Vw(
|
||||
$value,
|
||||
)))))
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue