Re: [csswg-drafts] [css-overflow-5] Tree structure of scroll container controls (#11125)

> I made a [demo page](https://flackr.github.io/carousel/examples/pseudo-structure/) showing roughly what the different structures would look like if minimal styling were used. Were you thinking that it would be helpful to show how a developer might achieve some common expected designs with each structure?

Thanks @flackr, That's very helpful!
What you put there is exactly what I needed for the sake of this issue. But I think it would be a good idea to go through that same exercise that @argyleink did with implementing a few common examples and see how that feels like in Real Lifeā„¢. I'll try popping one up if you guys won't beat me to it.

--------------

@argyleink 

> a reason to have them as children is they could adapt to container queries and scroll-state queries
> 
> i'm also pretty much always positioning these with anchor, which pops them out of the flow.

Yes, that's correct.
I guess options 2 and 3 give you the same layout OOTB, but with option 2 you have to rely on the container for queries and positioning, which means you always have to add an extra element.

So I guess it boils down to whether being able to go that extra mile for option 3 and being able to not add a requirement on an having an extra element for positioning and queries is worth it.
I kinda of hoping it does, but we'll need implementer input here.

-- 
GitHub Notification of comment by ydaniv
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11125#issuecomment-2478978157 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 15 November 2024 14:14:12 UTC