Update web-platform-tests to revision 4a5223502fa660ce03e470af6a61c8bc26c5a8ee

This commit is contained in:
WPT Sync Bot 2018-04-23 21:13:37 -04:00
parent c5f7c9ccf3
commit e891345f26
1328 changed files with 36632 additions and 20588 deletions

View file

@ -0,0 +1,17 @@
// META: script=/resources/WebIDLParser.js
// META: script=/resources/idlharness.js
'use strict';
// https://compat.spec.whatwg.org/
promise_test(async () => {
const idl = await fetch('/interfaces/compat.idl').then(r => r.text());
const idlArray = new IdlArray();
idlArray.add_untested_idls('interface Window {};');
idlArray.add_untested_idls('interface EventTarget{};');
idlArray.add_untested_idls('interface HTMLBodyElement{};');
idlArray.add_idls(idl);
idlArray.test();
done();
}, 'compat interfaces.');

View file

@ -0,0 +1,6 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>webkit-background-origin should not accept text as value</title>
<link rel="author" title="Rob Buis" href="rob.buis@chromium.org">
<p>There should be a green square below and no red.</p>
<div style="width: 100px; height: 100px; background-color: green"></div>

View file

@ -0,0 +1,18 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>webkit-background-origin should not accept text as value</title>
<link rel="author" title="Rob Buis" href="rob.buis@chromium.org">
<link rel="match" href="webkit-background-origin-text-ref.html">
<style>
#target {
width: 0px;
background-image: linear-gradient(green, green 50%, red 50%, red);
background-size: 200px 200px;
background-origin: border-box;
-webkit-background-origin: text;
padding: 25px;
border: 25px solid transparent;
}
</style>
<p>There should be a green square below and no red.</p>
<div id="target"></div>