DioxusLabs/taffy

Add tests for negative margins

Open

#475 opened on May 1, 2023

 (1 comment) (0 reactions) (0 assignees)Rust (192 forks)github user discovery
good first issuetesting

Repository metrics

Stars
 (3,189 stars)
PR merge metrics
 (Avg merge 15h 41m) (25 merged PRs in 30d)

Description

What problem does this solve or what need does it fill?

CSS supports negative margins, and Taffy also support setting a negative value for a margin style. However Taffy currently doesn't have any tests for negative margins (and I suspect we don't lay them out correctly either, although we won't know until we have tests)

What solution would you like?

  • Add generated tests for negative margins (for flexbox, grid, and leaf layout modes)
  • Fix any bugs

Contributor guide