Open Bug 1511200 Opened 6 years ago Updated 3 years ago

outer scrollport's initial scroll position doesn't respect writing-mode from <body>

Categories

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

defect

Tracking

()

Tracking Status
firefox65 --- affected

People

(Reporter: dholbert, Unassigned)

Details

Attachments

(3 files)

Attached file testcase 1
STR: 1. Load attached testcase EXPECTED RESULTS The page's scrollbars should be snapped to the upper-right position. (The text should be visible, and no red should be visible.) ACTUAL RESULTS: The page's scrollbars are snapped to the upper-left position. (The text isn't visible because it's way off to the right. The red box is visible, even though it's at the end (left) edge of the document.) Note: Chrome gives EXPECTED RESULTS here. Firefox Nightly 65 gives ACTUAL RESULTS, though if I move the 'writing-mode' property to be set on html {...} instead of on body {...}, then we change to give EXPECTED RESULTS. So we're giving `html` some special treatment that we're not giving to `body`. Interestingly, we don't have this difference for the "direction" property -- if I rewrite the testcase to use "direction: rtl", then we get EXPECTED RESULTS regardless of whether the style is on `html` or on `body`.
Edge 17 and Safari 12 give "expected results" here, too. So, we're on our own with our rendering.
(In reply to Daniel Holbert [:dholbert] from comment #0) > though if I move the 'writing-mode' property to be set on html {...} > instead of on body {...}, then we change to give EXPECTED RESULTS. My just-attached "reference case 1" demonstrates this.
(In reply to Daniel Holbert [:dholbert] from comment #0) > Interestingly, we don't have this difference for the "direction" property -- > if I rewrite the testcase to use "direction: rtl", then we get EXPECTED > RESULTS regardless of whether the style is on `html` or on `body`. This "testcase 2" demonstrates this ^^^. We correctly (and interoperably) start *this* testcase scrolled to the upper-right corner, unlike testcase 1 which we mistakenly scroll to the upper-left.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: