Navigating to a fragment scrolls to wrong position with writing-mode: vertical-rl
Reported by
na...@moon.email.ne.jp,
May 19 2018
|
||||
Issue descriptionUserAgent: 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
,
May 20 2018
,
May 21 2018
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..
,
May 24 2018
,
Jun 21 2018
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 |
||||
Comment 1 by na...@moon.email.ne.jp
, May 19 2018