DioxusLabs/taffy

Add tests for negative margins

Aperta

#475 aperta il 1 mag 2023

 (1 commento) (0 reazioni) (0 assegnatari)Rust (192 fork)github user discovery
good first issuetesting

Metriche repository

Star
 (3189 stelle)
Metriche merge PR
 (Merge medio 15h 41m) (25 PR mergiate in 30 g)

Descrizione

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

Guida contributor