Skip to content

Commit

Permalink
Add -webkit-prefix for serialization when necessary.
Browse files Browse the repository at this point in the history
  • Loading branch information
upsuper committed May 23, 2017
1 parent edd6c2c commit fc2d167
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 fc2d167

Please sign in to comment.