Files
sousa-gecko/testing/web-platform/tests/css/css-text/white-space/tab-stop-with-float-001-ref.html
T
Koji Ishii e8ac272c6f Bug 2050350 [wpt PR 60887] - Add an RTL test for tab position when there're floats, a=testonly
Automatic update from web-platform-tests
Add an RTL test for tab position when there're floats

This is a follow up to crrev.com/c/7989552.

Bug: 526682333
Change-Id: Ib2fe5d653a7f7c603b201e1858b3a201a9b3b7b8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7999196
Auto-Submit: Koji Ishii <kojii@chromium.org>
Reviewed-by: Kent Tamura <tkent@chromium.org>
Commit-Queue: Kent Tamura <tkent@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1652163}

--

wpt-commits: a0fba39b25faf17d1e219f871671145226579beb
wpt-pr: 60887
2026-07-06 08:45:13 +00:00

34 lines
719 B
HTML

<!DOCTYPE html>
<title>Reference: tab stops with float</title>
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<script>
const params = new URLSearchParams(window.location.search);
let classes = ['ltr'];
if (params.has('class')) {
classes = params.getAll('class').flatMap(value => value.split(','));
}
document.documentElement.classList.add(...classes);
</script>
<style>
body {
margin: 0;
}
div {
font: 20px/1 Ahem;
white-space: pre;
tab-size: 4;
width: 400px;
}
.rtl div {
direction: rtl;
}
.spacer {
display: inline-block;
width: 40px;
}
</style>
<p>Tab stops should align vertically in both lines.</p>
<div><span class="spacer"></span>a&#9;b</div>
<div>a&#9;b</div>