Support Overflow::Scroll#446
Conversation
I agree: that's an unhelpful spec setup.
I think we should probably be consistent rather than clever here. I can't imagine this making a performance difference, and fractional sizes are reasonable.
That seems sensible: uneven scroll bars definitely seem wrong. |
2fbd91c to
b56f22f
Compare
b56f22f to
bffafc7
Compare
bffafc7 to
95407ec
Compare
alice-i-cecile
left a comment
There was a problem hiding this comment.
Good docs, clean code. Great tests as always.
Objective
overflow: scrollfor those wanting to faithfully render web layouts.Tasks
Context
overflowproperty #304.Overflow::Hidden#424Feedback wanted
scrollbar_widthdeviates from the spec. The spec only allowauto,thinornoneand the user agent must decide what actual widths these correspond to. Whereas I've allowed a pixel value to be specified. I think this difference is justified because Taffy is aimed at "user agents" rather than end users.I've madescrollbar_widthau8to save on space. Does this seem reasonable, or do you think I should make it anf32like everything else?scrollbar_widthhas been converted tof32in response to feedback.scrollbar_widthfor both axis (the overflow property still applies separately in each axis). So IF there is a scrollbar in both axis then they must both be the same size, does this seem reasonable.