mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Update web-platform-tests and CSS tests.
- Update CSS tests to revision e05bfd5e30ed662c2f8a353577003f8eed230180. - Update web-platform-tests to revision a052787dd5c069a340031011196b73affbd68cd9.
This commit is contained in:
parent
fb4f421c8b
commit
296fa2512b
21852 changed files with 2080936 additions and 892894 deletions
|
@ -0,0 +1,7 @@
|
|||
<!DOCTYPE html>
|
||||
<html><head><meta charset="utf-8">
|
||||
<title>CSS Reftest Reference</title>
|
||||
<link href="mailto:rune@opera.com" rel="author" title="Rune Lillesveen">
|
||||
</head><body><p>You should see the word PASS in green and no red below.</p>
|
||||
<div style="color:green"><span>P</span>ASS</div>
|
||||
</body></html>
|
|
@ -0,0 +1,59 @@
|
|||
html, body {
|
||||
color: black;
|
||||
background-color: white;
|
||||
font-size: 16px;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
body { color: red; }
|
||||
|
||||
.table {
|
||||
display: table;
|
||||
border-collapse: collapse;
|
||||
border: blue solid 1pt;
|
||||
}
|
||||
|
||||
.itable { display: inline-table; }
|
||||
.caption { display: table-caption; }
|
||||
.cell {
|
||||
display: table-cell;
|
||||
border: inherit;
|
||||
}
|
||||
.row {
|
||||
display: table-row;
|
||||
border: green dashed 1pt;
|
||||
}
|
||||
.rowg { display: table-row-group; }
|
||||
.head { display: table-header-group; }
|
||||
.foot { display: table-footer-group; }
|
||||
.col { display: table-column; }
|
||||
.colg { display: table-column-group; }
|
||||
.flex { display: flex; }
|
||||
.iflex { display: inline-flex; }
|
||||
.li { display: list-item; }
|
||||
.ib { display: inline-block; }
|
||||
.inline { display: inline; }
|
||||
.columns { columns: 2; height: 4em; }
|
||||
.contents {
|
||||
display: contents;
|
||||
align-items: inherit;
|
||||
justify-items:inherit;
|
||||
}
|
||||
.c1 { color: lime; }
|
||||
.c2 { background: blue; color: pink; }
|
||||
.c3 { color: teal; }
|
||||
.c4 { color: green; }
|
||||
.c5 { color: silver; }
|
||||
.c6 { color: cyan; }
|
||||
.c7 { color: magenta; }
|
||||
.c8 { color: yellow; }
|
||||
.c9 { color: grey; }
|
||||
.c10{ color: black; }
|
||||
.b { background: inherit; }
|
||||
|
||||
/** This is the only difference between references and non-reference styles */
|
||||
.ref .c2 { background: transparent; }
|
||||
.ref .b { background:blue; }
|
||||
.ref div.contents { display: block; }
|
||||
.ref span.contents { display: inline; }
|
Binary file not shown.
After Width: | Height: | Size: 84 B |
|
@ -0,0 +1,23 @@
|
|||
function eachDisplayContentsElementIn(document, window, callbackDo, callbackUndo) {
|
||||
var elements = [];
|
||||
|
||||
document.body.offsetHeight;
|
||||
|
||||
// NOTE: Doing qsa('*') and getComputedStyle is just for the
|
||||
// test's sake, since it's easier to mess it up when
|
||||
// getComputedStyle is involved.
|
||||
var all = document.querySelectorAll('*');
|
||||
for (var i = 0; i < all.length; ++i) {
|
||||
if (window.getComputedStyle(all[i]).display === "contents") {
|
||||
callbackDo(all[i]);
|
||||
elements.push(all[i]);
|
||||
}
|
||||
}
|
||||
|
||||
document.body.offsetHeight;
|
||||
|
||||
for (var i = 0; i < elements.length; ++i)
|
||||
callbackUndo(elements[i]);
|
||||
|
||||
document.body.offsetHeight;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue