mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +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 {
|
dest: &mut W) -> fmt::Result where W: fmt::Write {
|
||||||
match *template_areas {
|
match *template_areas {
|
||||||
Either::Second(_none) => {
|
Either::Second(_none) => {
|
||||||
if template_rows == &GenericGridTemplateComponent::None &&
|
template_rows.to_css(dest)?;
|
||||||
template_columns == &GenericGridTemplateComponent::None {
|
dest.write_str(" / ")?;
|
||||||
dest.write_str("none")
|
template_columns.to_css(dest)
|
||||||
} else {
|
|
||||||
template_rows.to_css(dest)?;
|
|
||||||
dest.write_str(" / ")?;
|
|
||||||
template_columns.to_css(dest)
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
Either::First(ref areas) => {
|
Either::First(ref areas) => {
|
||||||
let track_list = match *template_rows {
|
let track_list = match *template_rows {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue