mirror of
https://github.com/servo/servo.git
synced 2025-08-09 15:35:34 +01:00
Add -webkit-prefix for serialization when necessary.
This commit is contained in:
parent
edd6c2cecb
commit
fc2d167184
1 changed files with 4 additions and 0 deletions
|
@ -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-")?,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue