Skip to content

Releases: DioxusLabs/taffy

v0.6.1

22 Oct 08:43
fae17c2
Compare
Choose a tag to compare

Fixes

  • Fix calculation of auto-fill/auto-fit repetition count when container has a definite percentage size (#722)
  • Fix min-size style not affecting intrinsic sizes (#723)
  • Fix documentation of dirty and mark_dirty functions (#724)
  • Fix intrinsic size of scroll containers that have a small explicit flex-basis (#728)

v0.6.0

10 Oct 23:25
c14a177
Compare
Choose a tag to compare

Highlights

  • The Style struct has been "traitified". This supports Taffy's integration in Servo and generally makes Taffy more flexible. The
    Style struct still exists and implements the new traits so existing uses of Taffy will continue to work as before.
  • The box-sizing style is supported
  • Computed margins are output in Layout

Fixes

  • Fix print_tree() when rounding is disabled (#680)
  • Absolute Insets should be resolved against the container size minus border (#666)
  • Fix flooring hypothetical_main_size by computed min size (#689)
  • Fix flex line cross-size determination (#690)
  • Fix panics in the grid algorithm (#691)
  • Fix resolving flexible lengths (WPT css/flexbox-multiline-min-max test) (#692)
  • Fix wrapping when a max main size style is present (#694)
  • Fix case where Taffy allowed margins to collapse through an element when it shouldn't have (#695)

Added

  • Legacy text align (for laying out <center> and <div align="..">) is supported
  • Add is_table for block items (#701)
  • Impl Debug and Clone for Cache (#688)
  • Implement Debug and PartialEq for tree types (#697)

v0.5.2

07 Jul 09:18
770e104
Compare
Choose a tag to compare
  • Fix block stretch sizing (don't always apply stretch sizing to block containers) (#674)
  • Fix computation of intrinsic main size when it depends on a child's known cross size (#673)
  • Fix panic when GridLine 0 is specified (#671)
  • Docs: Document feature flags and scrape examples (#672)
  • Docs: Update cosmic-text example to cosmic-text 0.12 (#670)

v0.5.1

30 May 22:53
e363fc8
Compare
Choose a tag to compare

Fixes

  • Fix: Clamp block item stretch widths by their min and max width (#664)
  • Fix: Auto margin computation in block layout (#663)

v0.5.0

30 May 18:17
3526f73
Compare
Choose a tag to compare

The changes in 0.5 are relatively small but the new measure function parameter is a breaking change so it requires a minor version bump.

  • Added: A style: &Style parameter has been added to measure functions.
  • Added: The MaybeMath, MaybeResolve, and ResolveOrZero traits have been made public.
  • Fix: use SizingMode::Inherent when sizing absolute children of flexbox nodes.
  • Deps: Update grid requirement from 0.13.0 to 0.14.0

v0.4.4

14 May 14:00
d875f41
Compare
Choose a tag to compare

Fixes

  • Content alignment (align-content/justify-content) behaviour was updated to match the latest spec (and Chrome 123+) (#635)
  • Ensure that root Flexbox nodes are floored by their padding-border (#651, #655)
  • Use grid area size not available space when applying aspect ratio to grid containers (#656)

v0.4.3

12 Apr 23:02
066949d
Compare
Choose a tag to compare

Fixes

  • Fix compilation error in evenly_sized_tracks style helper in recent versions of rustc caused by a change/regression in type inference (#643). Note that 3rd-party code that call style helpers that take an Into<f32> parameter may still be affected by this issue, but they should be able to fix on their side by clarifying the type passed in

v0.3.19

12 Apr 22:51
0fd69ea
Compare
Choose a tag to compare

Fixes

  • Fix compilation error in evenly_sized_tracks style helper in recent versions of rustc caused by a change/regression in type inference (#643). Note that 3rd-party code that call style helpers that take an Into<f32> parameter may still be affected by this issue, but they should be able to fix on their side by clarifying the type passed in

v0.4.2

11 Apr 02:52
e8aef0c
Compare
Choose a tag to compare
  • Fixed: single-line flex-container should clamp the line's cross-size (#638)
  • Reduced binary footprint of Taffy from around 300kb to around 150kb (#636)

v0.4.1

19 Mar 20:40
b7a5a06
Compare
Choose a tag to compare
  • Fixed: CSS Grid track sizing not respecting growth limits in some circumstances (#624)