mirror of
https://github.com/servo/servo.git
synced 2025-08-04 05:00:08 +01:00
style: Fix @import serialization order
Fixed @import serialization being out of (spec) order. Also added some more WPT tests. Differential Revision: https://phabricator.services.mozilla.com/D176182
This commit is contained in:
parent
5d59674c8a
commit
0c246b0b7c
1 changed files with 5 additions and 5 deletions
|
@ -253,6 +253,11 @@ impl ToCssWithGuard for ImportRule {
|
||||||
dest.write_str("@import ")?;
|
dest.write_str("@import ")?;
|
||||||
self.url.to_css(&mut CssWriter::new(dest))?;
|
self.url.to_css(&mut CssWriter::new(dest))?;
|
||||||
|
|
||||||
|
if let Some(ref layer) = self.layer {
|
||||||
|
dest.write_char(' ')?;
|
||||||
|
layer.to_css(&mut CssWriter::new(dest))?;
|
||||||
|
}
|
||||||
|
|
||||||
if let Some(ref supports) = self.supports {
|
if let Some(ref supports) = self.supports {
|
||||||
dest.write_str(" supports(")?;
|
dest.write_str(" supports(")?;
|
||||||
supports.condition.to_css(&mut CssWriter::new(dest))?;
|
supports.condition.to_css(&mut CssWriter::new(dest))?;
|
||||||
|
@ -266,11 +271,6 @@ impl ToCssWithGuard for ImportRule {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Some(ref layer) = self.layer {
|
|
||||||
dest.write_char(' ')?;
|
|
||||||
layer.to_css(&mut CssWriter::new(dest))?;
|
|
||||||
}
|
|
||||||
|
|
||||||
dest.write_char(';')
|
dest.write_char(';')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue