rg_03
KPCKevin Powell - Community
•Created by rg_03 on 6/27/2024 in #front-end
Calculation of hypothetical main size and flex base size with paddings
can anyone help me?
3 replies
KPCKevin Powell - Community
•Created by rg_03 on 6/27/2024 in #front-end
Calculation of hypothetical main size and flex base size with paddings
Now i got to know about hypothetical main size which is clamped to 0 and its the one used in calculations. But then, the hypo main size of all items would just be 0 and so each item would get 200px and after padding, middle item would be 232px and would overflow the container.
And this https://stackoverflow.com/questions/64800033/how-exactly-is-calculated-hypothetical-main-size-of-flex-item-css-spec-questioques is about the same topic, but the answer is that the hypothetical main size would be +34px. But, if the paddings are subtracted from the flex-base size to calculate content size, why is it +34 and not -34?
3 replies