Closed Bug 1700292 Opened 4 years ago Closed 3 years ago

Marks not available for horizontal scrollbar, i.e. pages with `writing-mode: vertical-lr`

Categories

(Toolkit :: Find Toolbar, defect, P3)

defect

Tracking

()

RESOLVED FIXED
99 Branch
Tracking Status
firefox99 --- fixed

People

(Reporter: hectorz, Assigned: hectorz)

References

Details

Attachments

(4 files, 1 obsolete file)

As can be seen in the attached screenshot.

Doesn't look like chrome supports this either. That said, it wouldn't be too hard to implement, but would involve quite a bit of changes to compute horizontal sizes instead of vertical:

Severity: -- → S3
Priority: -- → P3
Assignee: nobody → bzhao
Status: NEW → ASSIGNED

Hi, I've prepared a patch for this bug, which works for me locally.

One thing I'm not quite sure of: I thought it might be too busy to show marks on both horizontal and vertical scrollbars simultaneously, and opted to only display them on the one that has more space to scroll. I also never check for the page's writing mode, as originally mentioned in the bug's title.

I've added a reftest with two marks, that seems to work cross platforms (see treeherder)

Attachment #9210966 - Attachment is obsolete: true

(In reply to Hector Zhao [:hectorz] from comment #4)

One thing I'm not quite sure of: I thought it might be too busy to show marks on both horizontal and vertical scrollbars simultaneously, and opted to only display them on the one that has more space to scroll. I also never check for the page's writing mode, as originally mentioned in the bug's title.

I agree that showing marks on both scrollbars is probably more confusing than helpful; but I'm inclined to think the choice should be based on the writing mode, rather than how much space there is. So the marks would always appear on the scrollbar that scrolls the content in its block-direction. Can you try that approach and see if it's workable?

(In reply to Jonathan Kew (:jfkthame) from comment #5)

... but I'm inclined to think the choice should be based on the writing mode, rather than how much space there is. So the marks would always appear on the scrollbar that scrolls the content in its block-direction. Can you try that approach and see if it's workable?

I'll give it a try.

Attachment #9264350 - Attachment description: Bug 1700292 - Draw scroll marks on horizontal scrollbar as well. r?#layout-reviewers → Bug 1700292 - Draw scroll marks on horizontal scrollbar as well. r=emilio,jfkthame
Pushed by bzhao@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/331b8f5eb26f Draw scroll marks on horizontal scrollbar as well. r=emilio,jfkthame https://hg.mozilla.org/integration/autoland/rev/2508779c0651 reftest for marks on horizontal scrollbar. r=layout-reviewers,jfkthame https://hg.mozilla.org/integration/autoland/rev/890de5447c2c Test to verify marks are set on the horizontal scrollbar for non-horizontal writing modes. r=jfkthame
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 99 Branch

It doesn't seem to work in this test case (https://bug1358017.bmoattachments.org/attachment.cgi?id=8961883).

See Also: → 1757800

(In reply to OUER from comment #10)

It doesn't seem to work in this test case (https://bug1358017.bmoattachments.org/attachment.cgi?id=8961883).

I've filed bug 1757800 about this.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: