mirror of
https://github.com/servo/servo.git
synced 2025-09-02 11:08:22 +01:00
Update web-platform-tests to revision 2660fc486f7027c913863d48a8843942f0c0365e
This commit is contained in:
parent
96de31b463
commit
c413a1139e
455 changed files with 8535 additions and 2067 deletions
|
@ -0,0 +1,50 @@
|
|||
<!DOCTYPE html>
|
||||
<title>CSS Test: Static positions and line wrapping</title>
|
||||
<link rel="author" title="Koji Ishii" href="mailto:kojii@chromium.org">
|
||||
<link rel="help" href="https://drafts.csswg.org/css2/visudet.html#static-position">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/resources/check-layout-th.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
|
||||
<style>
|
||||
.tests, .no-tests {
|
||||
margin-bottom: 1em;
|
||||
font-family: Ahem;
|
||||
font-size: 10px;
|
||||
line-height: 1;
|
||||
}
|
||||
.tests > div, .no-tests > div {
|
||||
position: relative;
|
||||
width: 10ch;
|
||||
border: 1px solid blue;
|
||||
}
|
||||
.abs {
|
||||
position: absolute;
|
||||
color: orange;
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
<section class="tests">
|
||||
<div>12345<span class="abs" data-offset-x="50" data-offset-y="0">span</span>54321</div>
|
||||
<div>123456<span class="abs" data-offset-x="60" data-offset-y="0">span</span>654321</div>
|
||||
<div>12345<span class="abs" data-offset-x="50" data-offset-y="0">span</span> 54321</div>
|
||||
<div>12345 <span class="abs" data-offset-x="60" data-offset-y="0">span</span> 54321</div>
|
||||
<div>12345 <span class="abs" data-offset-x="60" data-offset-y="0">span</span> 54321</div>
|
||||
</section>
|
||||
<section class="tests">
|
||||
<!-- offsetTop is interoperable but offsetLeft is not due to white space collapsing. -->
|
||||
<div>12345 <span class="abs" data-offset-y="0">span</span> 54321</div>
|
||||
</section>
|
||||
<section class="no-tests">
|
||||
<!-- These tests are not interoperable. -->
|
||||
<div>12345 <span class="abs">span</span>54321</div>
|
||||
<div>12345 <span class="abs">span</span> 54321</div>
|
||||
<div>123456789012 <span class="abs">span</span> 54321</div>
|
||||
<div>123456789012 <span class="abs">span</span> 543210987654321</div>
|
||||
</section>
|
||||
<script>
|
||||
document.fonts.ready.then(()=> {
|
||||
checkLayout('.tests .abs');
|
||||
});
|
||||
</script>
|
||||
</body>
|
Loading…
Add table
Add a link
Reference in a new issue