mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Fix serialization of grid-template
If both columns and rows are 'none', shorthand should serialize it as 'none / none' instead of just 'none'.
This commit is contained in:
parent
ba6641de58
commit
3e49a8c80a
1 changed files with 3 additions and 8 deletions
|
@ -367,14 +367,9 @@
|
|||
dest: &mut W) -> fmt::Result where W: fmt::Write {
|
||||
match *template_areas {
|
||||
Either::Second(_none) => {
|
||||
if template_rows == &GenericGridTemplateComponent::None &&
|
||||
template_columns == &GenericGridTemplateComponent::None {
|
||||
dest.write_str("none")
|
||||
} else {
|
||||
template_rows.to_css(dest)?;
|
||||
dest.write_str(" / ")?;
|
||||
template_columns.to_css(dest)
|
||||
}
|
||||
template_rows.to_css(dest)?;
|
||||
dest.write_str(" / ")?;
|
||||
template_columns.to_css(dest)
|
||||
},
|
||||
Either::First(ref areas) => {
|
||||
let track_list = match *template_rows {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue