tabvengers / spicy-sections

Creative Commons Zero v1.0 Universal
128 stars 10 forks source link

author/UA/User negotion prefers-* #37

Open bkardell opened 2 years ago

bkardell commented 2 years ago

It's come up several times now and there have been ideas that I think are worth tackling. I managed to have a good discussion with @scottaohara today and I think we decided the following made sense...

We should respect a css custom property in our custom element that will stand in for a future OS/browser setting exposed as env/const that allows negotiation. Effectively, the idea is that the author is beginning with 'good content' and laying out what they believe is most useful/pleasant/efficient as a way to consume content at different media or sizes - but authors might disagree with that in a few ways and allowing them to have control over this somehow seems ideal. So I proposed is a css custom property which will be read off root before any affordance change happens - let's hyptothetically call is prefers-sectioning-affordance and it would have values - I would propose the initial set would be:

This would allow someone to set a user stylesheet, or extensions which provide it, or sites to fairly easily provide interfaces to make it possible to let users be in control. Given some research here then, we can craft an actual proposal.