Closed Bug 1768746 Opened 2 years ago Closed 2 years ago

Respect the target element's writing mode if the snap area is larger than the snapport

Categories

(Core :: Layout: Scrolling and Overflow, defect, P3)

defect

Tracking

()

RESOLVED FIXED
104 Branch
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

(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)

See Also: → 1530253
Severity: -- → S3
Priority: -- → P3

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: nobody → hikezoe.birchill
Status: NEW → ASSIGNED
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
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 104 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: