mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision ac12b3e9488edb436f063b11213e954ae62d5a5e
This commit is contained in:
parent
65370f17c9
commit
b56a3b8e69
111 changed files with 3122 additions and 68 deletions
|
@ -0,0 +1,28 @@
|
|||
<!DOCTYPE html>
|
||||
<style>
|
||||
div {
|
||||
font-size: 0; /* so I can leave spaces between the child divs */
|
||||
height: 20px;
|
||||
}
|
||||
div > div {
|
||||
display: inline-block;
|
||||
}
|
||||
div > div:first-child {
|
||||
background: blue;
|
||||
}
|
||||
div > div:nth-child(2) {
|
||||
background: lime;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div>
|
||||
<div style="width:3.6px;"></div>
|
||||
<div style="width:3.6px;"></div>
|
||||
</div>
|
||||
|
||||
<br><br>
|
||||
|
||||
<div>
|
||||
<div style="width:3.3px;"></div>
|
||||
<div style="width:3.3px;"></div>
|
||||
</div>
|
|
@ -0,0 +1,35 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="author" title="David Grogan" href="dgrogan@chromium.org">
|
||||
<link rel="help" href="https://www.w3.org/TR/CSS21/cascade.html#value-stages">
|
||||
<link rel="match" href="subpixel-table-cell-width-001-ref.html">
|
||||
<meta name="flags" content="" />
|
||||
<meta name="assert" content="When a cell has a specified fractional fixed width and a block has the same specified fractional width, their actual widths should match." />
|
||||
|
||||
<style>
|
||||
.table {
|
||||
display: table;
|
||||
height: 20px;
|
||||
background: red;
|
||||
}
|
||||
.cell {
|
||||
display: table-cell;
|
||||
}
|
||||
div > div:first-child {
|
||||
background: blue;
|
||||
}
|
||||
div > div:nth-child(2) {
|
||||
background: lime;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class=table>
|
||||
<div class=cell style="width:3.6px;"></div>
|
||||
<div class=cell style="width:3.6px;"></div>
|
||||
</div>
|
||||
|
||||
<br><br>
|
||||
|
||||
<div class=table>
|
||||
<div class=cell style="width:3.3px;"></div>
|
||||
<div class=cell style="width:3.3px;"></div>
|
||||
</div>
|
|
@ -0,0 +1,36 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="author" title="David Grogan" href="dgrogan@chromium.org">
|
||||
<link rel="help" href="https://www.w3.org/TR/CSS21/cascade.html#value-stages">
|
||||
<link rel="match" href="subpixel-table-cell-width-001-ref.html">
|
||||
<meta name="flags" content="" />
|
||||
<meta name="assert" content="When a cell has a specified percent width that results in a fractional used width, the cell's actual width should match that of a block whose specified fixed width is the cell's used width" />
|
||||
|
||||
<style>
|
||||
.table {
|
||||
display: table;
|
||||
height: 20px;
|
||||
background: red;
|
||||
}
|
||||
.cell {
|
||||
display: table-cell;
|
||||
}
|
||||
div > div:first-child {
|
||||
background: blue;
|
||||
}
|
||||
div > div:nth-child(2) {
|
||||
background: lime;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
<div class=table style="width:7.2px;">
|
||||
<div class=cell style="width:50%;"></div>
|
||||
<div class=cell style="width:50%;"></div>
|
||||
</div>
|
||||
|
||||
<br><br>
|
||||
|
||||
<div class=table style="width:6.6px;">
|
||||
<div class=cell style="width:50%;"></div>
|
||||
<div class=cell style="width:50%;"></div>
|
||||
</div>
|
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html>
|
||||
<style>
|
||||
.parent div {
|
||||
background: #aaa;
|
||||
width: 100%;
|
||||
height: 100px;
|
||||
}
|
||||
</style>
|
||||
|
||||
There should be two grey ~squares with no red showing.
|
||||
|
||||
<div class="parent" style="width:100.2px">
|
||||
<div></div>
|
||||
</div>
|
||||
|
||||
<div class="parent" style="width:100.8px">
|
||||
<div></div>
|
||||
</div>
|
|
@ -0,0 +1,28 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="author" title="David Grogan" href="mailto:dgrogan@chromium.org">
|
||||
<link rel="help" href="https://www.w3.org/TR/CSS22/syndata.html#value-def-percentage">
|
||||
<link rel="match" href="subpixel-table-width-001-ref.html">
|
||||
<meta name="flags" content="" />
|
||||
<meta name="assert" content="A table with width:100% has same actual width as its parent's actual width." />
|
||||
|
||||
<style>
|
||||
.parent {
|
||||
background: red;
|
||||
}
|
||||
|
||||
.parent table {
|
||||
background: #aaa;
|
||||
width: 100%;
|
||||
height: 100px;
|
||||
}
|
||||
</style>
|
||||
|
||||
There should be two grey ~squares with no red showing.
|
||||
|
||||
<div class="parent" style="width:100.2px">
|
||||
<table></table>
|
||||
</div>
|
||||
|
||||
<div class="parent" style="width:100.8px">
|
||||
<table></table>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue