Export BfcSlot and add changelog entry
Semántico sayk'uy
Mana ima sutichaypas t'ikrakurqanchu: qillqalla, yachachiylla utaq willaylla t'ikrakurqan.
2 qillqakuna · +3 −1
- CHANGELOG.md +2 −0
- src/compute/mod.rs +1 −1
diff --git a/CHANGELOG.md b/CHANGELOG.md
index a479e60ce..68153e579 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,8 @@
### Fixed
+- Block: boxes that establish an independent formatting context (e.g. `overflow: hidden`) no longer overlap floats (CSS2 §9.5): they narrow to fit beside the float, or move down below it if they don't fit, and their margins interact with float edges in the same way as in Chrome. Adds a new `FloatContext::find_bfc_slot` method and `BfcSlot` struct.
+
- Numeric style helpers (`length`, `percent`, `fr`, `flex`) now accept `Input: Into<f64>` instead of `Input: Into<f32>`. This allows bare float literals such as `length(800.0)` to be used without triggering the `float_literal_f32_fallback` future-compatibility lint, while widening the set of accepted numeric input types (#974)
## 0.12.2
diff --git a/src/compute/mod.rs b/src/compute/mod.rs
index d70c77c29..b28308334 100644
--- a/src/compute/mod.rs
+++ b/src/compute/mod.rs
@@ -48,7 +48,7 @@ pub use self::flexbox::compute_flexbox_layout;
pub use self::grid::compute_grid_layout;
#[cfg(feature = "float_layout")]
-pub use self::float::{ContentSlot, FloatContext, FloatIntrinsicWidthCalculator};
+pub use self::float::{BfcSlot, ContentSlot, FloatContext, FloatIntrinsicWidthCalculator};
use crate::geometry::{Line, Point, Size};
use crate::style::{AvailableSpace, CoreStyle, Overflow};