Re: [csswg-drafts] [css-overflow] Scroll direction of unicode-bidi: plaintext. (#13816)

FWIW my preference here would be to do something that doesn't require scanning the whole paragraph or arbitrarily deep boxes to figure out the right direction.

What we do in Gecko is [here](https://searchfox.org/firefox-main/rev/43aae7a9ab016c3892591a759e48ff73896287e4/layout/generic/ScrollContainerFrame.cpp#7159-7180).

For `<input>` / `<textarea>` we know that the overflow can only be on the relevant side, so we choose based on which side has more overflow. For other content we have a very simplistic check.

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


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

Received on Wednesday, 1 July 2026 07:48:01 UTC