Update web-platform-tests to revision 1d8a9889466f2ec219a879323c63cae86ef50bc1

This commit is contained in:
WPT Sync Bot 2020-05-23 08:20:17 +00:00
parent 49d0055959
commit 8bfe9992ce
63 changed files with 998 additions and 92 deletions

View file

@ -1,4 +0,0 @@
[hit-test-floats-002.html]
[Hit test float]
expected: FAIL

View file

@ -1,4 +0,0 @@
[hit-test-floats-003.html]
[Miss float below something else]
expected: FAIL

View file

@ -1,4 +0,0 @@
[hit-test-floats-004.html]
[Miss float below something else]
expected: FAIL

View file

@ -2,3 +2,6 @@
[listeners are called when <iframe> is resized]
expected: FAIL
[listeners are called correct number of times]
expected: FAIL

View file

@ -0,0 +1,4 @@
[elementFromPoint-001.html]
[CSSOM View - 5 - extensions to the Document interface]
expected: FAIL

View file

@ -0,0 +1,28 @@
[is-where-parsing.html]
[Nested :is]
expected: FAIL
[Pseudo-elements after]
expected: FAIL
[Nested :where]
expected: FAIL
[Pseudo-classes after]
expected: FAIL
[Multiple selectors with combinators]
expected: FAIL
[Combinators after]
expected: FAIL
[Nested inside :host, without combinators]
expected: FAIL
[Pseudo-classes inside]
expected: FAIL
[After part with simple pseudo-class]
expected: FAIL

View file

@ -318,15 +318,24 @@
[<iframe>: separate response Content-Type: text/html;" \\" text/plain]
expected: FAIL
[<iframe>: combined response Content-Type: text/html;" text/plain]
expected: FAIL
[<iframe>: separate response Content-Type: text/html;" text/plain]
expected: FAIL
[<iframe>: separate response Content-Type: text/plain */*]
expected: FAIL
[<iframe>: combined response Content-Type: text/html;" \\" text/plain]
[<iframe>: combined response Content-Type: */* text/html]
expected: FAIL
[<iframe>: combined response Content-Type: text/html;charset=gbk text/plain text/html]
expected: FAIL
[<iframe>: combined response Content-Type: text/html */*]
expected: FAIL
[<iframe>: combined response Content-Type: text/html */*;charset=gbk]
expected: FAIL
[<iframe>: combined response Content-Type: text/html;x=" text/plain]
expected: FAIL
[<iframe>: separate response Content-Type: text/plain */*;charset=gbk]
expected: FAIL

View file

@ -62,3 +62,6 @@
[separate text/javascript;charset=windows-1252 text/javascript]
expected: FAIL
[separate text/javascript error]
expected: FAIL

View file

@ -11,3 +11,6 @@
[X-Content-Type-Options%3A%20nosniff%2C%2C%40%23%24%23%25%25%26%5E%26%5E*()()11!]
expected: FAIL
[X-Content-Type-Options%3A%20%2Cnosniff]
expected: FAIL

View file

@ -1,4 +0,0 @@
[traverse_the_history_1.html]
[Multiple history traversals from the same task]
expected: FAIL

View file

@ -0,0 +1,4 @@
[traverse_the_history_4.html]
[Multiple history traversals, last would be aborted]
expected: FAIL

View file

@ -1,20 +1,16 @@
[supported-elements.html]
expected: TIMEOUT
[Contenteditable element should support autofocus]
expected: FAIL
[Host element with delegatesFocus including no focusable descendants should be skipped]
expected: NOTRUN
expected: FAIL
[Element with tabindex should support autofocus]
expected: TIMEOUT
expected: FAIL
[Area element should support autofocus]
expected: NOTRUN
expected: FAIL
[Host element with delegatesFocus should support autofocus]
expected: NOTRUN
[Non-HTMLElement should not support autofocus]
expected: NOTRUN
expected: FAIL

View file

@ -1,5 +1,5 @@
[iframe_sandbox_popups_escaping-1.html]
expected: CRASH
expected: TIMEOUT
[Check that popups from a sandboxed iframe escape the sandbox if\n allow-popups-to-escape-sandbox is used]
expected: TIMEOUT

View file

@ -1,5 +1,5 @@
[iframe_sandbox_popups_escaping-3.html]
expected: TIMEOUT
expected: CRASH
[Check that popups from a sandboxed iframe escape the sandbox if\n allow-popups-to-escape-sandbox is used]
expected: TIMEOUT

View file

@ -1,5 +1,5 @@
[iframe_sandbox_popups_nonescaping-2.html]
expected: CRASH
expected: TIMEOUT
[Check that popups from a sandboxed iframe do not escape the sandbox]
expected: FAIL
expected: NOTRUN

View file

@ -1,4 +1,5 @@
[iframe_sandbox_popups_nonescaping-3.html]
expected: TIMEOUT
[Check that popups from a sandboxed iframe do not escape the sandbox]
expected: FAIL
expected: NOTRUN

View file

@ -1,8 +1,13 @@
[htmlanchorelement_noopener.html]
expected: TIMEOUT
[Check that targeting of rel=noopener with a given name reuses an existing window with that name]
expected: FAIL
[Check that rel=noopener with target=_parent does a normal load]
expected: NOTRUN
expected: FAIL
[Check that rel=noopener with target=_top does a normal load]
expected: FAIL
[Check that rel=noopener with target=_self does a normal load]
expected: FAIL

View file

@ -1,10 +1,9 @@
[promise-job-entry.html]
expected: TIMEOUT
[Fulfillment handler on fulfilled promise]
expected: FAIL
[Rejection handler on pending-then-rejected promise]
expected: TIMEOUT
expected: FAIL
[Sanity check: this all works as expected with no promises involved]
expected: FAIL
@ -16,5 +15,5 @@
expected: FAIL
[Fulfillment handler on pending-then-fulfilled promise]
expected: TIMEOUT
expected: FAIL

View file

@ -1,4 +1,5 @@
[realtimeanalyser-fft-scaling.html]
expected: TIMEOUT
[X 2048-point FFT peak position is not equal to 64. Got 0.]
expected: FAIL

View file

@ -0,0 +1,5 @@
[017.html]
expected: TIMEOUT
[origin of the script that invoked the method, about:blank]
expected: TIMEOUT

View file

@ -0,0 +1,5 @@
[017.html]
expected: TIMEOUT
[origin of the script that invoked the method, about:blank]
expected: TIMEOUT

View file

@ -159548,6 +159548,32 @@
{}
]
],
"first-letter-opacity-001-ref.html": [
"37e4dd5a2c9127d9cdbbb4ceb490033a9a8e6f0e",
[
null,
[
[
"/css/css-pseudo/first-letter-opacity-001-not-ref.html",
"!="
]
],
{}
]
],
"first-letter-opacity-001.html": [
"0a867e541aebf2032136930f30f5596759dd65e7",
[
null,
[
[
"/css/css-pseudo/first-letter-opacity-001-ref.html",
"=="
]
],
{}
]
],
"first-letter-opacity-float-001.html": [
"fb939fa0cb0adcadf1960291124c2e06d8949afc",
[
@ -159665,6 +159691,32 @@
{}
]
],
"first-line-opacity-001-ref.html": [
"b4f4ddc185fc5e958f1934a0a1e948eee29e8057",
[
null,
[
[
"/css/css-pseudo/first-line-opacity-001-not-ref.html",
"!="
]
],
{}
]
],
"first-line-opacity-001.html": [
"83f90824b8ab42976a826fcc7567a9f7f52e4379",
[
null,
[
[
"/css/css-pseudo/first-line-opacity-001-ref.html",
"=="
]
],
{}
]
],
"first-line-with-before-after.html": [
"f91a22a4a7d65366dbd7dda3934c82c9b5776977",
[
@ -300534,6 +300586,10 @@
"f63dd580aa8414c945a8fd2c99ccc6dca0e7a24d",
[]
],
"first-letter-opacity-001-not-ref.html": [
"d1844499baa4214445909b10cd758ebf0f7fe0ba",
[]
],
"first-letter-opacity-float-001-ref.html": [
"38c230045bd0cbec0d94da16b27fd56aa58456a1",
[]
@ -300566,6 +300622,10 @@
"7193bf25eb88c5443457480f7ce27782acd9473a",
[]
],
"first-line-opacity-001-not-ref.html": [
"d020842a24b227d234f440732287ed6566954d89",
[]
],
"first-line-with-before-after-ref.html": [
"fcee7995052717c0509c58a76fa1f420434ceb43",
[]
@ -302138,6 +302198,18 @@
"18163de30320bd1f0f1a7248cd4c2f2d2897d0c5",
[]
],
"tentative": {
"support": {
"README": [
"67e87ca8916c94045f6d55238d387d5571fd694a",
[]
],
"table-tentative.css": [
"255ec02587a42535445fa05956da3c6dde692411",
[]
]
}
},
"toggle-row-display-property-001-ref.html": [
"a99f69eb4498ae55312122d51ea518327cdf9e12",
[]
@ -343801,7 +343873,7 @@
[]
],
"lint.py": [
"c56720d9a3f712b184ce1491fa8cb85a3746197a",
"fc1a816f8abf85efce31a3a8e614ba591b600954",
[]
],
"rules.py": [
@ -344002,7 +344074,7 @@
}
},
"test_file_lints.py": [
"b06104db694d1809e012535aac682ba064563aca",
"7dacfad6380dc8b668a22dc7c4fe2e74d375469f",
[]
],
"test_lint.py": [
@ -344055,7 +344127,7 @@
[]
],
"sourcefile.py": [
"b324bf22dd382515220d3a78d9f2710430030aee",
"299ad212f7680e7517505667c6e09bd60ed0b7c4",
[]
],
"testpaths.py": [
@ -344080,7 +344152,7 @@
[]
],
"test_sourcefile.py": [
"4d2080a70283be308898536708993c0843cfcebb",
"8b0fb944ea5674a7d21b8ddaac8908564d4441bb",
[]
],
"test_utils.py": [
@ -344101,7 +344173,7 @@
[]
],
"vcs.py": [
"05afdf39b227dfc0dff1dfce44f36c7b252a33c7",
"7c0feeb816479975275b1a1c4d84f1215fac1406",
[]
]
},
@ -344166,7 +344238,7 @@
]
},
"requirements_flake8.txt": [
"3be95a40de7847a8328d0401a88353c62fe05a4d",
"ae16be3955fbf3d5fa9648967c6c8d397519013d",
[]
],
"requirements_mypy.txt": [
@ -394276,6 +394348,22 @@
{}
]
],
"tentative": {
"caption.html": [
"0d09dafb4a36335c9f28c6187e4cab23434a49a0",
[
null,
{}
]
],
"column-widths.html": [
"52cb5b6fb0502cd63e2404168cfd413d86d60b6e",
[
null,
{}
]
]
},
"visibility-collapse-col-001.html": [
"15368aceec3efa09fd1cf4fe30fb32c5932ec5c3",
[
@ -404896,6 +404984,13 @@
{}
]
],
"is-where-parsing.html": [
"0f064bab73c4a46bd6c11aa456cf0bfd94cdaae8",
[
null,
{}
]
],
"missing-right-token.html": [
"8fe33a95795354117177f78eae7f1081ef0b1947",
[
@ -468076,6 +468171,13 @@
{}
]
],
"displaystyle-3.html": [
"544590cf9e10c623739e2c5a49cd60f5a3ed7477",
[
null,
{}
]
],
"ignored-properties-001.html": [
"e3e38067d877837f92f3dde8c37a3ceca233bd9d",
[

View file

@ -1,4 +0,0 @@
[hit-test-floats-002.html]
[Hit test float]
expected: FAIL

View file

@ -1,4 +0,0 @@
[hit-test-floats-003.html]
[Miss float below something else]
expected: FAIL

View file

@ -1,4 +0,0 @@
[hit-test-floats-004.html]
[Miss float below something else]
expected: FAIL

View file

@ -2,3 +2,6 @@
[listeners are called when <iframe> is resized]
expected: FAIL
[listeners are called correct number of times]
expected: FAIL

View file

@ -0,0 +1,4 @@
[elementFromPoint-001.html]
[CSSOM View - 5 - extensions to the Document interface]
expected: FAIL

View file

@ -0,0 +1,28 @@
[is-where-parsing.html]
[Nested :is]
expected: FAIL
[Pseudo-elements after]
expected: FAIL
[Nested :where]
expected: FAIL
[Pseudo-classes after]
expected: FAIL
[Multiple selectors with combinators]
expected: FAIL
[Combinators after]
expected: FAIL
[Nested inside :host, without combinators]
expected: FAIL
[Pseudo-classes inside]
expected: FAIL
[After part with simple pseudo-class]
expected: FAIL

View file

@ -318,15 +318,24 @@
[<iframe>: separate response Content-Type: text/html;" \\" text/plain]
expected: FAIL
[<iframe>: combined response Content-Type: text/html;" text/plain]
expected: FAIL
[<iframe>: separate response Content-Type: text/html;" text/plain]
expected: FAIL
[<iframe>: separate response Content-Type: text/plain */*]
expected: FAIL
[<iframe>: combined response Content-Type: text/html;" \\" text/plain]
[<iframe>: combined response Content-Type: */* text/html]
expected: FAIL
[<iframe>: combined response Content-Type: text/html;charset=gbk text/plain text/html]
expected: FAIL
[<iframe>: combined response Content-Type: text/html */*]
expected: FAIL
[<iframe>: combined response Content-Type: text/html */*;charset=gbk]
expected: FAIL
[<iframe>: combined response Content-Type: text/html;x=" text/plain]
expected: FAIL
[<iframe>: separate response Content-Type: text/plain */*;charset=gbk]
expected: FAIL

View file

@ -62,3 +62,6 @@
[separate text/javascript;charset=windows-1252 text/javascript]
expected: FAIL
[separate text/javascript error]
expected: FAIL

View file

@ -11,3 +11,6 @@
[X-Content-Type-Options%3A%20nosniff%2C%2C%40%23%24%23%25%25%26%5E%26%5E*()()11!]
expected: FAIL
[X-Content-Type-Options%3A%20%2Cnosniff]
expected: FAIL

View file

@ -1,4 +0,0 @@
[traverse_the_history_1.html]
[Multiple history traversals from the same task]
expected: FAIL

View file

@ -0,0 +1,4 @@
[traverse_the_history_4.html]
[Multiple history traversals, last would be aborted]
expected: FAIL

View file

@ -1,20 +1,16 @@
[supported-elements.html]
expected: TIMEOUT
[Contenteditable element should support autofocus]
expected: FAIL
[Element with tabindex should support autofocus]
expected: TIMEOUT
expected: FAIL
[Host element with delegatesFocus including no focusable descendants should be skipped]
expected: NOTRUN
expected: FAIL
[Area element should support autofocus]
expected: NOTRUN
expected: FAIL
[Host element with delegatesFocus should support autofocus]
expected: NOTRUN
[Non-HTMLElement should not support autofocus]
expected: NOTRUN
expected: FAIL

View file

@ -1,6 +1,6 @@
[iframe_sandbox_popups_escaping-1.html]
type: testharness
expected: CRASH
expected: TIMEOUT
[Check that popups from a sandboxed iframe escape the sandbox if\n allow-popups-to-escape-sandbox is used]
expected: TIMEOUT

View file

@ -1,6 +1,6 @@
[iframe_sandbox_popups_escaping-3.html]
type: testharness
expected: TIMEOUT
expected: CRASH
[Check that popups from a sandboxed iframe escape the sandbox if\n allow-popups-to-escape-sandbox is used]
expected: TIMEOUT

View file

@ -1,6 +1,6 @@
[iframe_sandbox_popups_nonescaping-2.html]
type: testharness
expected: CRASH
expected: TIMEOUT
[Check that popups from a sandboxed iframe do not escape the sandbox]
expected: FAIL
expected: NOTRUN

View file

@ -1,5 +1,6 @@
[iframe_sandbox_popups_nonescaping-3.html]
type: testharness
expected: TIMEOUT
[Check that popups from a sandboxed iframe do not escape the sandbox]
expected: FAIL
expected: NOTRUN

View file

@ -1,12 +1,17 @@
[htmlanchorelement_noopener.html]
type: testharness
expected: TIMEOUT
[Check that targeting of rel=noopener with a given name ignores an existing window with that name]
expected: NOTRUN
[Check that rel=noopener with target=_parent does a normal load]
expected: NOTRUN
expected: FAIL
[Check that targeting of rel=noopener with a given name reuses an existing window with that name]
expected: FAIL
[Check that rel=noopener with target=_top does a normal load]
expected: FAIL
[Check that rel=noopener with target=_self does a normal load]
expected: FAIL

View file

@ -1,10 +1,9 @@
[promise-job-entry.html]
expected: TIMEOUT
[Fulfillment handler on fulfilled promise]
expected: FAIL
[Rejection handler on pending-then-rejected promise]
expected: TIMEOUT
expected: FAIL
[Sanity check: this all works as expected with no promises involved]
expected: FAIL
@ -16,5 +15,5 @@
expected: FAIL
[Fulfillment handler on pending-then-fulfilled promise]
expected: TIMEOUT
expected: FAIL

View file

@ -1,4 +1,5 @@
[realtimeanalyser-fft-scaling.html]
expected: TIMEOUT
[X 2048-point FFT peak position is not equal to 64. Got 0.]
expected: FAIL

View file

@ -0,0 +1,5 @@
[017.html]
expected: TIMEOUT
[origin of the script that invoked the method, about:blank]
expected: TIMEOUT

View file

@ -0,0 +1,5 @@
[017.html]
expected: TIMEOUT
[origin of the script that invoked the method, about:blank]
expected: TIMEOUT

View file

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<title>Reference mismatch: ::first-letter supports opacity.</title>
<link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1639664">
</head>
<body>
<p>First</p>
</body>
</html>

View file

@ -0,0 +1,16 @@
<!DOCTYPE html>
<html>
<head>
<title>Reference: ::first-letter supports opacity.</title>
<link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1639664">
<link rel="mismatch" href="first-letter-opacity-001-not-ref.html">
<style>
fl {
opacity: 0;
}
</style>
</head>
<body>
<p><fl>F</fl>irst</p>
</body>
</html>

View file

@ -0,0 +1,17 @@
<!DOCTYPE html>
<html>
<head>
<title>CSS Test: ::first-letter supports opacity.</title>
<link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1639664">
<link rel="match" href="first-letter-opacity-001-ref.html">
<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#first-letter-styling">
<style>
p::first-letter {
opacity: 0;
}
</style>
</head>
<body>
<p>First</p>
</body>
</html>

View file

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<title>Reference mismatch: ::first-line supports opacity.</title>
<link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1639664">
</head>
<body>
<p>First<br>Second</p>
</body>
</html>

View file

@ -0,0 +1,16 @@
<!DOCTYPE html>
<html>
<head>
<title>Reference: ::first-line supports opacity.</title>
<link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1639664">
<link rel="mismatch" href="first-line-opacity-001-not-ref.html">
<style>
fl {
opacity: 0;
}
</style>
</head>
<body>
<p><fl>First</fl><br>Second</p>
</body>
</html>

View file

@ -0,0 +1,17 @@
<!DOCTYPE html>
<html>
<head>
<title>CSS Test: ::first-line supports opacity.</title>
<link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1639664">
<link rel="match" href="first-line-opacity-001-ref.html">
<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#first-line-styling">
<style>
p::first-line {
opacity: 0;
}
</style>
</head>
<body>
<p>First<br>Second</p>
</body>
</html>

View file

@ -0,0 +1,131 @@
<!doctype html>
<script src='/resources/testharness.js'></script>
<script src='/resources/testharnessreport.js'></script>
<script src="/resources/check-layout-th.js"></script>
<title>caption</title>
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="./support/table-tentative.css">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<link rel="author" title="Aleks Totic" href="atotic@chromium.org" />
<link rel="help" href="https://html.spec.whatwg.org/multipage/tables.html#the-caption-element"/>
<link rel="help" href="https://www.w3.org/TR/css-tables-3/#bounding-box-assignment" />
<style>
main table {
border-spacing: 0 0;
position:relative;
background: gray;
}
main td {
background: #BFB;
}
main caption {
background: yellow;
}
main caption > div {
display: inline-block;
background: rgba(0,0,0,0.1);
}
main caption > div:after {
content: "c";
}
.lh {
line-height:30px;
}
</style>
<h1>Caption sizing and positioning</h1>
<p class="error">There is a fundamental disagreement between Chrome Legacy and Firefox on caption size influence on table width. Chrome uses caption min width as lower limit of table's grid box, FF does not. Firefox also does not support multiple captions.</p>
<main>
<h2>Caption width limits</h2>
<p class="testdesc">Caption minmax and grid width
caption.min is lower limit of grid min.</p>
<table>
<caption data-expected-width=50><div style="width:50px"></div><div style="width:30px"></caption>
<td data-expected-width=50>auto</td>
</table>
<p class="testdesc">Caption.min vs caption.css_width
Caption.css_width is upper limit of caption.min
Caption.css_width is lower limit of caption.min
</p>
<table>
<caption style="width:100px" data-expected-width=100><div style="width:200px"></div></caption>
<td data-expected-width=100>auto</td>
</table>
<table>
<caption style="width:300px" data-expected-width=300><div style="width:200px"></div></caption>
<td data-expected-width=300>auto</td>
</table>
<p class="testdesc">Caption width:50%
Percent width is resolved wrt to table width.</p>
<table style="width:200px">
<caption style="width:50%" data-expected-width=100><div></div></caption>
<td data-expected-width=200>auto</td>
</table>
<table style="width:200px">
<caption style="width:50%" data-expected-width=100><div style="width:200px"></div></caption>
<td data-expected-width=200>auto</td>
</table>
<p class="testdesc">Caption height:80%
github spec <a href="https://github.com/w3c/csswg-drafts/issues/4676">issue</a>.
TablesNG will not resolve percentage heights per spec. FF agrees.
</p>
<table style="width:200px;height:100px">
<caption style="height:80%" data-expected-height=30><div style="height:30px"></div></caption>
<td data-expected-width=200>auto</td>
</table>
<p class="testdesc">Multiple captions
Do we allow multiple captions? There are 4 in this test.</p>
<table>
<caption class="lh" data-offset-y=0>over1</caption>
<caption class="lh" data-offset-y=30>over2</caption>
<caption class="lh" style="caption-side:bottom" data-offset-y=90>under1</caption>
<caption class="lh" style="caption-side:bottom" data-offset-y=120>under2</caption>
<td class="lh" data-offset-y=60>2 above me, 2 below me?</td>
</table>
<p class="testdesc">Caption margins
Margins between captions do not collapse</p>
<table style="width:200px">
<caption class="lh" style="margin:20px;" data-offset-y=20 data-offset-x=20>20px margins</caption>
<td data-expected-width=200 data-offset-y=70>1 caption</td>
</table>
<table style="width:200px">
<caption class="lh" style="margin:20px;" data-offset-y=20 data-offset-x=20>20px margins</caption>
<caption class="lh" style="margin:20px;" data-offset-y=90 data-offset-x=20>20px margins</caption>
<td data-expected-width=200 data-offset-y=140>2 captions</td>
</table>
<p class="testdesc">Caption margins auto
auto margins center captions that are less wide than the table.
</p>
<table style="width:200px">
<caption class="lh" style="margin:auto" data-offset-x=0><div style="width:100px">auto margins</div></caption>
<td data-expected-width=200>1 caption</td>
</table>
<table style="width:200px">
<caption class="lh" style="margin:auto;width:50%" data-offset-x=50><div style="width:100px">auto margins</div></caption>
<td data-expected-width=200>1 caption</td>
</table>
<p class="testdesc">Vertical writing mode caption
</p>
<table>
<caption style="writing-mode:vertical-rl;height:min-content;font:10px Ahem;color:rgba(0,0,0,0.3)" data-expected-height=100 ><div style="height:100px;">vertical</div> caption bigger than table</caption>
<tbody data-offset-y=100>
<td>vertical!</td>
</tbody>
</table>
</main>
<script>
checkLayout("table");
</script>

View file

@ -0,0 +1,284 @@
<!doctype html>
<title>Column widths</title>
<script src='/resources/testharness.js'></script>
<script src='/resources/testharnessreport.js'></script>
<script src="/resources/check-layout-th.js"></script>
<link rel="stylesheet" type="text/css" href="./support/table-tentative.css">
<link rel="author" title="Aleks Totic" href="atotic@chromium.org" />
<link rel="help" href="https://www.w3.org/TR/css-tables-3/#distributing-width-to-columns" />
<style>
main table {
background: gray;
border-spacing: 8px 8px;
table-layout: auto;
margin-top: 4px;
}
main td {
background: #BFB;
font-size: 10px;
}
main td > div {
display: inline-block;
background: rgba(56,162,56,0.3);
}
</style>
<main>
<h1>Col width</h1>
<p>how does col width interact with td widths to produce final column width?</p>
<p>Inputs are colgroup/col widths, and td widths.
<p>td widths merge, then merge again with col to produce column widths.
<p>Output is column min/max/percent w0dths.
<p>Colgroup/col has css min_width, css max_width, css percent.</p>
<p>TD has intrinsic minmax, css width, css percent width, css max width, css min width</p>
<h2>Initial cell assignment</h2>
<p class="testdesc">Unconstrained single TD, table-layout:auto
td.min = minmax.min
td.max = minmax.max</p>
<table style="width:1px" data-expected-width=266>
<tr>
<td><div style="width:50px">min</div><div style="width:250px">min</div></td>
</tr>
</table>
<table data-expected-width=316>
<tr>
<td><div style="width:50px">max</div><div style="width:250px">max</div></td>
</tr>
</table>
<p class="testdesc">Unconstrained single TD, table-layout:fixed
td.min = 0
td.max = minmax.max</p>
<table style="width:1px;table-layout:fixed" data-expected-width=16>
<tr>
<td><div style="width:50px">min</div><div style="width:250px">min</div></td>
</tr>
</table>
<table style="table-layout:fixed;width:300px" data-expected-width=300>
<tr>
<td><div style="width:50px">max</div><div style="width:250px">max</div></td>
</tr>
</table>
<p class="testdesc">Constrained single TD, table-layout:auto
td.min = minmax.min
td.max = max(minmax.min, css.width)
</p>
<table data-expected-width=266>
<tr>
<td style="width:200px"><div style="width:50px">max</div><div style="width:250px">max</div></td>
</tr>
</table>
<table data-expected-width=416>
<tr>
<td style="width:400px"><div style="width:50px">max</div><div style="width:250px">max</div></td>
</tr>
</table>
<table style="width:1px" data-expected-width=26>
<tr>
<td style="width:50px"><div style="width:10px">min</div></td>
</tr>
</table>
<table data-expected-width=266>
<tr>
<td style="width:100px"><div style="width:50px">min</div><div style="width:250px">min</div></td>
</tr>
</table>
<table data-expected-width=416>
<tr>
<td style="width:400px"><div style="width:50px">min</div><div style="width:250px">min</div></td>
</tr>
</table>
<h2>TD/TD merging</h2>
<p>TD merging only happens in auto, in fixed only 1st row gets measured</p>
<p class="testdesc">Two unconstrained TDs, table-layout:auto or fixed
td.min = max(C0.min, C1.min). always 0 in fixed layout.
td.max = max(C0.max, C1.max)
</p>
<table data-expected-width=316>
<tr>
<td data-expected-width=300><div style="width:50px">auto</div><div style="width:250px">max</div></td>
</tr>
<tr>
<td><div style="width:100px">auto</div><div style="width:150px">auto</div></td>
</tr>
</table>
<table style="width:1px" data-expected-width=266>
<tr>
<td data-expected-width=250><div style="width:50px">auto</div><div style="width:250px">max</div></td>
</tr>
<tr>
<td><div style="width:100px">auto</div><div style="width:150px">auto</div></td>
</tr>
</table>
<p class="testdesc">Unconstrained (UN) and constrained (CON) TD
td.min = max(UN.min, CON.min)
td.max = max(UN.min, CON.max)
</p>
<p class="error">Chrome Legacy and Edge fail this test. They do not limit unconstrained maximum: td.max = max(UN.max, CON.max).</p>
<table style="width:1px" data-expected-width=36>
<tr>
<td style="width:50px" data-expected-width=20><div style="width:20px">min</div></td>
</tr>
<tr>
<td><div style="width:15px">min</div></td>
</tr>
</table>
<table data-expected-width=66>
<tr>
<td style="width:50px" data-expected-width=50><div style="width:20px">max</div></td>
</tr>
<tr>
<td><div style="width:40px">max</div><div style="width:40px">max</div></td>
</tr>
</table>
<p class="testdesc">Two percent TDs
td.percent = max(C1.percent, C2.percent)
td.max = max(C1.max, C2.max)
td.min = max(C1.min, C2.min)
</p>
<table data-expected-width=324>
<tr>
<td style="width:10%"><div style="width:60px">60</div></td>
<td>auto</td>
</tr>
<tr>
<td style="width:20%" data-expected-width=60><div style="width:50px">50</div></td>
<td data-expected-width=240>auto</td>
</tr>
</table>
<h2>COL/TD merging</h2>
<p class="testdesc">col auto td auto
column.min = td.min
column.max = td.max</p>
<table data-expected-width=66>
<col>
<td><div style="width:50px">auto</div></td>
</table>
<p class="testdesc">col fixed td auto
column.min = td.min
column.max = max(col[px], td.min)
</p>
<table data-expected-width=116>
<col style="width:100px">
<td><div style="width:50px">auto</div></td>
</table>
<table data-expected-width=126>
<col style="width:100px">
<td><div style="width:110px">110</div><div style="width:110px">110</div></td>
</table>
<table style="width:1px" data-expected-width=66>
<col style="width:100px">
<td><div style="width:50px">min</div></td>
</table>
<p class="testdesc">col % td auto
column.min = td.min
column.max = max(td.max, col.max)
column.percent = col[%]
<table data-expected-width=224>
<col style="width:80%">
<td><div style="width:50px">auto</div></td>
<td style="width:40px">40</td>
</table>
<table style="width:1px" data-expected-width=94>
<col style="width:80%">
<td style="width:50px"><div style="width:30px">auto</div></td>
<td><div style="width:40px"></div></td>
</table>
<table data-expected-width=274>
<col style="width:80%">
<td><div style="width:200px" data-expected-width=200>auto</div></td>
<td style="width:30px"><div style="width:30px">30</div></td>
</table>
<p class="testdesc">col auto td percent
column.min = td.min
column.max = td.max
column.percent = td.percent
<table data-expected-width=174>
<col>
<td style="width:80%" data-expected-width=120><div style="width:100px">auto</div></td>
<td ><div style="width:30px">10</div></td>
</table>
<p class="testdesc">col fixed td percent
column.min = td.min
column.max = max(td.max, col.max)
column.percent = td.percent
<table data-expected-width=424>
<col style="width:200px">
<td style="width:50%" data-expected-width=200><div style="width:50px">50</div></td>
<td><div style="width:50px">50</div>
</table>
<table style="width:1px" data-expected-width=124>
<col style="width:200px">
<td style="width:60%" data-expected-width=50><div style="width:50px">50</div></td>
<td><div style="width:50px">50</div>
</table>
<p class="testdesc">col percent td percent
column.min = td.min
column.max = max(td.max, col.max)
column.percent = max(td.percent, col.percent)</p>
<table data-expected-width=524>
<col style="width:60%">
<td style="width:50%" data-expected-width=300><div style="width:100px">100</div></td>
<td><div style="width:200px">200</div></td>
</table>
<table data-expected-width=524>
<col style="width:50%">
<td style="width:60%" data-expected-width=300><div style="width:100px">100</div></td>
<td><div style="width:200px">200</div></td>
</table>
<p class="testdesc">col auto td fixed
column.min = td.min
column.max = td.max</p>
<table data-expected-width=116>
<col>
<td style="width:100px">100</td>
</table>
<p class="testdesc">col fixed td fixed
column.min = td.min
column.max = max(td.max, col.max)</p>
<table data-expected-width=216>
<col style="width:200px">
<td style="width:100px">100</td>
</table>
<table data-expected-width=216>
<col style="width:100px">
<td style="width:200px">100</td>
</table>
<p class="testdesc">col percent td fixed
column.min = td.min
column.percent = col.percent
column.max = max(td.max, col.max)</p>
<table data-expected-width=424>
<col style="width:50%">
<td style="width:100px" data-expected-width=200>100</td>
<td><div style="width:200px">200</div>
</table>
<table style="width:1px" data-expected-width=234>
<col style="width:50%">
<td style="width:100px" data-expected-width=10><div style="width:10px">10</div></td>
<td><div style="width:200px">200</div>
</table>
</main>
<script>
checkLayout("table");
</script>

View file

@ -0,0 +1,13 @@
This test suite is created as part of Chrome's NG table rewrite in 2020.
TablesNG: https://crbug.com/958381
Many parts of table layout algorithm have been left unspecified by the
existing specification:
https://www.w3.org/TR/css-tables-3/
These tests are an attempt to exaustively test all parts of the
algorithm. When specification did not specify the algorithm,
the proposed algorithm is described in the tests.
Our goal is that these tests will guide creation of a more complete
table standard.

View file

@ -0,0 +1,34 @@
/*
Tables-ng test styling.
Usage:
<link rel="stylesheet" type="text/css" href="./support/tables-ng.css">
<p class="testdesc">Short description here
Analysis
<p class="error">Current disagreements between browsers</p>
*/
main td {
padding: 0;
}
.error {
color: #b70000;
}
p {
margin-top:4px;
margin-bottom:4px;
}
body {
counter-reset: testid;
}
.testdesc {
white-space: pre-line;
margin-top: 16px;
}
.testdesc:before {
content: counter(testid) ". ";
counter-increment: testid;
}
.testdesc:first-line {
font-family: monospace;
}

View file

@ -0,0 +1,41 @@
<!doctype html>
<title>CSS Selectors: :is() and :where() parsing</title>
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
<link rel="help" href="https://drafts.csswg.org/selectors-4/#matches">
<link rel="help" href="https://drafts.csswg.org/selectors-4/#zero-matches">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
function assert_valid(expected_valid, pattern, description) {
test(function() {
for (let pseudo of ["is", "where"]) {
let valid = false;
let selector = pattern.replace("{}", ":" + pseudo)
try {
document.querySelector(selector);
valid = true;
} catch (ex) {}
assert_equals(valid, expected_valid, `${description}: ${selector}`);
}
}, description);
}
assert_valid(true, "{}(div + bar, div ~ .baz)", "Multiple selectors with combinators");
assert_valid(true, "{}(:is(div))", "Nested :is");
assert_valid(true, "{}(:where(div))", "Nested :where");
assert_valid(true, ":host({}(div))", "Nested inside :host, without combinators");
// See https://github.com/w3c/csswg-drafts/issues/5093
assert_valid(false, ":host({}(div .foo))", "Nested inside :host, with combinators");
assert_valid(true, "{}(:hover, :active)", "Pseudo-classes inside");
assert_valid(true, "{}(div):hover", "Pseudo-classes after");
assert_valid(true, "{}(div)::before", "Pseudo-elements after");
assert_valid(false, "{}(::before)", "Pseudo-elements inside");
assert_valid(true, "{}(div) + bar", "Combinators after");
assert_valid(true, "::part(foo):is(:hover)", "After part with simple pseudo-class");
assert_valid(false, "::part(foo):is([attr='value'])", "After part with invalid selector after");
</script>

View file

@ -0,0 +1,83 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>displaystyle</title>
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#css-styling">
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#the-displaystyle-and-scriptlevel-attributes">
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#the-math-style-property">
<meta name="assert" content="Verify the displaystyle of the underover element is considered (not the one of its base) to determine whether to move limits.">
<link rel="stylesheet" href="/fonts/ahem.css">
<style>
math, math * {
font-family: Ahem;
font-size: 20px;
}
</style>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/mathml/support/feature-detection.js"></script>
<script>
setup({ explicit_done: true });
window.addEventListener("load", () => { document.fonts.ready.then(runTests); });
function runTests() {
["munder", "mover", "munderover"].forEach((tag) => {
Array.from(document.getElementsByTagName(tag)).forEach(e => {
var displaystyle = e.getAttribute('displaystyle') === "true";
test(function() {
assert_true(MathMLFeatureDetection.has_movablelimits());
var elementRight = e.getBoundingClientRect().right;
var baseRight = e.firstElementChild.getBoundingClientRect().right;
if (displaystyle)
assert_approx_equals(elementRight, baseRight, 1);
else
assert_greater_than(elementRight, baseRight + 10);
}, `movablelimits for ${tag} element (displaystyle=${displaystyle})`);
});
});
done();
}
</script>
</head>
<body>
<div id="log"></div>
<math>
<munder displaystyle="false">
<mo displaystyle="true" movablelimits="true">XX</mo>
<mtext>X</mtext>
</munder>
</math>
<math>
<mover displaystyle="false">
<mo displaystyle="true" movablelimits="true">XX</mo>
<mtext>X</mtext>
</mover>
</math>
<math>
<munderover displaystyle="false">
<mo displaystyle="true" movablelimits="true">XX</mo>
<mtext>X</mtext>
<mtext>X</mtext>
</munderover>
</math>
<math>
<munder displaystyle="true">
<mo displaystyle="false" movablelimits="true">XX</mo>
<mtext>X</mtext>
</munder>
</math>
<math>
<mover displaystyle="true">
<mo displaystyle="false" movablelimits="true">XX</mo>
<mtext>X</mtext>
</mover>
</math>
<math>
<munderover displaystyle="true">
<mo displaystyle="false" movablelimits="true">XX</mo>
<mtext>X</mtext>
<mtext>X</mtext>
</munderover>
</math>
</body>
</html>

View file

@ -467,6 +467,7 @@ def check_parsed(repo_root, path, f):
if (source_file.type != "support" and
not source_file.name_is_reference and
not source_file.name_is_tentative and
not source_file.spec_links):
return [rules.MissingLink.error(path)]

View file

@ -796,6 +796,20 @@ def test_css_missing_file_manual():
]
def test_css_missing_file_tentative():
code = b"""\
<html xmlns="http://www.w3.org/1999/xhtml">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</html>
"""
# The tentative flag covers tests that make assertions 'not yet required by
# any specification', so they need not have a specification link.
errors = check_file_contents("", "css/foo/bar.tentative.html", six.BytesIO(code))
assert not errors
@pytest.mark.parametrize("filename", [
"foo.worker.js",
"foo.any.js",

View file

@ -407,6 +407,15 @@ class SourceFile(object):
# type: () -> bool
return self.type_flag == "crash" or "crashtests" in self.dir_path.split(os.path.sep)
@property
def name_is_tentative(self):
# type: () -> bool
"""Check if the file name matches the conditions for the file to be a
tentative file.
See https://web-platform-tests.org/writing-tests/file-names.html#test-features"""
return "tentative" in self.meta_flags
@property
def markup_type(self):
# type: () -> Optional[Text]

View file

@ -122,6 +122,14 @@ def test_name_is_reference(rel_path):
assert items(s) == []
def test_name_is_tentative():
s = create("css/css-ui/appearance-revert-001.tentative.html")
assert s.name_is_tentative
s = create("css/css-ui/appearance-revert-001.html")
assert not s.name_is_tentative
def test_worker():
s = create("html/test.worker.js")
assert not s.name_is_non_test

View file

@ -226,12 +226,12 @@ class GitIgnoreCache(CacheFile, MutableMapping): # type: ignore
def check_valid(self, data):
# type: (Dict[Any, Any]) -> Dict[Any, Any]
ignore_path = os.path.join(self.tests_root, b".gitignore")
ignore_path = os.path.join(self.tests_root, ".gitignore")
mtime = os.path.getmtime(ignore_path)
if data.get(b"/gitignore_file") != [ignore_path, mtime]:
if data.get("/gitignore_file") != [ignore_path, mtime]:
self.modified = True
data = {}
data[b"/gitignore_file"] = [ignore_path, mtime]
data["/gitignore_file"] = [ignore_path, mtime]
return data
def __contains__(self, key):

View file

@ -1,4 +1,4 @@
flake8==3.8.1
flake8==3.8.2
pycodestyle==2.6.0
pyflakes==2.2.0
pep8-naming==0.10.0