monks/flex_basis
The flex-basis CSS property sets the initial main size of a {{glossary(“flex item”)}}. It sets the size of the content box unless otherwise set with {{Cssxref(“box-sizing”)}}.
It is recommended to use the {{cssxref(“flex”)}} shorthand with a keyword value like
autoorinitialinstead of settingflex-basison its own. The keyword values expand to reliable combinations of {{cssxref(“flex-grow”)}}, {{cssxref(“flex-shrink”)}}, andflex-basis, which help to achieve the commonly desired flex behaviors.
Values
pub const content: #(String, String)
- : Indicates automatic sizing, based on the flex item’s content.
pub const fit_content: #(String, String)
pub fn length(value: monks_of_style.Length) -> #(String, String)
length value of flex-basis
pub const revert_layer: #(String, String)