Update web-platform-tests to revision b'ee6da9d71d0268d7fdb04e8e5b26858f46ee0cc4'

This commit is contained in:
WPT Sync Bot 2022-01-20 04:38:55 +00:00 committed by cybai
parent 4401622eb1
commit b77ad115f6
16832 changed files with 270819 additions and 87621 deletions

View file

@ -1,31 +0,0 @@
<!doctype html>
<title>abspos button with auto width, non-auto left/right</title>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<link rel=help href=https://html.spec.whatwg.org/multipage/rendering.html#button-layout>
<!--
If the element is absolutely positioned, then for the purpose of the CSS visual formatting model, act as if the element is a replaced element. [CSS]
-->
<link rel=help href=https://drafts.csswg.org/css2/visudet.html#abs-replaced-width>
<!--
If at this point the values are over-constrained, ignore the value for either 'left' (in case the 'direction' property of the containing block is 'rtl') or 'right' (in case 'direction' is 'ltr') and solve for that value.
-->
<style>
#overconstrained { position: absolute; left: 100px; right: 100px; }
#ltr { position: absolute; left: 100px; margin-top: 2em }
#rtl { position: absolute; right: 100px; margin-top: 2em }
</style>
<button id=overconstrained>test</button>
<button id=ltr>test</button>
<button id=rtl>test</button>
<script>
for (const dir of ['rtl', 'ltr']) {
test(() => {
document.documentElement.dir = dir;
const overconstrained = document.getElementById('overconstrained');
const ref = document.getElementById(dir);
assert_equals(overconstrained.offsetLeft, ref.offsetLeft, 'offsetLeft');
assert_equals(overconstrained.clientWidth, ref.clientWidth, 'clientWidth');
}, `${document.title} (${dir})`);
}
</script>

View file

@ -0,0 +1,2 @@
<!doctype html>
<input type=checkbox disabled>

View file

@ -0,0 +1,5 @@
<!doctype html>
<title>checkbox with disabled and checked attributes renders differently than unchecked</title>
<link rel=help href="https://bugzilla.mozilla.org/show_bug.cgi?id=1735077">
<link rel=mismatch href="input-checkbox-disabled-checked-notref.html">
<input type=checkbox disabled checked>

View file

@ -0,0 +1,2 @@
<!doctype html>
<input type=radio disabled>

View file

@ -0,0 +1,5 @@
<!doctype html>
<title>radio with disabled and checked attributes renders differently than unchecked</title>
<link rel=help href="https://bugzilla.mozilla.org/show_bug.cgi?id=1735077">
<link rel=mismatch href="input-radio-disabled-checked-notref.html">
<input type=radio disabled checked>

View file

@ -1,6 +1,6 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>Input type=image with CSS content.</title>
<title>Stylability of select>option with :checked pseudo</title>
<link rel="author" href="mailto:masonf@chromium.org">
<style>

View file

@ -1,6 +1,6 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>Input type=image with CSS content.</title>
<title>Stylability of select>option with :checked pseudo</title>
<link rel="author" href="mailto:masonf@chromium.org">
<link rel="help" href="https://html.spec.whatwg.org/multipage/form-elements.html#the-select-element">
<link rel="match" href="option-checked-styling-ref.html">

View file

@ -0,0 +1,15 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>Select rendering invalidation</title>
<link rel="author" href="mailto:masonf@chromium.org">
<style>
select {
color: lime;
}
</style>
<select id=select>
<option>The down arrow should be green</option>
<option>value B</option>
</select>

View file

@ -0,0 +1,31 @@
<!DOCTYPE html>
<html class="reftest-wait">
<meta charset="utf-8">
<title>Select rendering invalidation</title>
<link rel="author" href="mailto:masonf@chromium.org">
<link rel="help" href="https://html.spec.whatwg.org/multipage/form-elements.html#the-select-element">
<link rel="match" href="select-invalidation-ref.html">
<style>
select {
color: red;
}
</style>
<select id=select>
<option>The down arrow should be green</option>
<option>value B</option>
</select>
<script>
requestAnimationFrame(() => {
requestAnimationFrame(() => {
select.style.color = "lime";
requestAnimationFrame(() => {
requestAnimationFrame(() => {
document.documentElement.classList.remove("reftest-wait");
});
});
});
});
</script>