Skip to content

Commit

Permalink
Translate grid line 0 to auto placement (0 is invalid)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoburns committed Jun 25, 2024
1 parent aca1135 commit 096f1b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/dom/src/stylo_to_taffy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,8 @@ pub(crate) fn grid_line(input: &stylo::GridLine) -> taffy::GridPlacement {
taffy::GridPlacement::Auto
} else if input.is_span {
taffy::style_helpers::span(input.line_num.try_into().unwrap())
} else if input.line_num == 0 {
taffy::GridPlacement::Auto
} else {
taffy::style_helpers::line(input.line_num.try_into().unwrap())
}
Expand Down

0 comments on commit 096f1b2

Please sign in to comment.