mirror of
https://github.com/servo/servo.git
synced 2025-08-23 14:25:33 +01:00
Update web-platform-tests to revision 3a8328470d53c4501e31cec2775c4d33821c2275
This commit is contained in:
parent
f92f0809f8
commit
40c0b971f1
32 changed files with 530 additions and 238 deletions
|
@ -0,0 +1,21 @@
|
|||
<!doctype html>
|
||||
<title>CSS Scoping Module Level 1 - Disabled stylesheet dynamically</title>
|
||||
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-scoping/#selectors-data-model">
|
||||
<link rel="match" href="reference/green-box.html"/>
|
||||
<p>Test passes if you see a single 100px by 100px green box below.</p>
|
||||
<div id="host"></div>
|
||||
<script>
|
||||
let root = host.attachShadow({ mode: 'open' });
|
||||
root.innerHTML = `
|
||||
<style>
|
||||
div { background: green; width: 100px; height: 100px; }
|
||||
</style>
|
||||
<style>
|
||||
div { background: red; }
|
||||
</style>
|
||||
<div></div>
|
||||
`;
|
||||
document.body.offsetTop;
|
||||
root.styleSheets[1].disabled = true;
|
||||
</script>
|
|
@ -1,6 +1,6 @@
|
|||
<!doctype html>
|
||||
<title>CSS Scoping Module Level 1 - Dynamic fallback content</title>
|
||||
<link rel="author" href="mailto:emilio@crisal.io">
|
||||
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-scoping/#selectors-data-model">
|
||||
<link rel="match" href="reference/green-box.html"/>
|
||||
<p>Test passes if you see a single 100px by 100px green box below.</p>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<!doctype html>
|
||||
<title>CSS Scoping Module Level 1 - Dynamic fallback content</title>
|
||||
<link rel="author" href="mailto:emilio@crisal.io">
|
||||
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-scoping/#selectors-data-model">
|
||||
<link rel="match" href="reference/green-box.html"/>
|
||||
<p>Test passes if you see a single 100px by 100px green box below.</p>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<!doctype html>
|
||||
<title>CSS Scoping Module Level 1 - Dynamic fallback content</title>
|
||||
<link rel="author" href="mailto:emilio@crisal.io">
|
||||
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-scoping/#selectors-data-model">
|
||||
<link rel="match" href="reference/green-box.html"/>
|
||||
<p>Test passes if you see a single 100px by 100px green box below.</p>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<!doctype html>
|
||||
<title>CSS Scoping Module Level 1 - Dynamic fallback content</title>
|
||||
<link rel="author" href="mailto:emilio@crisal.io">
|
||||
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-scoping/#selectors-data-model">
|
||||
<link rel="match" href="reference/green-box.html"/>
|
||||
<p>Test passes if you see a single 100px by 100px green box below.</p>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<!doctype html>
|
||||
<title>CSS Scoping Module Level 1 - Dynamic fallback content</title>
|
||||
<link rel="author" href="mailto:emilio@crisal.io">
|
||||
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-scoping/#selectors-data-model">
|
||||
<link rel="match" href="reference/green-box.html"/>
|
||||
<p>Test passes if you see a single 100px by 100px green box below.</p>
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
<!doctype html>
|
||||
<title>CSS Scoping Module Level 1 - Dynamic insertion of shadow host</title>
|
||||
<link rel="author" href="mailto:emilio@crisal.io">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-scoping/#selectors-data-model">
|
||||
<link rel="match" href="reference/green-box.html"/>
|
||||
<p>Test passes if you see a single 100px by 100px green box below.</p>
|
||||
<script>
|
||||
let host = document.createElement('div');
|
||||
let root = host.attachShadow({ mode: 'open' });
|
||||
root.innerHTML = `
|
||||
<style>
|
||||
div { background: green; width: 100px; height: 100px; }
|
||||
</style>
|
||||
<div></div>
|
||||
`;
|
||||
document.body.offsetTop;
|
||||
document.body.appendChild(host);
|
||||
</script>
|
|
@ -0,0 +1,29 @@
|
|||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<title>'pointer-events' property</title>
|
||||
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
|
||||
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
|
||||
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="../../resources/testhelper.js"></script>
|
||||
<script src="resources/testsuite.js"></script>
|
||||
<body>
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
'use strict';
|
||||
|
||||
runPropertyTests('pointer-events', [
|
||||
{ syntax: 'bounding-box' },
|
||||
{ syntax: 'visiblePainted' },
|
||||
{ syntax: 'visibleFill' },
|
||||
{ syntax: 'visibleStroke' },
|
||||
{ syntax: 'visible' },
|
||||
{ syntax: 'painted' },
|
||||
{ syntax: 'fill' },
|
||||
{ syntax: 'stroke' },
|
||||
{ syntax: 'all' },
|
||||
{ syntax: 'none' },
|
||||
]);
|
||||
|
||||
</script>
|
|
@ -352,7 +352,7 @@ function runPropertyTests(propertyName, testCases) {
|
|||
|
||||
// Retrieve test examples for this test case's syntax. If the syntax
|
||||
// looks like a keyword, then create an example on the fly.
|
||||
const syntaxExamples = testCase.syntax.match(/^[a-z\-]+$/) ?
|
||||
const syntaxExamples = testCase.syntax.toLowerCase().match(/^[a-z\-]+$/) ?
|
||||
createKeywordExample(testCase.syntax) :
|
||||
gTestSyntaxExamples[testCase.syntax];
|
||||
|
||||
|
|
|
@ -34,8 +34,6 @@ test_invalid_value("filter", "drop-shadow(10% 20%)");
|
|||
test_invalid_value("filter", "drop-shadow(1px)");
|
||||
test_invalid_value("filter", "drop-shadow(1px 2px 3px 4px)");
|
||||
test_invalid_value("filter", "drop-shadow(rgb(4, 5, 6))");
|
||||
// https://github.com/w3c/fxtf-drafts/issues/231
|
||||
test_invalid_value("filter", "drop-shadow(rgb(4, 5, 6) 1px 2px)"); // Fails in Blink/WebKit "drop-shadow(rgb(4, 5, 6) 1px 2px)" and Firefox "drop-shadow(1px 2px rgb(4, 5, 6))".
|
||||
test_invalid_value("filter", "drop-shadow()");
|
||||
|
||||
test_invalid_value("filter", "grayscale(-20)");
|
||||
|
|
|
@ -26,9 +26,10 @@ test_valid_value("filter", "contrast(300%)");
|
|||
test_valid_value("filter", "drop-shadow(1px 2px)");
|
||||
test_valid_value("filter", "drop-shadow(1px 2px 3px)");
|
||||
test_valid_value("filter", "drop-shadow(0 0 0)", "drop-shadow(0px 0px 0px)");
|
||||
// https://github.com/w3c/fxtf-drafts/issues/231
|
||||
test_valid_value("filter", "drop-shadow(1px 2px rgb(4, 5, 6))"); // Blink/WebKit serialize as "drop-shadow(rgb(4, 5, 6) 1px 2px)"
|
||||
test_valid_value("filter", "drop-shadow(1px 2px 3px rgba(4, 5, 6, 0.75))"); // Blink/WebKit serialize as "drop-shadow(rgba(4, 5, 6, 0.75) 1px 2px 3px)"
|
||||
// https://github.com/w3c/fxtf-drafts/issues/240
|
||||
test_valid_value("filter", "drop-shadow(rgb(4, 5, 6) 1px 2px)");
|
||||
test_valid_value("filter", "drop-shadow(1px 2px rgb(4, 5, 6))", "drop-shadow(rgb(4, 5, 6) 1px 2px)");
|
||||
test_valid_value("filter", "drop-shadow(rgba(4, 5, 6, 0.75) 1px 2px 3px)");
|
||||
|
||||
test_valid_value("filter", "grayscale(0)");
|
||||
test_valid_value("filter", "grayscale(300%)", "grayscale(100%)");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue