Skip to content

What effect does the overflow have? #647

Answered by nicoburns
kaphula asked this question in Q&A
Discussion options

You must be logged in to vote

We will hopefully implement overflow: auto (which behaves as you expected scroll to in the future).

The biggest thing at the moment is that overflow: hidden and overflow: scroll disable the "automatic minimum size" for Flexbox and CSS Grid items. Also, overflow: scroll enables the scrollbar_size style. That's a little redundant (you could just set it to 0), but means that our API is 1:1 with the web API (Taffy's overflow property behaves like the web overflow property). Finally, it affects the computed content_size (if overflow is visible then overflowing children are included in that nodes size for scroll width/height calculation).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kaphula
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants