mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 16:25:38 +00:00
Bug 1493382 [wpt PR 13157] - [PE] Fix fragment clip and paint offset under multicol vertical-rl scrolled, a=testonly
Automatic update from web-platform-tests[PE] Fix fragment clip and paint offset under multicol vertical-rl scrolled The previous code in VisualOffsetFromPaintOffsetRoot() converting the result into scrolling contents space used ScrolledContentOffset which mismatched the new ScrollTranslation which also includes scroll origin. Now use ScrollTranslation instead. Also removed the wrong remedy about scroll origin in one of the callers. Bug: 887423 Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_slimming_paint_v2;master.tryserver.blink:linux_trusty_blink_rel Change-Id: I9a72ed6ddc066c5b4c9970037ed4c4287c5a2f0f Reviewed-on: https://chromium-review.googlesource.com/1239170 Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org> Reviewed-by: Morten Stenshorne <mstensho@chromium.org> Reviewed-by: Philip Rogers <pdr@chromium.org> Cr-Commit-Position: refs/heads/master@{#593572} -- wpt-commits: 68d63d516e6bc4b83934d71616b2aa82d8efe2af wpt-pr: 13157
This commit is contained in:
parent
e13b31769f
commit
31feea1bed
@ -0,0 +1,16 @@
|
||||
<!DOCTYPE html>
|
||||
<title>Multicol under vertical-rl scrolling container</title>
|
||||
<p>Passes if there are two green squares</p>
|
||||
<div id="scroller" style="width: 200px; height: 200px; overflow: scroll; border: 1px solid black">
|
||||
<div style="width: 580px; height: 500px; position: relative">
|
||||
<div style="position: absolute; right: 0">
|
||||
<div style="width: 80px; height: 80px; background: green"></div>
|
||||
<div style="height: 20px"></div>
|
||||
<div style="width: 80px; height: 80px; background: green"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
// Scroll all the way to the right.
|
||||
scroller.scrollLeft = 800;
|
||||
</script>
|
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<title>Multicol under vertical-rl scrolling container</title>
|
||||
<link rel="match" href="multicol-under-vertical-rl-scroll-ref.html">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-multicol">
|
||||
<p>Passes if there are two green squares</p>
|
||||
<div style="width: 200px; height: 200px; overflow: scroll; writing-mode: vertical-rl; border: 1px solid black">
|
||||
<div style="columns: 2; column-gap: 20px; width: 80px; height: 180px">
|
||||
<div style="width: 160px; background: green"></div>
|
||||
</div>
|
||||
<div style="width: 500px; height: 500px"></div>
|
||||
</div>
|
Loading…
Reference in New Issue
Block a user