Bug 1471810 [wpt PR 11703] - [LayoutNG] bugfix for NG painting in vertical-rl with scrollbars., a=testonly

Automatic update from web-platform-tests[LayoutNG] bugfix for NG painting in vertical-rl with scrollbars.

This bug occurs when painting NG child inside non-inline vertical-rl parent
with scrollbars.

Root cause is extra scrollbar offset that Paint applies to Legacy painting that
is not needed for NG.

The fix is hacky: NG applies reverse offset.

This fix does not make any additional tests pass or fail.

Bug: 852395
Cq-Include-Trybots: luci.chromium.try :linux_layout_tests_layout_ng
Change-Id: I7dda2cdbf682485ab30c048987ae683981731886
Reviewed-on: https://chromium-review.googlesource.com/1115863
Commit-Queue: Morten Stenshorne <mstensho@chromium.org>
Reviewed-by: Morten Stenshorne <mstensho@chromium.org>
Cr-Commit-Position: refs/heads/master@{#571080}

--

wpt-commits: e7aa3025a97a793b4fe5776dcf616f6e845d1ce0
wpt-pr: 11703
MozReview-Commit-ID: JlUogtQDeVU
This commit is contained in:
Aleks Totic 2018-07-06 23:22:50 +00:00 коммит произвёл James Graham
Родитель d035eed516
Коммит 00b9e6b5f8
3 изменённых файлов: 75 добавлений и 0 удалений

Просмотреть файл

@ -159977,6 +159977,18 @@
{}
]
],
"css/css-writing-modes/scrollbar-vertical-rl.html": [
[
"/css/css-writing-modes/scrollbar-vertical-rl.html",
[
[
"/css/css-writing-modes/reference/scrollbar-vertical-rl-ref.html",
"=="
]
],
{}
]
],
"css/css-writing-modes/sizing-orthog-htb-in-vlr-001.xht": [
[
"/css/css-writing-modes/sizing-orthog-htb-in-vlr-001.xht",
@ -262858,6 +262870,11 @@
{}
]
],
"css/css-writing-modes/reference/scrollbar-vertical-rl-ref.html": [
[
{}
]
],
"css/css-writing-modes/reference/svg-aliasing-001-ref.html": [
[
{}
@ -549710,6 +549727,10 @@
"6718fb7f117b02d835e5019ec884902669263f7f",
"support"
],
"css/css-writing-modes/reference/scrollbar-vertical-rl-ref.html": [
"352bb555091f87a1308dcfa69ca973d3aac211a5",
"support"
],
"css/css-writing-modes/reference/svg-aliasing-001-ref.html": [
"8156e1ec7df883cc2aef362a0d477dd3853f52d6",
"support"
@ -549854,6 +549875,10 @@
"252c877b6b62e93b69b97a9dcc99498c5f56db65",
"reftest"
],
"css/css-writing-modes/scrollbar-vertical-rl.html": [
"e0bd3a11b16f322beb29f3c83c1b26ecc9b037d6",
"reftest"
],
"css/css-writing-modes/sizing-orthog-htb-in-vlr-001-ref.xht": [
"31223eeb2b9b8e7077fd90fc18d29221c63cdb6b",
"support"

Просмотреть файл

@ -0,0 +1,21 @@
<!DOCTYPE html>
<html>
<head>
<title>CSS Writing Modes Test: vertical-rl painting with vertical scrollbar reference</title>
<link rel="author" title="Aleks Totic" href="atotic@chromium.org" />
<style>
#container {
width: 300px;
height: 200px;
border: 1px solid black;
writing-mode: vertical-rl;
overflow: scroll;
background: blue;
}
#target {
width:500px;
}
</style>
<div id="container">
<div id="target"><br></div>
</div>

Просмотреть файл

@ -0,0 +1,29 @@
<!DOCTYPE html>
<html>
<head>
<title>CSS Writing Modes Test: vertical-rl painting with vertical scrollbar</title>
<link rel="author" title="Aleks Totic" href="atotic@chromium.org" />
<link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-flows" title="7.3 Orthogonal flows" />
<link rel="match" href="./reference/scrollbar-vertical-rl-ref.html" />
<style>
#container {
width: 300px;
height: 200px;
border: 1px solid black;
writing-mode: vertical-rl;
overflow: scroll;
background: red;
}
#target {
width:500px;
background:blue;
}
</style>
</head>
<body>
<div id="container">
<div id="target"><br></div>
</div>
</body>