mirror of
https://github.com/servo/servo.git
synced 2025-08-11 16:35:33 +01:00
Serialize media rule and supports rule like Gecko.
This commit is contained in:
parent
d7b4471c80
commit
ae3989ebf0
3 changed files with 20 additions and 13 deletions
|
@ -46,12 +46,7 @@ impl ToCssWithGuard for MediaRule {
|
|||
where W: fmt::Write {
|
||||
dest.write_str("@media ")?;
|
||||
self.media_queries.read_with(guard).to_css(dest)?;
|
||||
dest.write_str(" {")?;
|
||||
for rule in self.rules.read_with(guard).0.iter() {
|
||||
dest.write_str(" ")?;
|
||||
rule.to_css(guard, dest)?;
|
||||
}
|
||||
dest.write_str(" }")
|
||||
self.rules.read_with(guard).to_css_block(guard, dest)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue