Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
animation-iteration-count property is a number instead of integer.
- Loading branch information
Hiroyuki Ikezoe
committed
Jan 5, 2017
1 parent
16b0da5
commit f78cd2c
Showing
4 changed files
with
31 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* 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 cssparser::Parser; | ||
use media_queries::CSSErrorReporterTest; | ||
use parsing::parse; | ||
use style::parser::{Parse, ParserContext}; | ||
use style::properties::longhands::animation_iteration_count::computed_value::AnimationIterationCount; | ||
use style::stylesheets::Origin; | ||
use style_traits::ToCss; | ||
|
||
#[test] | ||
fn test_animation_iteration() { | ||
assert_roundtrip_with_context!(AnimationIterationCount::parse, "0", "0"); | ||
assert_roundtrip_with_context!(AnimationIterationCount::parse, "0.1", "0.1"); | ||
assert_roundtrip_with_context!(AnimationIterationCount::parse, "infinite", "infinite"); | ||
|
||
// Negative numbers are invalid | ||
assert!(parse(AnimationIterationCount::parse, "-1").is_err()); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,6 +47,7 @@ macro_rules! parse_longhand { | |
}}; | ||
} | ||
|
||
mod animation; | ||
mod background; | ||
mod basic_shape; | ||
mod border; | ||
|