Respect the target element's writing mode if the snap area is larger than the snapport
Categories
(Core :: Layout: Scrolling and Overflow, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox104 | --- | fixed |
People
(Reporter: hiro, Assigned: hiro)
References
(Blocks 1 open bug, )
Details
Attachments
(1 file)
Since I implemented the new scroll snap properties, the spec was modified a bit about resolving scroll-snap-align property. The part is;
Start and end alignments are resolved with respect to the writing mode of the snap container unless the scroll snap area is larger than the snapport, in which case they are resolved with respect to the writing mode of the box itself.
This is the reason why scroll-snap-writing-mode-000.html fails.
That said, there's an ambiguous thing about it, even if the snap area size is larger than only on one axis? The answer is probably yes, otherwise scroll-snap-align: start start
or some such will be conflict in cases writing-modes are different. I raised a spec issue for this ambiguousness. ambiguousness
Assignee | ||
Comment 1•2 years ago
|
||
(In reply to Hiroyuki Ikezoe (:hiro) from comment #0)
Start and end alignments are resolved with respect to the writing mode of the snap container unless the scroll snap area is larger than the snapport, in which case they are resolved with respect to the writing mode of the box itself.
This is the reason why scroll-snap-writing-mode-000.html fails.
It turned out there's another reason of the test failure, we haven't yet implemented re-snapping on reflow (bug 1530253)
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 2•2 years ago
|
||
I am going to fix this as interpreting the spec text as larger
means the snap area size is larger than at least on one axis.
I was hoping fixing this issue makes bug 1777649 fix easier, but it seems not.
Assignee | ||
Comment 3•2 years ago
|
||
Pushed by hikezoe.birchill@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/aba3e685dea9 Resolve scroll-snap-align with the targe element's writing mode if the size is larger than the snapport. r=botond
Description
•