Skip to content

Commit

Permalink
Rollup merge of servo#17000 - upsuper:webkit-media-feature, r=emilio
Browse files Browse the repository at this point in the history
Add -webkit-prefix for serialization when necessary

<!-- 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/17000)
<!-- Reviewable:end -->
  • Loading branch information
Manishearth committed May 24, 2017
2 parents 34b0eef + fc2d167 commit b34f1c8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/style/gecko/media_queries.rs
Expand Up @@ -128,6 +128,10 @@ impl ToCss for Expression {
where W: fmt::Write,
{
dest.write_str("(")?;

if (self.feature.mReqFlags & nsMediaFeature_RequirementFlags::eHasWebkitPrefix as u8) != 0 {
dest.write_str("-webkit-")?;
}
match self.range {
nsMediaExpression_Range::eMin => dest.write_str("min-")?,
nsMediaExpression_Range::eMax => dest.write_str("max-")?,
Expand Down

0 comments on commit b34f1c8

Please sign in to comment.