mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Update web-platform-tests to revision b'468d01bbd84da2babf265c6af46947be68713440'
This commit is contained in:
parent
35e95f55a1
commit
58e8ee674b
9438 changed files with 266112 additions and 106976 deletions
|
@ -28,6 +28,11 @@
|
|||
height: 200px;
|
||||
background: radial-gradient(at right 60%, red, yellow, green);
|
||||
}
|
||||
|
||||
.vertical-rl {
|
||||
writing-mode: vertical-rl;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
@ -45,9 +50,17 @@ for (var i = 0; i < results.length; ++i) {
|
|||
testContents += "<div class='test-row'>";
|
||||
|
||||
var containerClass = 'container ' + results[i];
|
||||
|
||||
// Use vertical-rl here because Firefox and WebKit put vertical scrollbars
|
||||
// on the left in the vertical-rl test cases, and this is the easiest way to
|
||||
// match that.
|
||||
let maybe_vertical = "";
|
||||
if (i > 3 && i < 8)
|
||||
maybe_vertical = " vertical-rl";
|
||||
|
||||
testContents +=
|
||||
"<div class='" + containerClass + "'>" +
|
||||
"<div class='flexbox'>" +
|
||||
"<div class='flexbox" + maybe_vertical + "'>" +
|
||||
"<div></div>" +
|
||||
"</div>" +
|
||||
"</div>";
|
||||
|
@ -57,6 +70,10 @@ for (var i = 0; i < results.length; ++i) {
|
|||
|
||||
document.body.innerHTML += testContents;
|
||||
|
||||
Array.prototype.forEach.call(document.querySelectorAll(".left"), function(element) {
|
||||
element.firstChild.scrollLeft = -1000;
|
||||
});
|
||||
|
||||
Array.prototype.forEach.call(document.querySelectorAll(".right"), function(element) {
|
||||
element.firstChild.scrollLeft = 1000;
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue