New issue
Advanced search Search tips

Issue 844868 link

Starred by 3 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Android , Windows , Chrome , Mac
Pri: 3
Type: Bug



Sign in to add a comment

Navigating to a fragment scrolls to wrong position with writing-mode: vertical-rl

Reported by na...@moon.email.ne.jp, May 19

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0

Steps to reproduce the problem:
Visit https://jsfiddle.net/pjvutnq0/ and follow "Navigate to the fragment" link.

What is the expected behavior?
Right border edge of the fragment element is on the right edge of viewport.

What went wrong?
Left border edge of the fragment element is on the left edge of viewport.

Did this work before? N/A 

Does this work in other browsers? N/A

Chrome version: 68.0.3435.0  Channel: n/a
OS Version: 10.0
Flash Version: Shockwave Flash 29.0 r0

According to HTML spec[1] and CSSOM View spec[2], the right edge is the beginning edge in "writing-mode: vertical-rl" document.
[1] https://html.spec.whatwg.org/multipage/browsing-the-web.html#scroll-to-the-fragment-identifier
[2] https://drafts.csswg.org/cssom-view/#scroll-an-element-into-view

HTML spec refers to an obsolete argument of CSSOM View spec. There are pull requests for HTML spec[3] and web-platform-test[4].
[3] https://github.com/whatwg/html/pull/3131
[4] https://github.com/w3c/web-platform-tests/pull/10828
 
Firefox has the same issue: https://bugzilla.mozilla.org/show_bug.cgi?id=1462916
MS Edge works as expected.
Labels: Needs-Triage-M68
Cc: susan.boorgula@chromium.org
Labels: M-68 Triaged-ET FoundIn-68 Target-68 OS-Linux OS-Mac
Status: Untriaged (was: Unconfirmed)
Reporter@ Thanks for the issue.

Able to reproduce the issue on Windows 10, Mac OS 10.13.3 and Ubuntu 14.04 on the latest Canary 68.0.3436.0 and Stable 66.0.3359.181 by the steps mentioned in the original comment.
Attached is the screen shot for reference.

This is a Non-Regression issue as this behavior is observed from M60 Chrome builds. 
Hence marking this as Untriaged for further updates from Dev.

Thanks..
844868-M60.PNG
62.1 KB View Download
Cc: bokan@chromium.org
Labels: -Pri-2 Hotlist-GoodFirstBug OS-Android OS-Chrome Pri-3
Status: Available (was: Untriaged)
Project Member

Comment 5 by bugdroid1@chromium.org, Jun 21

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/137ca58808d726e8f78727857a01f6b926034bf0

commit 137ca58808d726e8f78727857a01f6b926034bf0
Author: Suneel Kota <suneel.kota@samsung.com>
Date: Thu Jun 21 10:58:40 2018

Navigating to fragment scrolls with writing-mode: vertical-rl

This CL sets the alignment of the Anchor node in accordance, when
vertical-rl writing-mode is set

Bug: 844868
Change-Id: I8357bcccbc88ffcd3b5d01265737a5b60f1e59a8
Reviewed-on: https://chromium-review.googlesource.com/1075956
Commit-Queue: srirama chandra sekhar <srirama.m@samsung.com>
Reviewed-by: David Bokan <bokan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#569214}
[add] https://crrev.com/137ca58808d726e8f78727857a01f6b926034bf0/third_party/WebKit/LayoutTests/external/wpt/css/cssom-view/scrollIntoView-vertical-rl-writing-mode.html
[delete] https://crrev.com/c5604690c12b5b998c137d6e67c46b5d1d7c626b/third_party/WebKit/LayoutTests/external/wpt/html/browsers/browsing-the-web/scroll-to-fragid/scroll-position-vertical-lr-expected.txt
[delete] https://crrev.com/c5604690c12b5b998c137d6e67c46b5d1d7c626b/third_party/WebKit/LayoutTests/external/wpt/html/browsers/browsing-the-web/scroll-to-fragid/scroll-position-vertical-rl-expected.txt
[modify] https://crrev.com/137ca58808d726e8f78727857a01f6b926034bf0/third_party/blink/renderer/core/dom/element.cc
[modify] https://crrev.com/137ca58808d726e8f78727857a01f6b926034bf0/third_party/blink/renderer/core/dom/element.h
[modify] https://crrev.com/137ca58808d726e8f78727857a01f6b926034bf0/third_party/blink/renderer/core/frame/local_frame_view.cc

Sign in to add a comment