J. Ryan Stinnett
1ae1d370f2
Check context to test keyframe rule_type
...
Now that the `context` contains the `rule_type`, we can remove the `in_keyframe`
arg and check the `rule_type` to achieve the same thing.
MozReview-Commit-ID: oXrFBPuKMz
2017-04-12 16:40:37 +08:00
J. Ryan Stinnett
4574cd8ea6
Pull rule_type into ParserContext
...
Absorb `rule_type` into the `ParserContext` so that it's easier to pass down to
deeper levels of the parser.
MozReview-Commit-ID: DjBNytLxGKX
2017-04-12 16:40:17 +08:00
J. Ryan Stinnett
981571f4f8
Ignore non-margin properties in @page rule
...
Extend Servo's @page parsing to match Gecko's CSS 2.2 behavior, where only
margin properties are allowed in an @page rule. Other properties are ignored.
MozReview-Commit-ID: IPYUlnkLYSb
2017-04-09 17:49:41 +08:00
Simon Sapin
4b4a873c3e
Move parse method of PropertyDeclaration to ParsedDeclaration
...
This is what it now returns.
2017-03-07 23:37:29 +01:00
Simon Sapin
9d663ea7af
Make PropertyDeclaration::parse return an enum rather than push to a Vec.
2017-03-07 23:37:29 +01:00
Simon Sapin
7455ad5eb4
PropertyDeclarationParseResult -> Result<(), PropertyDeclarationParseError>
2017-03-07 23:37:27 +01:00
Simon Sapin
0f2d000a23
Borrow input to match_ignore_ascii_case!
...
In cssparser version 0.11, this macro will stop implicitly borrowing its
own input.
2017-02-26 10:40:09 +01:00
Simon Sapin
b5d9210f16
Fix too many parens in @supports serialization.
2017-01-09 19:35:00 +01:00
Manish Goregaokar
62bea28031
Add CSS.supports()
2017-01-07 23:17:55 -08:00
Manish Goregaokar
1b0842e228
Support @supports ( fixes #14786 )
2017-01-07 23:17:50 -08:00