mirror of
https://github.com/servo/servo.git
synced 2025-08-18 03:45:33 +01:00
Update web-platform-tests to revision b382ac7192087da0a7439902e20be76ab7587ee8
This commit is contained in:
parent
3e96a322ae
commit
defee2aae0
45 changed files with 645 additions and 189 deletions
|
@ -0,0 +1,70 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
||||
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>reference for abspos-inline-007</title>
|
||||
<style type="text/css">
|
||||
.block-container {
|
||||
font: 20px Ahem;
|
||||
height: 20px;
|
||||
position: relative;
|
||||
top: -1px;
|
||||
}
|
||||
.inline-container {
|
||||
position: relative;
|
||||
border: 1px solid black;
|
||||
display: inline-block;
|
||||
}
|
||||
.parent-block {
|
||||
display: inline-block;
|
||||
width: 30px;
|
||||
height: 10px;
|
||||
}
|
||||
.abspos {
|
||||
position: absolute;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
background-color: green;
|
||||
display: inline-block;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
.br {
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
}
|
||||
.tl {
|
||||
top: 0;
|
||||
left: 0;
|
||||
}
|
||||
.filler {
|
||||
display: inline-block;
|
||||
width: 30px;
|
||||
height: 10px;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="block-container">
|
||||
x
|
||||
<div class="inline-container">
|
||||
tl
|
||||
<div class="abspos tl"></div>
|
||||
<div class="parent-block"></div>
|
||||
<div class="filler"></div>
|
||||
</div>x
|
||||
<div class="inline-container">
|
||||
br
|
||||
<div class="abspos br"></div>
|
||||
<div class="parent-block"></div>
|
||||
<div class="filler"></div>
|
||||
</div>x
|
||||
<div class="inline-container">
|
||||
static
|
||||
<div class="abspos" style="position:static"></div><div class="parent-block"></div>
|
||||
<div class="filler" style="width: 20px;"></div>
|
||||
</div>
|
||||
</div>
|
||||
<p>Tests abspos positioning of an Element that 1) has an inline containing
|
||||
block, and 2) is not a child of the inline containing block, but a descendant.</p>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,74 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
||||
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>CSS Test: Absolutely positioned descendants in inlines</title>
|
||||
<link rel="author" title="Aleks Totic" href="mailto:atotic@chromium.org"/>
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#comp-abspos" />
|
||||
<link rel="match" href="abspos-inline-007-ref.xht" />
|
||||
<style type="text/css">
|
||||
.block-container {
|
||||
position: relative;
|
||||
font: 20px Ahem;
|
||||
}
|
||||
.inline-container {
|
||||
position: relative;
|
||||
border: 1px solid black;
|
||||
}
|
||||
.parent-block {
|
||||
display: inline-block;
|
||||
width: 30px;
|
||||
height: 10px;
|
||||
}
|
||||
.abspos {
|
||||
position: absolute;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
background-color: green;
|
||||
}
|
||||
.br {
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
}
|
||||
.tl {
|
||||
top: 0;
|
||||
left: 0;
|
||||
}
|
||||
.filler {
|
||||
display: inline-block;
|
||||
width: 30px;
|
||||
height: 10px;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="block-container">
|
||||
x
|
||||
<span class="inline-container">
|
||||
tl
|
||||
<div class="parent-block">
|
||||
<div class="abspos tl"></div>
|
||||
</div>
|
||||
<div class="filler"></div>
|
||||
</span>
|
||||
x
|
||||
<span class="inline-container">
|
||||
br
|
||||
<div class="parent-block">
|
||||
<div class="abspos br"></div>
|
||||
</div>
|
||||
<div class="filler"></div>
|
||||
</span>
|
||||
x
|
||||
<span class="inline-container">
|
||||
static
|
||||
<div class="parent-block">
|
||||
<div class="abspos"></div>
|
||||
</div>
|
||||
<div class="filler"></div>
|
||||
</span>
|
||||
</div>
|
||||
<p>Tests abspos positioning of an Element that 1) has an inline containing
|
||||
block, and 2) is not a child of the inline containing block, but a descendant.</p>
|
||||
</body>
|
||||
</html>
|
|
@ -10,11 +10,11 @@
|
|||
== attachment-local-clipping-color-3.html attachment-local-clipping-color-3-ref.html
|
||||
== attachment-local-clipping-color-4.html attachment-local-clipping-color-4-ref.html
|
||||
== attachment-local-clipping-color-5.html attachment-local-clipping-color-4-ref.html # Same ref as the previous test.
|
||||
fuzzy(50,500) == attachment-local-clipping-color-6.html attachment-local-clipping-color-6-ref.html
|
||||
fuzzy(0-50,0-500) == attachment-local-clipping-color-6.html attachment-local-clipping-color-6-ref.html
|
||||
|
||||
== attachment-local-clipping-image-1.html attachment-local-clipping-image-1-ref.html
|
||||
== attachment-local-clipping-image-2.html attachment-local-clipping-image-1-ref.html # Same ref as the previous test.
|
||||
== attachment-local-clipping-image-3.html attachment-local-clipping-image-3-ref.html
|
||||
== attachment-local-clipping-image-4.html attachment-local-clipping-image-4-ref.html
|
||||
== attachment-local-clipping-image-5.html attachment-local-clipping-image-4-ref.html # Same ref as the previous test.
|
||||
fuzzy(80,500) == attachment-local-clipping-image-6.html attachment-local-clipping-image-6-ref.html
|
||||
fuzzy(0-80,0-500) == attachment-local-clipping-image-6.html attachment-local-clipping-image-6-ref.html
|
||||
|
|
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue