Bug 1482432 [wpt PR 12412] - [LayoutNG] Flip for writing mode when calculating inline bounding box., a=testonly

Automatic update from web-platform-tests[LayoutNG] Flip for writing mode when calculating inline bounding box.

LayoutInline::LinesVisualOverflowBoundingBox() is expected to return
coordinates with a logical block coordinate. So we need to flip for
writing-mode vertical-rl.

Discovered while investigating why
wpt/css/css-position/position-sticky-writing-modes.html fails. It had
some weird repaint issues (that I discovered when picking the test
apart) that this CL fixes. That's not enough to fix the test, though.

Cq-Include-Trybots: luci.chromium.try​:linux_layout_tests_layout_ng
Change-Id: I9a8930cc6de01991592282491677327e3406acfb
Reviewed-on: https://chromium-review.googlesource.com/1170835
Reviewed-by: Aleks Totic <atotic@chromium.org>
Commit-Queue: Morten Stenshorne <mstensho@chromium.org>
Cr-Commit-Position: refs/heads/master@{#582222}

--

wpt-commits: c960c4cf4c4849ee5207d9235bb4da7939a53d58
wpt-pr: 12412
This commit is contained in:
Morten Stenshorne 2018-08-15 09:54:59 +00:00 коммит произвёл moz-wptsync-bot
Родитель b70c9ab7fc
Коммит 0d11f0c9ee
2 изменённых файлов: 28 добавлений и 0 удалений

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

@ -160937,6 +160937,18 @@
{}
]
],
"css/css-writing-modes/relpos-inline-overflowing-block-vrl.html": [
[
"/css/css-writing-modes/relpos-inline-overflowing-block-vrl.html",
[
[
"/css/reference/ref-filled-green-100px-square.xht",
"=="
]
],
{}
]
],
"css/css-writing-modes/row-progression-slr-023.xht": [
[
"/css/css-writing-modes/row-progression-slr-023.xht",
@ -562875,6 +562887,10 @@
"5dccf5071e82905297c33bde6e019ad4b9c019cd",
"support"
],
"css/css-writing-modes/relpos-inline-overflowing-block-vrl.html": [
"ea075c3f95e176c4fd4935fb2d305fc5bcf277da",
"reftest"
],
"css/css-writing-modes/replaced-content-image-002.xht": [
"ef650ee1bd4d4e27dccbbede2e3eaf5dfb8bd635",
"visual"

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

@ -0,0 +1,12 @@
<!DOCTYPE html>
<title>vertical-rl, relatively positioned inline in block that overflows smaller parent</title>
<link rel="author" title="Morten Stenshorne" href="mstensho@chromium.org">
<link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1. Principles of Layout in Vertical Writing Modes">
<link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div style="position:relative; writing-mode:vertical-rl; width:100px; height:100px; background:green;">
<div style="position:absolute; right:0; top:0; width:0.5em; height:1em; background:red;"></div>
<div style="width:200px;">
<span style="position:relative; color:green; background:green;">XXX</span>
</div>
</div>