Re: [csswg-drafts] scroll-policy: ease horizontal scrolling by wheel in vertical writing mode (#4380)

> I'm not familiar with writing-mode best-practices. Could you help me understand what you mean by this? How is writing-mode used incorrectly and what erratic cases does this lead to?

For example, the following code uses writing-mode incorrectly, it's used to achieve top-to-bottom-and-then-left-to-right layout, not for actual vertical writing text:

```
<div style="writing-mode: vertical-lr;">
 <div style="display: inline-block; writing-mode: horizontal-tb;">div 1</div>
 <div style="display: inline-block; writing-mode: horizontal-tb;">div 2</div>
 <div style="display: inline-block; writing-mode: horizontal-tb;">div 3</div>
</div>
```

> is there any reason we can't always cause horizontal scrolling in this case, regardless of overflow? It seems to me this would be more predictable and more straightforward.
> I'm worried that the state of overflow can differ depending on devices and the environment so it makes it difficult for developers to be certain. Layout is difficult...

I have exactly the same concern as you.

I had previously issued [another proposal](#2602) before issuing this proposal. Because the previous proposal seems over complicated to begin with(it's hard to be patient enough for readers to get through at once), so I decided to close it and then started this simplified version.

In the previous proposal, the property has five values, where `none` and `auto` are pretty much the same as the two in this proposal. And the `horizontal` value is exactly what you want here.

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

Received on Wednesday, 9 October 2019 08:13:36 UTC