tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 1061HTML 997Markdown 12TOML 83120 Definiciones

Add missing 0

aa251a158e0f53c90e55cc3079cf995fbc534f4f · por Nico Burns · (hace 3 años) · padre ef3774d3b · ver el árbol en este commit

Delta semántico

Ninguna definición cambió: el cambio es de texto, documentación o datos.

1 archivos · +2 −2

diff --git a/src/compute/flexbox.rs b/src/compute/flexbox.rs
index 976848d98..1a0eaddcd 100644
--- a/src/compute/flexbox.rs
+++ b/src/compute/flexbox.rs
@@ -680,8 +680,8 @@ fn determine_flex_base_size(
             .main(constants.dir);
         };
 
-        // Floor flex-basis by the padding_border_sum (floors inner_flex_basis at 0)
-        // This seems to be in violation of the spec which explicitly states that the content box should not be floored at
+        // Floor flex-basis by the padding_border_sum (floors inner_flex_basis at zero)
+        // This seems to be in violation of the spec which explicitly states that the content box should not be floored at zero
         // (like it usually is) when calculating the flex-basis. But including this matches both Chrome and Firefox's behaviour.
         //
         // TODO: resolve spec violation