Update web-platform-tests to revision 3f9178031eec5374c9a7d5709a7e11ba4a1955ed

This commit is contained in:
WPT Sync Bot 2018-07-22 21:05:03 -04:00
parent 4997ec26c2
commit a5af9a106a
192 changed files with 3943 additions and 1927 deletions

File diff suppressed because it is too large Load diff

View file

@ -1,2 +0,0 @@
[overflow-wrap-break-word-004.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[word-break-break-all-010.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[word-break-break-all-011.html]
expected: FAIL

View file

@ -34,3 +34,5 @@
[windows-1254: iso_8859-9:1989 (XMLHttpRequest)]
expected: FAIL
[single-byte-decoder.html?TextDecoder]

View file

@ -24,3 +24,5 @@
[A Keep-Alive fetch() with a body over the Quota Limit should reject.]
expected: FAIL
[request-keepalive-quota.html?include=slow-1]

View file

@ -1,4 +0,0 @@
[idlharness.html]
[Gamepad IDL tests]
expected: FAIL

View file

@ -0,0 +1,4 @@
[idlharness.window.html]
[idlharness]
expected: FAIL

View file

@ -30,3 +30,6 @@
[Set HTTP URL frame location.protocol to data]
expected: FAIL
[Set HTTP URL frame location.protocol to x]
expected: FAIL

View file

@ -292,3 +292,7 @@
[<meta>: "1\\furl=foo"]
expected: TIMEOUT
[parsing.html?131-last]
[parsing.html?81-90]

View file

@ -172,63 +172,3 @@
[XHTML img usemap="http://example.org/#garbage-before-hash-id"]
expected: FAIL
[HTML (quirks) IMG usemap="no-hash-name"]
expected: FAIL
[HTML (quirks) IMG usemap="no-hash-id"]
expected: FAIL
[HTML (quirks) IMG usemap="hash-last#"]
expected: FAIL
[HTML (quirks) IMG usemap=""]
expected: FAIL
[HTML (quirks) IMG usemap="#"]
expected: FAIL
[HTML (quirks) IMG usemap="#percent-escape-name-%41"]
expected: FAIL
[HTML (quirks) IMG usemap="#percent-escape-id-%41"]
expected: FAIL
[HTML (quirks) IMG usemap="#no-such-map"]
expected: FAIL
[HTML (quirks) IMG usemap="#different-CASE-name"]
expected: FAIL
[HTML (quirks) IMG usemap="#different-CASE-id"]
expected: FAIL
[XHTML img usemap="no-hash-name"]
expected: FAIL
[XHTML img usemap="no-hash-id"]
expected: FAIL
[XHTML img usemap="hash-last#"]
expected: FAIL
[XHTML img usemap=""]
expected: FAIL
[XHTML img usemap="#"]
expected: FAIL
[XHTML img usemap="#percent-escape-name-%41"]
expected: FAIL
[XHTML img usemap="#percent-escape-id-%41"]
expected: FAIL
[XHTML img usemap="#no-such-map"]
expected: FAIL
[XHTML img usemap="#different-CASE-name"]
expected: FAIL
[XHTML img usemap="#different-CASE-id"]
expected: FAIL

View file

@ -0,0 +1,4 @@
[image-decode-with-quick-attach.html]
[HTMLImageElement.prototype.decode(), attach to DOM before promise resolves.]
expected: FAIL

View file

@ -0,0 +1,4 @@
[textarea-validity-clone.html]
[<textarea> validity state should be preserved after a clone]
expected: FAIL

View file

@ -0,0 +1,4 @@
[010.html]
[Salvagability of document.opened document]
expected: FAIL

View file

@ -0,0 +1,91 @@
[excluded-properties.html]
[Property block-size does not support quirky length]
expected: FAIL
[Property inline-size does not support quirky length]
expected: FAIL
[Property margin-block-end does not support quirky length]
expected: FAIL
[Property margin-block-start does not support quirky length]
expected: FAIL
[Property margin-inline-end does not support quirky length]
expected: FAIL
[Property margin-inline-start does not support quirky length]
expected: FAIL
[Property min-block-size does not support quirky length]
expected: FAIL
[Property min-inline-size does not support quirky length]
expected: FAIL
[Property offset-distance does not support quirky length]
expected: FAIL
[Property padding-block-end does not support quirky length]
expected: FAIL
[Property padding-block-start does not support quirky length]
expected: FAIL
[Property padding-inline-end does not support quirky length]
expected: FAIL
[Property padding-inline-start does not support quirky length]
expected: FAIL
[Property scroll-margin-block-end does not support quirky length]
expected: FAIL
[Property scroll-margin-block-start does not support quirky length]
expected: FAIL
[Property scroll-margin-bottom does not support quirky length]
expected: FAIL
[Property scroll-margin-inline-end does not support quirky length]
expected: FAIL
[Property scroll-margin-inline-start does not support quirky length]
expected: FAIL
[Property scroll-margin-left does not support quirky length]
expected: FAIL
[Property scroll-margin-right does not support quirky length]
expected: FAIL
[Property scroll-margin-top does not support quirky length]
expected: FAIL
[Property scroll-padding-block-end does not support quirky length]
expected: FAIL
[Property scroll-padding-block-start does not support quirky length]
expected: FAIL
[Property scroll-padding-bottom does not support quirky length]
expected: FAIL
[Property scroll-padding-inline-end does not support quirky length]
expected: FAIL
[Property scroll-padding-inline-start does not support quirky length]
expected: FAIL
[Property scroll-padding-left does not support quirky length]
expected: FAIL
[Property scroll-padding-right does not support quirky length]
expected: FAIL
[Property scroll-padding-top does not support quirky length]
expected: FAIL
[Property shape-margin does not support quirky length]
expected: FAIL

View file

@ -4,3 +4,5 @@
[WebSockets: Send/Receive blob, blob size less than network array buffer]
expected: TIMEOUT
[001.html]

View file

@ -3,3 +3,5 @@
[WebSockets: Send/Receive blob, blob size greater than network array buffer]
expected: TIMEOUT
[002.html]

View file

@ -3,3 +3,5 @@
[WebSockets: Send/Receive ArrayBuffer, size greater than network array buffer]
expected: TIMEOUT
[004.html]

View file

@ -4,3 +4,5 @@
[WebSockets: Send/Receive ArrayBuffer, size less than network array buffer]
expected: TIMEOUT
[005.html]

View file

@ -4,3 +4,5 @@
[WebSockets: bufferedAmount for ArrayBuffer]
expected: TIMEOUT
[bufferedAmount-arraybuffer.html]

View file

@ -4,3 +4,5 @@
[WebSockets: bufferedAmount for blob]
expected: TIMEOUT
[bufferedAmount-blob.html]

View file

@ -1,4 +0,0 @@
[idlharness.html]
[Web Storage IDL tests]
expected: FAIL

View file

@ -0,0 +1,4 @@
[idlharness.window.html]
[idlharness]
expected: FAIL

View file

@ -5,3 +5,7 @@
[sync-no-timeout]
expected: FAIL
[sync-no-timeout.any.worker.html]
[sync-no-timeout.any.html]

View file

@ -0,0 +1,17 @@
<link rel="match" href="drawimage_canvas_self_ref.html">
<canvas id="dest" height="100" width="100"></canvas>
<script>
var canvasWidth = canvasHeight = 100;
var destWidth = canvasWidth / 4;
var destHeight = canvasHeight / 4;
var destCanvas = document.getElementById('dest');
var destCtx = destCanvas.getContext('2d');
destCtx.fillStyle = 'red';
destCtx.fillRect(0, 0, canvasWidth, canvasHeight);
destCtx.fillStyle = 'green';
destCtx.fillRect(0, 0, canvasWidth / 2, canvasHeight / 2);
destCtx.drawImage(destCanvas,
0, 0, destWidth, destHeight,
canvasWidth / 2, canvasHeight / 2, destWidth, destHeight);
</script>

View file

@ -0,0 +1,11 @@
<canvas id="dest" height="100" width="100"></canvas>
<script>
var canvasWidth = canvasHeight = 100;
var destCanvas = document.getElementById('dest');
var destCtx = destCanvas.getContext('2d');
destCtx.fillStyle = 'red';
destCtx.fillRect(0, 0, canvasWidth, canvasHeight);
destCtx.fillStyle = 'green';
destCtx.fillRect(0, 0, canvasWidth / 2, canvasHeight / 2);
destCtx.fillRect(canvasWidth / 2, canvasHeight / 2, canvasWidth / 4, canvasHeight / 4);
</script>

View file

@ -1,37 +0,0 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>Ambient Light Sensor IDL tests</title>
<link rel="author" title="Intel" href="http://www.intel.com">
<link rel="help" href="https://w3c.github.io/ambient-light/">
<link rel="help" href="https://w3c.github.io/sensors/">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/WebIDLParser.js"></script>
<script src="/resources/idlharness.js"></script>
<script>
"use strict";
function doTest([dom, generic_sensor, ambient_light]) {
const idl_array = new IdlArray();
idl_array.add_untested_idls(dom);
idl_array.add_untested_idls('interface EventHandler {};');
idl_array.add_idls(generic_sensor, { only: ['Sensor'] });
idl_array.add_idls(ambient_light);
idl_array.add_objects({
AmbientLightSensor: ['new AmbientLightSensor()']
});
idl_array.test();
}
function fetchText(url) {
return fetch(url).then((response) => response.text());
}
promise_test(() => {
return Promise.all([
"/interfaces/dom.idl",
"/interfaces/sensors.idl",
"/interfaces/ambient-light.idl",
].map(fetchText)).then(doTest);
}, "Test IDL implementation of Ambient Light Sensor");
</script>

View file

@ -0,0 +1,17 @@
// META: script=/resources/WebIDLParser.js
// META: script=/resources/idlharness.js
// https://w3c.github.io/ambient-light/
'use strict';
idl_test(
['ambient-light'],
['generic-sensor', 'dom'],
idl_array => {
idl_array.add_objects({
AmbientLightSensor: ['new AmbientLightSensor()']
});
},
'Test IDL implementation of Ambient Light Sensor'
);

View file

@ -0,0 +1,25 @@
// META: global=window,worker
// META: script=/resources/WebIDLParser.js
// META: script=/resources/idlharness.js
'use strict';
// https://wicg.github.io/background-fetch/
idl_test(
['background-fetch'],
['service-workers', 'dedicated-workers', 'dom'],
idl_array => {
const isServiceWorker = location.pathname.includes('.serviceworker.');
if (isServiceWorker) {
idl_array.add_objects({
ServiceWorkerGlobalScope: ['self'],
ServiceWorkerRegistration: ['registration'],
BackgroundFetchManager: ['registration.backgroundFetch'],
BackgroundFetchEvent: ['new BackgroundFetchEvent("type")'],
BackgroundFetchUpdateEvent: ['new BackgroundFetchUpdateEvent("type")'],
});
}
},
'background-fetch interfaces'
);

View file

@ -1,24 +0,0 @@
// META: script=/resources/WebIDLParser.js
// META: script=/resources/idlharness.js
'use strict';
// https://wicg.github.io/background-fetch/
promise_test(async () => {
const srcs = [
'background-fetch',
'dedicated-workers',
'service-workers',
'dom'
];
const [idls, worker, serviceWorker, dom] = await Promise.all(
srcs.map(i => fetch(`/interfaces/${i}.idl`).then(r => r.text())));
var idlArray = new IdlArray();
idlArray.add_idls(idls);
idlArray.add_dependency_idls(serviceWorker);
idlArray.add_dependency_idls(worker);
idlArray.add_dependency_idls(dom);
idlArray.test();
}, 'background-fetch interfaces');

View file

@ -1,32 +0,0 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>Battery test: IDL</title>
<link rel="author" title="Intel" href="http://www.intel.com">
<link rel="help" href="https://www.w3.org/TR/battery-status/">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/WebIDLParser.js"></script>
<script src="/resources/idlharness.js"></script>
<script>
"use strict";
promise_test(async () => {
const idl_array = new IdlArray();
const dom_idl = await fetch("/interfaces/dom.idl").then(r => r.text());
const battery_idl = await fetch("/interfaces/battery.idl").then(r => r.text());
const manager = await navigator.getBattery();
idl_array.add_untested_idls(dom_idl, {only: ['EventTarget']});
idl_array.add_untested_idls('interface EventHandler {};');
idl_array.add_untested_idls('interface Navigator {};');
idl_array.add_idls(battery_idl);
window.manager = manager;
idl_array.add_objects({
Navigator: ['navigator'],
BatteryManager: ['manager'],
});
idl_array.test();
}, "Test IDL implementation of Battery Status API");
</script>

View file

@ -0,0 +1,20 @@
// META: script=/resources/WebIDLParser.js
// META: script=/resources/idlharness.js
// https://w3c.github.io/battery/
'use strict';
idl_test(
['battery'],
['dom', 'html'],
async idl_array => {
idl_array.add_objects({
Navigator: ['navigator'],
BatteryManager: ['manager'],
})
self.manager = await navigator.getBattery();
},
'Test IDL implementation of Battery Status API'
);

View file

@ -1412,7 +1412,7 @@
"html/elements/label/for-descendant-no-id-novalid.html": "Any \u201cinput\u201d descendant of a \u201clabel\u201d element with a \u201cfor\u201d attribute must have an ID value that matches that \u201cfor\u201d attribute.",
"html/elements/label/multiple-descendants-novalid.html": "The \u201clabel\u201d element may contain at most one \u201cbutton\u201d, \u201cinput\u201d, \u201cmeter\u201d, \u201coutput\u201d, \u201cprogress\u201d, \u201cselect\u201d, or \u201ctextarea\u201d descendant.",
"html/elements/link/href-empty-novalid.html": "Bad value \u201c\u201d for attribute \u201chref\u201d on element \u201clink\u201d: Bad URL: Must be non-empty.",
"html/elements/link/href-missing-novalid.html": "Element \u201clink\u201d is missing required attribute \u201chref\u201d.",
"html/elements/link/href-missing-novalid.html": "Element \u201clink\u201d is missing one or more of the following attributes: [href, resource].",
"html/elements/link/href-whitespace-only-novalid.html": "Bad value \u201c\t \n\u201d for attribute \u201chref\u201d on element \u201clink\u201d: Bad URL: Must be non-empty.",
"html/elements/link/href/fragment-backslash-novalid.html": "Bad value \u201c#\\\u201d for attribute \u201chref\u201d on element \u201clink\u201d: Bad URL: Illegal character in fragment: \u201c\\\u201d is not allowed.",
"html/elements/link/href/fragment-contains-hash-novalid.html": "Bad value \u201chttp://foo/path#f#g\u201d for attribute \u201chref\u201d on element \u201clink\u201d: Bad URL: Illegal character in fragment: \u201c#\u201d is not allowed.",
@ -2406,7 +2406,7 @@
"xhtml/elements/keygen/360-novalid.xhtml": "The \u201ckeygen\u201d element is obsolete. ",
"xhtml/elements/keygen/361-novalid.xhtml": "The \u201ckeygen\u201d element is obsolete. ",
"xhtml/elements/keygen/keygen-novalid.xhtml": "The \u201ckeygen\u201d element is obsolete. ",
"xhtml/elements/link/001-novalid.xhtml": "Element \u201clink\u201d is missing required attribute \u201chref\u201d.",
"xhtml/elements/link/001-novalid.xhtml": "Element \u201clink\u201d is missing one or more of the following attributes: [href, resource].",
"xhtml/elements/menu/menu-containing-hr-novalid.xhtml": "Element \u201chr\u201d not allowed as child of element \u201cmenu\u201d in this context. (Suppressing further errors from this subtree.)",
"xhtml/elements/menu/menu-containing-menu-novalid.xhtml": "Element \u201cmenu\u201d not allowed as child of element \u201cmenu\u201d in this context. (Suppressing further errors from this subtree.)",
"xhtml/elements/menu/menu-containing-text-novalid.xhtml": "Text not allowed in element \u201cmenu\u201d in this context.",

View file

@ -5,7 +5,7 @@
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net">
<meta name=flags content="">
<meta name=assert content="layout containment does not apply to non atomic inlines">
<link rel="match" href="reference/contain-size-001-ref.html">
<link rel="match" href="../reference/pass_if_pass_below.html">
<link rel=help href="https://drafts.csswg.org/css-contain-1/#containment-layout">
<style>
@ -15,5 +15,5 @@ span {
}
</style>
<p>This test passes if you can see the word PASS below.
<p>Test passes if there is the word "PASS" below.</p>
<div><span>PA</span>SS</div>

View file

@ -5,28 +5,32 @@
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net">
<meta name=flags content="ahem">
<meta name=assert content="layout containment does not apply to ruby-base">
<link rel="match" href="reference/contain-layout-002-ref.html">
<link rel="match" href="../reference/ref-filled-green-100px-square.xht">
<link rel=help href="https://drafts.csswg.org/css-contain-1/#containment-layout">
<style>
div {
position: relative;
background: red;
width: 100px;
height: 100px;
padding: 25px;
box-sizing: border-box;
}
rb {
contain: layout;
display: ruby-base;
font-family: ahem;
font-size: 20px;
font-family: Ahem;
font-size: 100px;
line-height: 1;
}
rb::before {
content: "X";
color: green;
}
rb::after {
content: "X";
color: white;
color: green;
position: absolute;
top:0; left: 0;
}
</style>
<p>This test passes if you can see a green box below.
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div><ruby><rb></rb></ruby></div>

View file

@ -5,28 +5,32 @@
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net">
<meta name=flags content="ahem">
<meta name=assert content="layout containment does not apply to ruby-base-container">
<link rel="match" href="reference/contain-layout-002-ref.html">
<link rel="match" href="../reference/ref-filled-green-100px-square.xht">
<link rel=help href="https://drafts.csswg.org/css-contain-1/#containment-layout">
<style>
div {
position: relative;
background: red;
width: 100px;
height: 100px;
padding: 25px;
box-sizing: border-box;
}
rbc {
contain: layout;
display: ruby-base-container;
font-family: ahem;
font-size: 20px;
font-family: Ahem;
font-size: 100px;
line-height: 1;
}
rbc::before {
content: "X";
color: green;
}
rbc::after {
content: "X";
color: white;
color: green;
position: absolute;
top:0; left: 0;
}
</style>
<p>This test passes if you can see a green box below.
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div><ruby><rbc></rbc></ruby></div>

View file

@ -5,28 +5,32 @@
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net">
<meta name=flags content="ahem">
<meta name=assert content="layout containment does not apply to ruby-text-container">
<link rel="match" href="reference/contain-layout-004-ref.html">
<link rel="match" href="../reference/ref-filled-green-100px-square.xht">
<link rel=help href="https://drafts.csswg.org/css-contain-1/#containment-layout">
<style>
div {
position: relative;
background: red;
width: 100px;
height: 100px;
padding: 25px;
box-sizing: border-box;
}
rtc {
contain: layout;
display: ruby-text-container;
font-family: ahem;
font-size: 20px;
font-family: Ahem;
font-size: 100px;
line-height: 1;
}
rtc::before {
content: "X";
color: green;
}
rtc::after {
content: "X";
color: white;
color: green;
position: absolute;
top:0; left: 0;
}
</style>
<p>This test passes if you can see a green box below.
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div><ruby><rtc></rtc></ruby></div>

View file

@ -5,28 +5,32 @@
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net">
<meta name=flags content="ahem">
<meta name=assert content="layout containment does not apply to ruby-text">
<link rel="match" href="reference/contain-layout-005-ref.html">
<link rel="match" href="../reference/ref-filled-green-100px-square.xht">
<link rel=help href="https://drafts.csswg.org/css-contain-1/#containment-layout">
<style>
div {
position: relative;
background: red;
width: 100px;
height: 100px;
padding: 25px;
box-sizing: border-box;
}
rt {
contain: layout;
display: ruby-text;
font-family: ahem;
font-size: 20px;
font-family: Ahem;
font-size: 100px;
line-height: 1;
}
rt::before {
content: "X";
color: green;
}
rt::after {
content: "X";
color: white;
color: green;
position: absolute;
top:0; left: 0;
}
</style>
<p>This test passes if you can see a green box below.
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div><ruby><rt></rt></ruby></div>

View file

@ -5,7 +5,7 @@
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net">
<meta name=flags content="">
<meta name=assert content="paint containment does not apply to non atomic inlines">
<link rel="match" href="reference/contain-size-001-ref.html">
<link rel="match" href="../reference/pass_if_pass_below.html">
<link rel=help href="https://drafts.csswg.org/css-contain-1/#containment-paint">
<style>
@ -19,5 +19,5 @@ span::after {
}
</style>
<p>This test passes if you can see the word PASS below.
<p>Test passes if there is the word "PASS" below.</p>
<div><span></span></div>

View file

@ -5,14 +5,14 @@
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net">
<meta name=flags content="">
<meta name=assert content="paint containment applies to the principal box, which is the table wrapper box for tables">
<link rel="match" href="reference/contain-size-001-ref.html">
<link rel="match" href="../reference/pass_if_pass_below.html">
<link rel=help href="https://drafts.csswg.org/css-contain-1/#containment-paint">
<style>
table { contain: paint; }
</style>
<p>This test passes if you can see the word PASS below.
<p>Test passes if there is the word "PASS" below.</p>
<table>
<caption>PASS</caption>
</table>

View file

@ -5,14 +5,14 @@
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net">
<meta name=flags content="">
<meta name=assert content="paint containment applies to the principal box, which for list items excludes the list marker">
<link rel="match" href="reference/contain-paint-004-ref.html">
<link rel="match" href="../reference/nothing.html">
<link rel=help href="https://drafts.csswg.org/css-contain-1/#containment-paint">
<style>
li { contain: paint; }
</style>
<p>This test passes if you can see no number below.
<p>There should be nothing below.</p>
<ol>
<li>
<li>

View file

@ -5,7 +5,7 @@
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net">
<meta name=flags content="">
<meta name=assert content="paint containment does not apply to ruby-base">
<link rel="match" href="reference/contain-size-001-ref.html">
<link rel="match" href="../reference/pass_if_pass_below.html">
<link rel=help href="https://drafts.csswg.org/css-contain-1/#containment-paint">
<style>
@ -20,5 +20,5 @@ rb::after {
}
</style>
<p>This test passes if you can see the word PASS below.
<p>Test passes if there is the word "PASS" below.</p>
<div><ruby><rb></rb></ruby></div>

View file

@ -5,7 +5,7 @@
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net">
<meta name=flags content="">
<meta name=assert content="paint containment does not apply to ruby-base-container">
<link rel="match" href="reference/contain-size-001-ref.html">
<link rel="match" href="../reference/pass_if_pass_below.html">
<link rel=help href="https://drafts.csswg.org/css-contain-1/#containment-paint">
<style>
@ -20,5 +20,5 @@ rbc::after {
}
</style>
<p>This test passes if you can see the word PASS below.
<p>Test passes if there is the word "PASS" below.</p>
<div><ruby><rbc></rbc></ruby></div>

View file

@ -3,7 +3,7 @@
<title>CSS Containment Test: Paint containment on table-cell</title>
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
<link rel="help" href="https://drafts.csswg.org/css-contain-1/#containment-paint">
<link rel="match" href="reference/contain-paint-014-ref.html">
<link rel="match" href="../reference/nothing.html">
<meta name=assert content="Paint containment does apply to table-cell elements.">
<style>
div {
@ -15,5 +15,5 @@ span {
}
</style>
<p>This test passes if you can NOT see the word FAIL below.</p>
<p>There should be nothing below.</p>
<div><span>FAIL</span></div>

View file

@ -3,7 +3,7 @@
<title>CSS Containment Test: Paint containment on table-row-group</title>
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
<link rel="help" href="https://drafts.csswg.org/css-contain-1/#containment-paint">
<link rel="match" href="reference/contain-size-001-ref.html">
<link rel="match" href="../reference/pass_if_pass_below.html">
<meta name=assert content="Paint containment doesn't apply to table-row-group elements.">
<style>
div {
@ -15,5 +15,5 @@ span {
}
</style>
<p>This test passes if you can see the word PASS below.</p>
<p>Test passes if there is the word "PASS" below.</p>
<div><span>PASS</span></div>

View file

@ -3,7 +3,7 @@
<title>CSS Containment Test: Paint containment on table-header-group</title>
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
<link rel="help" href="https://drafts.csswg.org/css-contain-1/#containment-paint">
<link rel="match" href="reference/contain-size-001-ref.html">
<link rel="match" href="../reference/pass_if_pass_below.html">
<meta name=assert content="Paint containment doesn't apply to table-header-group elements.">
<style>
div {
@ -15,5 +15,5 @@ span {
}
</style>
<p>This test passes if you can see the word PASS below.</p>
<p>Test passes if there is the word "PASS" below.</p>
<div><span>PASS</span></div>

View file

@ -3,7 +3,7 @@
<title>CSS Containment Test: Paint containment on table-footer-group</title>
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
<link rel="help" href="https://drafts.csswg.org/css-contain-1/#containment-paint">
<link rel="match" href="reference/contain-size-001-ref.html">
<link rel="match" href="../reference/pass_if_pass_below.html">
<meta name=assert content="Paint containment doesn't apply to table-footer-group elements.">
<style>
div {
@ -15,5 +15,5 @@ span {
}
</style>
<p>This test passes if you can see the word PASS below.</p>
<p>Test passes if there is the word "PASS" below.</p>
<div><span>PASS</span></div>

View file

@ -3,7 +3,7 @@
<title>CSS Containment Test: Paint containment on table-row</title>
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
<link rel="help" href="https://drafts.csswg.org/css-contain-1/#containment-paint">
<link rel="match" href="reference/contain-size-001-ref.html">
<link rel="match" href="../reference/pass_if_pass_below.html">
<meta name=assert content="Paint containment doesn't apply to table-row elements.">
<style>
div {
@ -15,5 +15,5 @@ span {
}
</style>
<p>This test passes if you can see the word PASS below.</p>
<p>Test passes if there is the word "PASS" below.</p>
<div><span>PASS</span></div>

View file

@ -3,7 +3,7 @@
<title>CSS Containment Test: Paint containment on table-caption</title>
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
<link rel="help" href="https://drafts.csswg.org/css-contain-1/#containment-paint">
<link rel="match" href="reference/contain-paint-014-ref.html">
<link rel="match" href="../reference/nothing.html">
<meta name=assert content="Paint containment does apply to table-caption elements.">
<style>
div {
@ -15,5 +15,5 @@ span {
}
</style>
<p>This test passes if you can NOT see the word FAIL below.</p>
<p>There should be nothing below.</p>
<div><span>FAIL</span></div>

View file

@ -5,7 +5,7 @@
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net">
<meta name=flags content="">
<meta name=assert content="size containment does not apply to non atomic inlines">
<link rel="match" href="reference/contain-size-001-ref.html">
<link rel="match" href="../reference/pass_if_pass_below.html">
<link rel=help href="https://drafts.csswg.org/css-contain-1/#containment-size">
<style>
@ -13,5 +13,5 @@ div { overflow: hidden; }
span { contain: size; }
</style>
<p>This test passes if you can see the word PASS below.
<p>Test passes if there is the word "PASS" below.</p>
<div><span>PASS</span></div>

View file

@ -5,7 +5,7 @@
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net">
<meta name=flags content="">
<meta name=assert content="size containment does not to apply ruby-base, which is an internatl ruby element">
<link rel="match" href="reference/contain-size-001-ref.html">
<link rel="match" href="../reference/pass_if_pass_below.html">
<link rel=help href="https://drafts.csswg.org/css-contain-1/#containment-size">
<link rel=help href="https://drafts.csswg.org/css-display-3/#internal-ruby-element">
@ -20,5 +20,5 @@ rb {
}
</style>
<p>This test passes if you can see the word PASS below.
<p>Test passes if there is the word "PASS" below.</p>
<div><ruby><rb>PASS</rb></ruby></div>

View file

@ -5,7 +5,7 @@
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net">
<meta name=flags content="">
<meta name=assert content="size containment does not to apply ruby-base-container, which is an internatl ruby element">
<link rel="match" href="reference/contain-size-001-ref.html">
<link rel="match" href="../reference/pass_if_pass_below.html">
<link rel=help href="https://drafts.csswg.org/css-contain-1/#containment-size">
<link rel=help href="https://drafts.csswg.org/css-display-3/#internal-ruby-element">
@ -20,5 +20,5 @@ rbc {
}
</style>
<p>This test passes if you can see the word PASS below.
<p>Test passes if there is the word "PASS" below.</p>
<div><ruby><rbc>PASS</rbc></ruby></div>

View file

@ -3,7 +3,7 @@
<title>CSS Containment Test: Size containment on table-cell</title>
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
<link rel="help" href="https://drafts.csswg.org/css-contain-1/#containment-size">
<link rel="match" href="reference/contain-size-001-ref.html">
<link rel="match" href="../reference/pass_if_pass_below.html">
<meta name=assert content="Size containment doesn't apply to table-cell elements.">
<style>
div {
@ -13,5 +13,5 @@ div {
}
</style>
<p>This test passes if you can see the word PASS below.</p>
<p>Test passes if there is the word "PASS" below.</p>
<div>PASS</div>

View file

@ -3,7 +3,7 @@
<title>CSS Containment Test: Size containment on table-row-group</title>
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
<link rel="help" href="https://drafts.csswg.org/css-contain-1/#containment-size">
<link rel="match" href="reference/contain-size-001-ref.html">
<link rel="match" href="../reference/pass_if_pass_below.html">
<meta name=assert content="Size containment doesn't apply to table-row-group elements.">
<style>
div {
@ -13,5 +13,5 @@ div {
}
</style>
<p>This test passes if you can see the word PASS below.</p>
<p>Test passes if there is the word "PASS" below.</p>
<div>PASS</div>

View file

@ -3,7 +3,7 @@
<title>CSS Containment Test: Size containment on table-header-group</title>
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
<link rel="help" href="https://drafts.csswg.org/css-contain-1/#containment-size">
<link rel="match" href="reference/contain-size-001-ref.html">
<link rel="match" href="../reference/pass_if_pass_below.html">
<meta name=assert content="Size containment doesn't apply to table-header-group elements.">
<style>
div {
@ -13,5 +13,5 @@ div {
}
</style>
<p>This test passes if you can see the word PASS below.</p>
<p>Test passes if there is the word "PASS" below.</p>
<div>PASS</div>

View file

@ -3,7 +3,7 @@
<title>CSS Containment Test: Size containment on table-footer-group</title>
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
<link rel="help" href="https://drafts.csswg.org/css-contain-1/#containment-size">
<link rel="match" href="reference/contain-size-001-ref.html">
<link rel="match" href="../reference/pass_if_pass_below.html">
<meta name=assert content="Size containment doesn't apply to table-footer-group elements.">
<style>
div {
@ -13,5 +13,5 @@ div {
}
</style>
<p>This test passes if you can see the word PASS below.</p>
<p>Test passes if there is the word "PASS" below.</p>
<div>PASS</div>

View file

@ -3,7 +3,7 @@
<title>CSS Containment Test: Size containment on table-row</title>
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
<link rel="help" href="https://drafts.csswg.org/css-contain-1/#containment-size">
<link rel="match" href="reference/contain-size-001-ref.html">
<link rel="match" href="../reference/pass_if_pass_below.html">
<meta name=assert content="Size containment doesn't apply to table-row elements.">
<style>
div {
@ -13,5 +13,5 @@ div {
}
</style>
<p>This test passes if you can see the word PASS below.</p>
<p>Test passes if there is the word "PASS" below.</p>
<div>PASS</div>

View file

@ -3,7 +3,7 @@
<title>CSS Containment Test: Size containment on table-caption</title>
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
<link rel="help" href="https://drafts.csswg.org/css-contain-1/#containment-size">
<link rel="match" href="reference/contain-paint-014-ref.html">
<link rel="match" href="../reference/nothing.html">
<meta name=assert content="Size containment does apply to table-caption elements.">
<style>
div {
@ -13,5 +13,5 @@ div {
}
</style>
<p>This test passes if you can NOT see the word FAIL below.</p>
<p>There should be nothing below.</p>
<div>FAIL</div>

View file

@ -3,7 +3,7 @@
<title>CSS Containment Test: Size containment on table</title>
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
<link rel="help" href="https://drafts.csswg.org/css-contain-1/#containment-size">
<link rel="match" href="reference/contain-size-001-ref.html">
<link rel="match" href="../reference/pass_if_pass_below.html">
<meta name=assert content="Size containment doesn't apply to table elements.">
<style>
div {
@ -13,5 +13,5 @@ div {
}
</style>
<p>This test passes if you can see the word PASS below.</p>
<p>Test passes if there is the word "PASS" below.</p>
<div>PASS</div>

View file

@ -1,27 +0,0 @@
<!doctype html>
<html lang=en>
<meta charset=utf-8>
<title>CSS-contain test referene</title>
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net">
<meta name=flags content="ahem">
<style>
rb {
font-family: ahem;
font-size: 20px;
line-height: 1;
}
rb::before {
content: "X";
color: green;
}
rb::after {
content: "X";
color: white;
position: absolute;
top:0; left: 0;
}
</style>
<p>This test passes if you can see a green box below.
<div><ruby><rb></rb></ruby></div>

View file

@ -1,28 +0,0 @@
<!doctype html>
<html lang=en>
<meta charset=utf-8>
<title>CSS-contain test reference</title>
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net">
<meta name=flags content="ahem">
<style>
rtc {
display: ruby-text-container;
font-family: ahem;
font-size: 20px;
line-height: 1;
}
rtc::before {
content: "X";
color: green;
}
rtc::after {
content: "X";
color: white;
position: absolute;
top:0; left: 0;
}
</style>
<p>This test passes if you can see a green box below.
<div><ruby><rtc></rtc></ruby></div>

View file

@ -1,28 +0,0 @@
<!doctype html>
<html lang=en>
<meta charset=utf-8>
<title>CSS-contain test reference</title>
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net">
<meta name=flags content="ahem">
<style>
rt {
display: ruby-text;
font-family: ahem;
font-size: 20px;
line-height: 1;
}
rt::before {
content: "X";
color: green;
}
rt::after {
content: "X";
color: white;
position: absolute;
top:0; left: 0;
}
</style>
<p>This test passes if you can see a green box below.
<div><ruby><rt></rt></ruby></div>

View file

@ -1,7 +0,0 @@
<!doctype html>
<html lang=en>
<meta charset=utf-8>
<title>CSS-contain test reference</title>
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net">
<p>This test passes if you can see no number below.

View file

@ -1,5 +0,0 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Containment Test: Reference file</title>
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
<p>This test passes if you can NOT see the word FAIL below.</p>

View file

@ -1,8 +0,0 @@
<!doctype html>
<html lang=en>
<meta charset=utf-8>
<title>CSS-contain test reference</title>
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net">
<p>This test passes if you can see the word PASS below.
<div>PASS</div>

View file

@ -0,0 +1,34 @@
<!doctype html>
<title>css-counter-styles IDL tests</title>
<link rel="help" href="https://drafts.csswg.org/css-counter-styles/">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/WebIDLParser.js"></script>
<script src="/resources/idlharness.js"></script>
<style>
@counter-style triangle {
system: cyclic;
symbols: ‣;
suffix: " ";
}
</style>
<script>
'use strict';
idl_test(
['css-counter-styles'],
['cssom'],
idl_array => {
try {
self.counter = document.styleSheets[0].rules[0];
} catch (e) {
// Will be surfaced when counter is undefined below.
}
idl_array.add_objects({
CSSCounterStyleRule: ['counter'],
});
},
'css-counter-styles interfaces'
);
</script>

View file

@ -8,22 +8,17 @@
<script>
'use strict';
promise_test(async () => {
const srcs = ['css-font-loading', 'dom', 'html', 'cssom'];
const [cssfontloading, dom, html, cssom] = await Promise.all(
srcs.map(i => fetch(`/interfaces/${i}.idl`).then(r => r.text())));
const idl_array = new IdlArray();
idl_array.add_idls(cssfontloading);
idl_array.add_dependency_idls(dom);
idl_array.add_dependency_idls(html);
idl_array.add_dependency_idls(cssom);
idl_test(
['css-font-loading'],
['dom', 'html', 'cssom'],
idl_array => {
idl_array.add_objects({
Document: ['document'],
FontFace: ['new FontFace("family", "src")'],
FontFaceSetLoadEvent: ['new FontFaceSetLoadEvent("type")'],
FontFaceSet: ['document.fonts'],
});
idl_array.test();
}, 'css-font-loading interfaces');
},
'css-font-loading interfaces'
);
</script>

View file

@ -0,0 +1,10 @@
<!doctype html>
<meta charset=utf8>
<title>Reference: Inside list marker and normal text render identically: armenian</title>
<style>
* {
margin: 0;
padding: 0;
}
</style>
<p>Ա. Filler Text

View file

@ -0,0 +1,18 @@
<!doctype html>
<title>Inside list marker and normal text render identically: armenian</title>
<link rel=help href="https://drafts.csswg.org/css-lists-3/#content-property">
<link rel=help href="https://bugs.chromium.org/p/chromium/issues/detail?id=787382">
<link rel=match href="marker-text-matches-armenian-ref.html">
<style>
* {
padding: 0;
margin: 0;
}
ol {
list-style: armenian inside;
}
</style>
<ol>
<li>Filler Text</li>
</ol>

View file

@ -0,0 +1,12 @@
<!doctype html>
<title>Reference: Inside list marker and normal text render identically: circle</title>
<style>
* {
margin: 0;
padding: 0;
}
p::before {
content: counter(test, circle);
}
</style>
<p> Filler Text

View file

@ -0,0 +1,18 @@
<!doctype html>
<title>Inside list marker and normal text render identically: circle</title>
<link rel=help href="https://drafts.csswg.org/css-lists-3/#content-property">
<link rel=help href="https://bugs.chromium.org/p/chromium/issues/detail?id=787382">
<link rel=match href="marker-text-matches-circle-ref.html">
<style>
* {
padding: 0;
margin: 0;
}
ol {
list-style: circle inside;
}
</style>
<ol>
<li>Filler Text</li>
</ol>

View file

@ -0,0 +1,9 @@
<!doctype html>
<title>Reference: Inside list marker and normal text render identically: decimal-leading-zero</title>
<style>
* {
margin: 0;
padding: 0;
}
</style>
<p>01. Filler Text

View file

@ -0,0 +1,18 @@
<!doctype html>
<title>Inside list marker and normal text render identically: decimal-leading-zero</title>
<link rel=help href="https://drafts.csswg.org/css-lists-3/#content-property">
<link rel=help href="https://bugs.chromium.org/p/chromium/issues/detail?id=787382">
<link rel=match href="marker-text-matches-decimal-leading-zero-ref.html">
<style>
* {
padding: 0;
margin: 0;
}
ol {
list-style: decimal-leading-zero inside;
}
</style>
<ol>
<li>Filler Text</li>
</ol>

View file

@ -0,0 +1,9 @@
<!doctype html>
<title>Reference: Inside list marker and normal text render identically: decimal</title>
<style>
* {
margin: 0;
padding: 0;
}
</style>
<p>1. Filler Text

View file

@ -0,0 +1,18 @@
<!doctype html>
<title>Inside list marker and normal text render identically: decimal</title>
<link rel=help href="https://drafts.csswg.org/css-lists-3/#content-property">
<link rel=help href="https://bugs.chromium.org/p/chromium/issues/detail?id=787382">
<link rel=match href="marker-text-matches-decimal-ref.html">
<style>
* {
padding: 0;
margin: 0;
}
ol {
list-style: decimal inside;
}
</style>
<ol>
<li>Filler Text</li>
</ol>

View file

@ -0,0 +1,12 @@
<!doctype html>
<title>Reference: Inside list marker and normal text render identically: disc</title>
<style>
* {
margin: 0;
padding: 0;
}
p::before {
content: counter(test, disc);
}
</style>
<p> Filler Text

View file

@ -0,0 +1,18 @@
<!doctype html>
<title>Inside list marker and normal text render identically: disc</title>
<link rel=help href="https://drafts.csswg.org/css-lists-3/#content-property">
<link rel=help href="https://bugs.chromium.org/p/chromium/issues/detail?id=787382">
<link rel=match href="marker-text-matches-disc-ref.html">
<style>
* {
padding: 0;
margin: 0;
}
ol {
list-style: disc inside;
}
</style>
<ol>
<li>Filler Text</li>
</ol>

View file

@ -0,0 +1,10 @@
<!doctype html>
<meta charset=utf8>
<title>Reference: Inside list marker and normal text render identically: georgian</title>
<style>
* {
margin: 0;
padding: 0;
}
</style>
<p>ა. Filler Text

View file

@ -0,0 +1,18 @@
<!doctype html>
<title>Inside list marker and normal text render identically: georgian</title>
<link rel=help href="https://drafts.csswg.org/css-lists-3/#content-property">
<link rel=help href="https://bugs.chromium.org/p/chromium/issues/detail?id=787382">
<link rel=match href="marker-text-matches-georgian-ref.html">
<style>
* {
padding: 0;
margin: 0;
}
ol {
list-style: georgian inside;
}
</style>
<ol>
<li>Filler Text</li>
</ol>

View file

@ -0,0 +1,10 @@
<!doctype html>
<meta charset=utf8>
<title>Reference: Inside list marker and normal text render identically: lower-greek</title>
<style>
* {
margin: 0;
padding: 0;
}
</style>
<p>α. Filler Text

View file

@ -0,0 +1,18 @@
<!doctype html>
<title>Inside list marker and normal text render identically: lower-greek</title>
<link rel=help href="https://drafts.csswg.org/css-lists-3/#content-property">
<link rel=help href="https://bugs.chromium.org/p/chromium/issues/detail?id=787382">
<link rel=match href="marker-text-matches-lower-greek-ref.html">
<style>
* {
padding: 0;
margin: 0;
}
ol {
list-style: lower-greek inside;
}
</style>
<ol>
<li>Filler Text</li>
</ol>

View file

@ -0,0 +1,9 @@
<!doctype html>
<title>Reference: Inside list marker and normal text render identically: lower-latin</title>
<style>
* {
margin: 0;
padding: 0;
}
</style>
<p>a. Filler Text

View file

@ -0,0 +1,18 @@
<!doctype html>
<title>Inside list marker and normal text render identically: lower-latin</title>
<link rel=help href="https://drafts.csswg.org/css-lists-3/#content-property">
<link rel=help href="https://bugs.chromium.org/p/chromium/issues/detail?id=787382">
<link rel=match href="marker-text-matches-lower-latin-ref.html">
<style>
* {
padding: 0;
margin: 0;
}
ol {
list-style: lower-latin inside;
}
</style>
<ol>
<li>Filler Text</li>
</ol>

View file

@ -0,0 +1,9 @@
<!doctype html>
<title>Reference: Inside list marker and normal text render identically: lower-roman</title>
<style>
* {
margin: 0;
padding: 0;
}
</style>
<p>i. Filler Text

View file

@ -0,0 +1,18 @@
<!doctype html>
<title>Inside list marker and normal text render identically: lower-roman</title>
<link rel=help href="https://drafts.csswg.org/css-lists-3/#content-property">
<link rel=help href="https://bugs.chromium.org/p/chromium/issues/detail?id=787382">
<link rel=match href="marker-text-matches-lower-roman-ref.html">
<style>
* {
padding: 0;
margin: 0;
}
ol {
list-style: lower-roman inside;
}
</style>
<ol>
<li>Filler Text</li>
</ol>

View file

@ -0,0 +1,12 @@
<!doctype html>
<title>Reference: Inside list marker and normal text render identically: square</title>
<style>
* {
margin: 0;
padding: 0;
}
p::before {
content: counter(test, square);
}
</style>
<p> Filler Text

View file

@ -0,0 +1,18 @@
<!doctype html>
<title>Inside list marker and normal text render identically: square</title>
<link rel=help href="https://drafts.csswg.org/css-lists-3/#content-property">
<link rel=help href="https://bugs.chromium.org/p/chromium/issues/detail?id=787382">
<link rel=match href="marker-text-matches-square-ref.html">
<style>
* {
padding: 0;
margin: 0;
}
ol {
list-style: square inside;
}
</style>
<ol>
<li>Filler Text</li>
</ol>

View file

@ -0,0 +1,9 @@
<!doctype html>
<title>Reference: Inside list marker and normal text render identically: upper-latin</title>
<style>
* {
margin: 0;
padding: 0;
}
</style>
<p>A. Filler Text

View file

@ -0,0 +1,18 @@
<!doctype html>
<title>Inside list marker and normal text render identically: upper-latin</title>
<link rel=help href="https://drafts.csswg.org/css-lists-3/#content-property">
<link rel=help href="https://bugs.chromium.org/p/chromium/issues/detail?id=787382">
<link rel=match href="marker-text-matches-upper-latin-ref.html">
<style>
* {
padding: 0;
margin: 0;
}
ol {
list-style: upper-latin inside;
}
</style>
<ol>
<li>Filler Text</li>
</ol>

View file

@ -0,0 +1,9 @@
<!doctype html>
<title>Reference: Inside list marker and normal text render identically: upper-roman</title>
<style>
* {
margin: 0;
padding: 0;
}
</style>
<p>I. Filler Text

View file

@ -0,0 +1,18 @@
<!doctype html>
<title>Inside list marker and normal text render identically: upper-roman</title>
<link rel=help href="https://drafts.csswg.org/css-lists-3/#content-property">
<link rel=help href="https://bugs.chromium.org/p/chromium/issues/detail?id=787382">
<link rel=match href="marker-text-matches-upper-roman-ref.html">
<style>
* {
padding: 0;
margin: 0;
}
ol {
list-style: upper-roman inside;
}
</style>
<ol>
<li>Filler Text</li>
</ol>

View file

@ -0,0 +1,16 @@
<!doctype html>
<title>Reference: Check that :marker inherits line-height</title>
<style>
div {
font: 128px/1 Ahem;
border: 2px solid blue;
background: orange;
color: black;
}
</style>
<p>There should be two black rectangles below with no space between them and
the border above/below.</p>
<div>
1. X
</div>

View file

@ -0,0 +1,29 @@
<!doctype html>
<title>Check that :marker inherits line-height</title>
<link rel=help href="https://drafts.csswg.org/css-pseudo-4/#tree-abiding">
<link rel=help href="https://drafts.csswg.org/css-pseudo-4/#marker-pseudo">
<link rel=help href="https://drafts.csswg.org/css-display-3/#list-items">
<link rel=help href="https://bugzilla.mozilla.org/show_bug.cgi?id=1415759">
<link rel=match href=marker-inherit-line-height-ref.html>
<style>
div {
font: 128px/1 Ahem;
border: 2px solid blue;
background: orange;
color: black;
}
ol {
margin: 0;
padding: 0;
list-style-position: inside;
list-style-type: decimal;
}
</style>
<p>There should be two black rectangles below with no space between them and
the border above/below.</p>
<div>
<ol>
<li>X
</ol>
</div>

View file

@ -0,0 +1,21 @@
<!doctype html>
<title>css-regions IDL tests</title>
<link rel="help" href="https://drafts.csswg.org/css-regions/">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/WebIDLParser.js"></script>
<script src="/resources/idlharness.js"></script>
<script>
'use strict';
idl_test(
['css-regions'],
['cssom', 'dom'],
idl_array => {
idl_array.add_objects({
Document: ['document'],
})
},
'css-regions interfaces'
);
</script>

View file

@ -1,36 +0,0 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text Test: overflow-wrap: break-word</title>
<link rel="author" title="Javier Fernandez Garcia-Boente" href="mailto:jfernandez@igalia.com">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-overflow-wrap-break-word">
<meta name="flags" content="ahem">
<link rel="match" href="reference/overflow-wrap-break-word-001-ref.html">
<meta name="assert" content="A Single leading white-space constitutes a soft breaking opportunity, honoring the 'white-space: pre-wrap' property, that must prevent the word to be broken.">
<style>
div {
position: relative;
font-size: 20px;
font-family: Ahem;
}
.red {
position: absolute;
background: green;
color: red;
width: 100px;
height: 100px;
z-index: -1;
}
.test {
color: green;
line-height: 1em;
width: 5ch;
white-space: pre-wrap;
overflow-wrap: break-word;
}
</style>
<body>
<p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
<div class="red"><br>XXXXX</div>
<div class="test"> XXXXX </div>
</body>

View file

@ -1,16 +0,0 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text Reference File</title>
<link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/">
<style>
div {
position: relative;
width: 100px;
height: 100px;
background: green;
}
</style>
<body>
<p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
<div></div>
</body>

View file

@ -1,37 +0,0 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text Test: overflow-wrap: break-word</title>
<link rel="author" title="Javier Fernandez Garcia-Boente" href="mailto:jfernandez@igalia.com">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-word-break-break-all">
<meta name="flags" content="ahem">
<link rel="match" href="reference/word-break-break-all-010-ref.html">
<meta name="assert" content="The word is broken even if pre-wrap provides a former breaking opportunity in leading white-space.">
<style>
div {
position: relative;
font-size: 20px;
font-family: Ahem;
}
.red {
position: absolute;
white-space: pre;
background: green;
color: red;
width: 100px;
height: 100px;
z-index: -1;
}
.test {
color: green;
line-height: 1em;
width: 5ch;
white-space: pre-wrap;
word-break: break-all;
}
</style>
<body>
<p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
<div class="red"> XXXX<br>X</div>
<div class="test"> XXXXX</div>
</body>

View file

@ -1,36 +0,0 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text Test: overflow-wrap: break-word</title>
<link rel="author" title="Javier Fernandez Garcia-Boente" href="mailto:jfernandez@igalia.com">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-word-break-break-all">
<meta name="flags" content="ahem">
<link rel="match" href="reference/word-break-break-all-010-ref.html">
<meta name="assert" content="A single leading white-space should account as soft breaking opportunity, honoring the 'white-space: pre-wrap', on top to the ones provided by 'word-break: break-all'.">
<style>
div {
position: relative;
font-size: 20px;
font-family: Ahem;
}
.red {
position: absolute;
background: green;
color: red;
width: 100px;
height: 100px;
z-index: -1;
}
.test {
color: green;
background: green;
line-height: 1em;
width: 1ch;
white-space: pre-wrap;
word-break: break-all;
}
</style>
<body>
<p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
<div class="red">X<br>X<br>X</div>
<div class="test"> XX</div>
</body>

View file

@ -2,13 +2,14 @@
// META: script=/resources/WebIDLParser.js
// META: script=/resources/idlharness.js
promise_test(async() => {
const text = await (await fetch('/interfaces/encoding.idl')).text();
const idl_array = new IdlArray();
idl_array.add_idls(text);
idl_test(
['encoding'],
[], // No deps
idl_array => {
idl_array.add_objects({
TextEncoder: ['new TextEncoder()'],
TextDecoder: ['new TextDecoder()']
});
idl_array.test();
}, 'Encoding Standard IDL');
},
'Encoding Standard IDL'
);

View file

@ -0,0 +1 @@
window.didExecuteExternalAsyncScript = true;

Some files were not shown because too many files have changed in this diff Show more