Skip to content

build(deps): bump taffy from 0.6.3 to 0.14.0 - #32

Merged
echobt merged 2 commits into
mainfrom
dependabot/cargo/taffy-0.14.0
Sep 7, 2026
Merged

build(deps): bump taffy from 0.6.3 to 0.14.0#32
echobt merged 2 commits into
mainfrom
dependabot/cargo/taffy-0.14.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 7, 2026

Copy link
Copy Markdown
Contributor

Bumps taffy from 0.6.3 to 0.14.0.

Release notes

Sourced from taffy's releases.

v0.14.0

The MSRV for this release is 1.71.

Support for CSS sizing keywords (#1099, #1103)

The width, height and flex-basis properties now support min-content, max-content, fit-content, fit-content(), and stretch keywords. flex-basis additionally supports the content keyword. The min-width/max-width (and height) properties have been switched to use LengthPercentageAuto rather than Dimension, as they do not yet support these keywords.

Support for flex-wrap: balance (#1105)

Taffy now supports flex-wrap: balance and flex-line-count from CSS Flexbox Level 2, behind the default flexbox_balance feature.

See Balancing Text in CSS: The Flex-Wrap Last Row Problem for an explainer.

Partial support for CSS containment (#1128)

The layout effects of contain: layout, contain: paint, and contain: content are now supported, including independent formatting contexts, baseline suppression, and overflow containment. contain: size is not yet supported.

Expanded detailed grid information (#1131, #1134, #1135, #1136, #1137)

  • DetailedGridTracksInfo's gutters and sizes fields are replaced by a single positions vec. positions contains the offset of every grid line in the implicit grid. This allows it to account for offsets introduce by content-alignment. And also allows for O(1) access to grid area sizes.
  • All data in DetailedGridTracksInfo is now stored in logical order (so right-to-left for direction: rtl grids)
  • Added DetailedGridInfo::resolve_absolute_grid_area which can resolve a grid area for an item given it's position styles. This is useful for positioning hoisted absolutely positioned boxes relative to a grid containing block.
  • Added grid_template_rows and grid_template_columns methods which serialize those properties into a string according to the CSS standard.

Caching changes

Caching logic is now more correct (#1010, #1155)

Changed

  • Tagged-pointer style types now have expand() methods that expose their values as plain enums (#1129).
  • Layout::content_size is now scrollable_overflow_rect: Rect<f32>. Its right and bottom fields replace the old width and height values; scroll_width() and scroll_height() are unchanged (#1118).
  • LayoutOutput::first_baselines is now baselines: Baselines, with first and last baseline fields (#1107).
  • Style::min_size and max_size now use LengthPercentageAuto rather than Dimension (#1099).
  • compute_layout_with_measure now passes a LayoutInput and returns LayoutOutput; call compute_leaf_layout explicitly to preserve the old leaf-measurement behaviour (#1091).
  • Block and Flexbox no longer measure absolutely positioned children whose dimensions are already known (#1120).
  • CacheTree::cache_get and Cache::get now take &mut self, and the measure cache uses second-chance (clock) eviction (#1010).

Fixed

  • Cache: prevent axis-specific measurements from being reused for the wrong axis and avoid caching margin-collapse metadata (#1010).
  • Flexbox: fix intrinsic sizing with negative margins and zero flex bases (#1152).
  • Flexbox: apply inherent style sizing on top of content-size measurements (#1155).
  • Flexbox: transfer definite stretched cross sizes through aspect ratios when calculating flex base sizes (#1155).
  • Block/float: account for clear when computing the intrinsic width of floats (#1150).
  • Flexbox: generate container baselines from the visually startmost line or item in reverse layouts (#1127).

... (truncated)

Changelog

Sourced from taffy's changelog.

0.14.0

The MSRV for this release is 1.71.

Support for CSS sizing keywords (#1099, #1103)

The width, height and flex-basis properties now support min-content, max-content, fit-content, fit-content(), and stretch keywords. flex-basis additionally supports the content keyword. The min-width/max-width (and height) properties have been switched to use LengthPercentageAuto rather than Dimension, as they do not yet support these keywords.

Support for flex-wrap: balance (#1105)

Taffy now supports flex-wrap: balance and flex-line-count from CSS Flexbox Level 2, behind the default flexbox_balance feature.

See Balancing Text in CSS: The Flex-Wrap Last Row Problem for an explainer.

Partial support for CSS containment (#1128)

The layout effects of contain: layout, contain: paint, and contain: content are now supported, including independent formatting contexts, baseline suppression, and overflow containment. contain: size is not yet supported.

Expanded detailed grid information (#1131, #1134, #1135, #1136, #1137)

  • DetailedGridTracksInfo's gutters and sizes fields are replaced by a single positions vec. positions contains the offset of every grid line in the implicit grid. This allows it to account for offsets introduce by content-alignment. And also allows for O(1) access to grid area sizes.
  • All data in DetailedGridTracksInfo is now stored in logical order (so right-to-left for direction: rtl grids)
  • Added DetailedGridInfo::resolve_absolute_grid_area which can resolve a grid area for an item given it's position styles. This is useful for positioning hoisted absolutely positioned boxes relative to a grid containing block.
  • Added grid_template_rows and grid_template_columns methods which serialize those properties into a string according to the CSS standard.

Caching changes

Caching logic is now more correct (#1010, #1155)

Changed

  • Tagged-pointer style types now have expand() methods that expose their values as plain enums (#1129).
  • Layout::content_size is now scrollable_overflow_rect: Rect<f32>. Its right and bottom fields replace the old width and height values; scroll_width() and scroll_height() are unchanged (#1118).
  • LayoutOutput::first_baselines is now baselines: Baselines, with first and last baseline fields (#1107).
  • Style::min_size and max_size now use LengthPercentageAuto rather than Dimension (#1099).
  • compute_layout_with_measure now passes a LayoutInput and returns LayoutOutput; call compute_leaf_layout explicitly to preserve the old leaf-measurement behaviour (#1091).
  • Block and Flexbox no longer measure absolutely positioned children whose dimensions are already known (#1120).
  • CacheTree::cache_get and Cache::get now take &mut self, and the measure cache uses second-chance (clock) eviction (#1010).

Fixed

  • Cache: prevent axis-specific measurements from being reused for the wrong axis and avoid caching margin-collapse metadata (#1010).
  • Flexbox: fix intrinsic sizing with negative margins and zero flex bases (#1152).
  • Flexbox: apply inherent style sizing on top of content-size measurements (#1155).
  • Flexbox: transfer definite stretched cross sizes through aspect ratios when calculating flex base sizes (#1155).
  • Block/float: account for clear when computing the intrinsic width of floats (#1150).

... (truncated)

Commits
  • 77f3856 Prepare for v0.14.0 release (#1153)
  • 520ff53 Flexbox: apply inherent style sizing on top of ContentSize measures (#1155)
  • 2c5715e Cache fixes: Axis correctness fix. Clock eviction. Don't cache margin-collaps...
  • 0171a07 Replace cosmic-text example with Parley (#1154)
  • 7d31807 Fix intrinsic flex sizing with negative margins (#1152)
  • 88125ce Fix intrinsic width of floats with clear (#1150)
  • 8d13fdc Use SmallVec<[u32; 4]> for named grid line positions (#1139)
  • 09c1576 Test grid-template-rows/columns resolved serialization in generated tests (#1...
  • d2db537 Distribute only the flex-factor proportion of content excess to flexible grid...
  • 8a11081 Add expand() to read back tagged-pointer size types as enums (#1129)
  • Additional commits viewable in compare view

@dependabot dependabot Bot added area:build Build, dependencies, tests, and CI dependencies Pull requests that update a dependency file labels Sep 7, 2026
@dependabot
dependabot Bot requested a review from echobt as a code owner September 7, 2026 07:14
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file area:build Build, dependencies, tests, and CI labels Sep 7, 2026
Bumps [taffy](https://github.com/DioxusLabs/taffy) from 0.6.3 to 0.14.0.
- [Release notes](https://github.com/DioxusLabs/taffy/releases)
- [Changelog](https://github.com/DioxusLabs/taffy/blob/main/CHANGELOG.md)
- [Commits](DioxusLabs/taffy@v0.6.3...v0.14.0)

---
updated-dependencies:
- dependency-name: taffy
  dependency-version: 0.14.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/cargo/taffy-0.14.0 branch from 26f651d to 862e368 Compare September 7, 2026 10:03
Use compact dimension constructors, expanded values, alignment keywords,
and the new min/max size type. Reject unsupported imported dimensions.
Add conversion and narrow/wide headless buffer regression tests.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
@echobt

echobt commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Pushed c5f9ebf to repair the Taffy 0.14.0 migration. Updated compact dimension constructors, alignment keywords, and min/max size conversion. Importing unsupported CSS dimensions now returns UnsupportedDimension through TryFrom instead of silently changing sizing; this API change is documented.

Local validation passed: formatting, workspace Clippy, the full CI TUI package test set, seven new compatibility/buffer tests (40×12 and 120×40, including resize back), readiness script tests, source policy against base 3c06750, release-age policy, and CLI version consistency. Reviewed the diff for security and product-facing errors; no secrets or sandbox/network policy changes.

Fresh CI is required before merge. Full workspace tests, audit, generated contracts, local QA, and coverage remain CI gates. This PR has not been merged.

@echobt
echobt merged commit ff9d812 into main Sep 7, 2026
12 checks passed
@echobt
echobt deleted the dependabot/cargo/taffy-0.14.0 branch September 7, 2026 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:build Build, dependencies, tests, and CI dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant