Auto merge of #26109 - servo-wpt-sync:wpt_update_04-04-2020, r=servo-wpt-sync

Sync WPT with upstream (04-04-2020)

Automated downstream sync of changes from upstream as of 04-04-2020.
[no-wpt-sync]
r? @servo-wpt-sync
This commit is contained in:
bors-servo 2020-04-04 22:34:05 -04:00 committed by GitHub
commit 406eefb4b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
154 changed files with 1878 additions and 608 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-005.html]
[Miss clipped float]
expected: FAIL

View file

@ -2,39 +2,12 @@
[[data-expected-height\] 1]
expected: FAIL
[[data-expected-height\] 10]
expected: FAIL
[[data-expected-height\] 3]
expected: FAIL
[[data-expected-height\] 2]
expected: FAIL
[[data-expected-height\] 5]
expected: FAIL
[[data-expected-height\] 4]
expected: FAIL
[[data-expected-height\] 7]
expected: FAIL
[[data-expected-height\] 6]
expected: FAIL
[[data-expected-height\] 9]
expected: FAIL
[[data-expected-height\] 8]
expected: FAIL
[[data-expected-height\] 13]
expected: FAIL
[[data-expected-height\] 12]
expected: FAIL
[[data-expected-height\] 11]
expected: FAIL

View file

@ -1,2 +0,0 @@
[flexitem-stretch-range.html]
expected: FAIL

View file

@ -17,6 +17,3 @@
[test the top of layer]
expected: FAIL
[test some point of the element: top left corner]
expected: FAIL

View file

@ -2,3 +2,6 @@
[elementsFromPoint on the root document for points in iframe elements]
expected: FAIL
[elementsFromPoint on inner documents]
expected: FAIL

View file

@ -0,0 +1,2 @@
[backdrop-filters-grayscale-001.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[backdrop-filters-grayscale-002.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[backdrop-filters-grayscale-003.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[effect-reference-convolve-error-001.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[filters-drop-shadow-001.html]
expected: FAIL

View file

@ -312,27 +312,18 @@
[Response: combined response Content-Type: text/html;" \\" text/plain ";charset=GBK]
expected: NOTRUN
[<iframe>: combined response Content-Type: text/html;" \\" text/plain]
expected: FAIL
[<iframe>: combined response Content-Type: text/html;" text/plain]
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
[<iframe>: combined response Content-Type: text/html */*;charset=gbk]
expected: FAIL
[<iframe>: combined response Content-Type: */* text/html]
expected: FAIL
[<iframe>: separate response Content-Type: text/html;" text/plain]
expected: FAIL
[<iframe>: separate response Content-Type: text/html */*]
[<iframe>: combined response Content-Type: text/html */*]
expected: FAIL

View file

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

View file

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

View file

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

View file

@ -0,0 +1,8 @@
[embedded-opener-remove-frame.html]
expected: TIMEOUT
[opener of discarded nested browsing context]
expected: FAIL
[opener of discarded auxiliary browsing context]
expected: TIMEOUT

View file

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

View file

@ -0,0 +1,2 @@
[script-onerror-insertion-point-2.html]
expected: TIMEOUT

View file

@ -0,0 +1,4 @@
[2d.text.draw.fill.maxWidth.fontface.html]
[fillText works on @font-face fonts]
expected: FAIL

View file

@ -0,0 +1,4 @@
[2d.text.draw.fill.maxWidth.fontface.worker.html]
[fillText works on @font-face fonts]
expected: FAIL

View file

@ -44,3 +44,6 @@
[X Rendered audio for channel 5 does not equal [0,0.0626220703125,0.125030517578125,0.18695068359375,0.24810791015625,0.308319091796875,0.3673095703125,0.42486572265625,0.480743408203125,0.53472900390625,0.58660888671875,0.636199951171875,0.68328857421875,0.727691650390625,0.76922607421875,0.8077392578125...\] with an element-wise tolerance of {"absoluteThreshold":0.000030517578125,"relativeThreshold":0}.\n\tIndex\tActual\t\t\tExpected\t\tAbsError\t\tRelError\t\tTest threshold\n\t[1\]\t3.6732959747314453e-1\t6.2622070312500000e-2\t3.0470752716064453e-1\t4.8658168859649127e+0\t3.0517578125000000e-5\n\t[2\]\t6.8329977989196777e-1\t1.2503051757812500e-1\t5.5826926231384277e-1\t4.4650639949963384e+0\t3.0517578125000000e-5\n\t[3\]\t9.0373212099075317e-1\t1.8695068359375000e-1\t7.1678143739700317e-1\t3.8340669508039502e+0\t3.0517578125000000e-5\n\t[4\]\t9.9780619144439697e-1\t2.4810791015625000e-1\t7.4969828128814697e-1\t3.0216621502152523e+0\t3.0517578125000000e-5\n\t[5\]\t9.5236867666244507e-1\t3.0831909179687500e-1\t6.4404958486557007e-1\t2.0889059484187866e+0\t3.0517578125000000e-5\n\t...and 38772 more errors.\n\tMax AbsError of 1.9986916780471802e+0 at index of 15790.\n\t[15790\]\t9.9994289875030518e-1\t-9.9874877929687500e-1\t1.9986916780471802e+0\t2.0011956154322119e+0\t3.0517578125000000e-5\n\tMax RelError of Infinity at index of 14112.\n\t[14112\]\t-9.5105654001235962e-1\t0.0000000000000000e+0\t9.5105654001235962e-1\tInfinity\t3.0517578125000000e-5\n]
expected: FAIL
[X Rendered audio for channel 5 does not equal [0,0.0626220703125,0.125030517578125,0.18695068359375,0.24810791015625,0.308319091796875,0.3673095703125,0.42486572265625,0.480743408203125,0.53472900390625,0.58660888671875,0.636199951171875,0.68328857421875,0.727691650390625,0.76922607421875,0.8077392578125...\] with an element-wise tolerance of {"absoluteThreshold":0.000030517578125,"relativeThreshold":0}.\n\tIndex\tActual\t\t\tExpected\t\tAbsError\t\tRelError\t\tTest threshold\n\t[1\]\t3.6732959747314453e-1\t6.2622070312500000e-2\t3.0470752716064453e-1\t4.8658168859649127e+0\t3.0517578125000000e-5\n\t[2\]\t6.8329977989196777e-1\t1.2503051757812500e-1\t5.5826926231384277e-1\t4.4650639949963384e+0\t3.0517578125000000e-5\n\t[3\]\t9.0373212099075317e-1\t1.8695068359375000e-1\t7.1678143739700317e-1\t3.8340669508039502e+0\t3.0517578125000000e-5\n\t[4\]\t9.9780619144439697e-1\t2.4810791015625000e-1\t7.4969828128814697e-1\t3.0216621502152523e+0\t3.0517578125000000e-5\n\t[5\]\t9.5236867666244507e-1\t3.0831909179687500e-1\t6.4404958486557007e-1\t2.0889059484187866e+0\t3.0517578125000000e-5\n\t...and 42287 more errors.\n\tMax AbsError of 1.9900983572006226e+0 at index of 41022.\n\t[41022\]\t-9.9751412868499756e-1\t9.9258422851562500e-1\t1.9900983572006226e+0\t2.0049667323212912e+0\t3.0517578125000000e-5\n\tMax RelError of Infinity at index of 10584.\n\t[10584\]\t-5.8778524398803711e-1\t0.0000000000000000e+0\t5.8778524398803711e-1\tInfinity\t3.0517578125000000e-5\n]
expected: FAIL

View file

@ -77,3 +77,6 @@
[X Stitched sine-wave buffers at sample rate 44100 does not equal [0,0.06264832615852356,0.12505052983760834,0.18696144223213196,0.24813786149024963,0.308339387178421,0.36732959747314453,0.4248766601085663,0.480754554271698,0.5347436666488647,0.5866320133209229,0.6362156271934509,0.6832997798919678,0.7276994585990906,0.7692402601242065,0.8077589869499207...\] with an element-wise tolerance of {"absoluteThreshold":0.000090957,"relativeThreshold":0}.\n\tIndex\tActual\t\t\tExpected\t\tAbsError\t\tRelError\t\tTest threshold\n\t[31080\]\t-1.0346872832000000e+10\t5.6332010030746460e-1\t1.0346872832563320e+10\t1.8367661347280018e+10\t9.0957000000000003e-5\n\t[31081\]\t4.5699145518560934e-41\t6.1397600173950195e-1\t6.1397600173950195e-1\t1.0000000000000000e+0\t9.0957000000000003e-5\n\tMax AbsError of 1.0346872832563320e+10 at index of 31080.\n\tMax RelError of 1.8367661347280018e+10 at index of 31080.\n]
expected: FAIL
[X Stitched sine-wave buffers at sample rate 44100 does not equal [0,0.06264832615852356,0.12505052983760834,0.18696144223213196,0.24813786149024963,0.308339387178421,0.36732959747314453,0.4248766601085663,0.480754554271698,0.5347436666488647,0.5866320133209229,0.6362156271934509,0.6832997798919678,0.7276994585990906,0.7692402601242065,0.8077589869499207...\] with an element-wise tolerance of {"absoluteThreshold":0.000090957,"relativeThreshold":0}.\n\tIndex\tActual\t\t\tExpected\t\tAbsError\t\tRelError\t\tTest threshold\n\t[31080\]\t1.1879997299240753e-31\t5.6332010030746460e-1\t5.6332010030746460e-1\t1.0000000000000000e+0\t9.0957000000000003e-5\n\t[31081\]\t4.5617870207630095e-41\t6.1397600173950195e-1\t6.1397600173950195e-1\t1.0000000000000000e+0\t9.0957000000000003e-5\n\tMax AbsError of 6.1397600173950195e-1 at index of 31081.\n\tMax RelError of 1.0000000000000000e+0 at index of 31080.\n]
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

@ -1,7 +1,8 @@
[shared-worker-in-data-url-context.window.html]
expected: TIMEOUT
[Create a shared worker in a data url frame]
expected: FAIL
expected: TIMEOUT
[Create a data url shared worker in a data url frame]
expected: FAIL
expected: NOTRUN

View file

@ -179185,6 +179185,19 @@
{}
]
],
"preserve3d-overflow-percent.html": [
"1c4962001e3f5f55c2a671f43abe217454cc2ae5",
[
null,
[
[
"/common/blank.html",
"!="
]
],
{}
]
],
"rotate": {
"svg-rotate-3args-002.html": [
"5906a2f4041319143b926f75af321b714f66d39b",
@ -202665,13 +202678,39 @@
{}
]
],
"backdrop-filters-grayscale.html": [
"925c83cd027c1398544d4f6aa7e996f1b14fdac7",
"backdrop-filters-grayscale-001.html": [
"75fe110b823b6b1e5068af9c75e0ad6e154beb21",
[
null,
[
[
"/css/filter-effects/backdrop-filters-grayscale-ref.html",
"/css/filter-effects/reference/backdrop-filters-grayscale-001-ref.html",
"=="
]
],
{}
]
],
"backdrop-filters-grayscale-002.html": [
"971bed88d3abe3b8239e1fc2e47864c8b22a7911",
[
null,
[
[
"/css/filter-effects/reference/backdrop-filters-grayscale-002-ref.html",
"=="
]
],
{}
]
],
"backdrop-filters-grayscale-003.html": [
"816846df2a6254f4271f09ee9e273c74d561c4d3",
[
null,
[
[
"/css/filter-effects/reference/backdrop-filters-grayscale-003-ref.html",
"=="
]
],
@ -203055,6 +203094,45 @@
{}
]
],
"dynamic-filter-changes-001.html": [
"e2a28a3fe45ba90ad512e47b8756a01680b36511",
[
null,
[
[
"/css/filter-effects/reference/dynamic-filter-changes-001-ref.html",
"=="
]
],
{}
]
],
"effect-reference-after-001.html": [
"e8bbc787df5ddd047df3e393d8e07b17c2f95fc9",
[
null,
[
[
"/css/filter-effects/reference/effect-reference-after-001-ref.html",
"=="
]
],
{}
]
],
"effect-reference-convolve-error-001.html": [
"11922ef83a4b53e5706d183c9253f83a93d7d128",
[
null,
[
[
"/css/filter-effects/reference/effect-reference-convolve-error-001-ref.html",
"=="
]
],
{}
]
],
"fecolormatrix-type.html": [
"5d003f7f9c5175edfa869567d2fe69b95160644d",
[
@ -203328,6 +203406,19 @@
{}
]
],
"filter-url-to-non-existent-filter-001.html": [
"6351c903f029ce2325326a177801cdd31af4505d",
[
null,
[
[
"/css/filter-effects/reference/filter-url-to-non-existent-filter-001-ref.html",
"=="
]
],
{}
]
],
"filtered-block-is-container.html": [
"6f99f364e638028098ae10319290e8bf2a9a9457",
[
@ -203380,13 +203471,26 @@
{}
]
],
"filters-drop-shadow.html": [
"b54851322b111e2a9bd3cba53ca57fab7f93f3ae",
"filters-drop-shadow-001.html": [
"81fa0cb2ad1bab60976b1d3e844f741f9c143467",
[
null,
[
[
"/css/filter-effects/filters-drop-shadow-ref.html",
"/css/filter-effects/reference/filters-drop-shadow-001-ref.html",
"=="
]
],
{}
]
],
"filters-drop-shadow-002.html": [
"e9eca4da04a02f7311f3805737797258551e111d",
[
null,
[
[
"/css/filter-effects/reference/filters-drop-shadow-002-ref.html",
"=="
]
],
@ -285573,7 +285677,7 @@
[]
],
"flexitem-stretch-range-ref.html": [
"e941a157be0f93da78dfdaedf2c2d701b1bf31f8",
"01c617698e26960960be4210fd726ce102e188bc",
[]
],
"floated-flexitem-ref.html": [
@ -302489,7 +302593,7 @@
"properties": {
"resources": {
"testsuite.js": [
"27042c787a1bfc3d3ad1d70f91de8aa09433001f",
"0ec25662c2392d4d80b1c67c19eacc3dc138bae0",
[]
]
}
@ -306863,10 +306967,6 @@
"7978fec4d492b90d9a159ffa07dd4bc05a87f4e2",
[]
],
"backdrop-filters-grayscale-ref.html": [
"eb403f16a0030aca22fefbf919daa987aaa2ee50",
[]
],
"backdrop-filters-hue-rotate-ref.html": [
"c70f6bcf9e315f2a9d39b3a564649d2f2d6b7e5d",
[]
@ -307055,10 +307155,6 @@
"aa6c12e33b5bc3779c9a49ee3c9edd69ffe2ed8f",
[]
],
"filters-drop-shadow-ref.html": [
"3776a006095dd3ec5b9ea826e3260c91469711b6",
[]
],
"filters-grayscale-001-ref.html": [
"e219a55d33e234f0ed58a45c1175ca66e01b335a",
[]
@ -307080,6 +307176,42 @@
[]
],
"reference": {
"backdrop-filters-grayscale-001-ref.html": [
"eb403f16a0030aca22fefbf919daa987aaa2ee50",
[]
],
"backdrop-filters-grayscale-002-ref.html": [
"b241017d17b414944c82240ef756c87c582af9f4",
[]
],
"backdrop-filters-grayscale-003-ref.html": [
"9ce975c1ef631dc4e8e59c35fcacf6d9c7483b58",
[]
],
"dynamic-filter-changes-001-ref.html": [
"699d57c2a8c087c25079232a443a6e2b72c1e79e",
[]
],
"effect-reference-after-001-ref.html": [
"cbcff3fa444c580acc67640ce330edcf898aeeb2",
[]
],
"effect-reference-convolve-error-001-ref.html": [
"f718ea6abfbab54333ba674ff0dcd320d8672bcd",
[]
],
"filter-url-to-non-existent-filter-001-ref.html": [
"c1aeed8c441e6f72c6faa893d64ae30bdacbec06",
[]
],
"filters-drop-shadow-001-ref.html": [
"3776a006095dd3ec5b9ea826e3260c91469711b6",
[]
],
"filters-drop-shadow-002-ref.html": [
"4227e8cb140e13cbb88a6b1cc366b32b57c2f923",
[]
],
"filters-opacity-001-ref.html": [
"17d891ee707c36b7d404d9836060d7bb9275e841",
[]
@ -307210,6 +307342,10 @@
"8b4b25364e0ffbe09e563e13b567fa57330e48d5",
[]
],
"reference.png": [
"68641b76771abf086dc213b353ac2088fffb931a",
[]
],
"ruler-h-50%.png": [
"cf2eea6b438a11503a89414cbb2f9f1fde55df0c",
[]
@ -328814,7 +328950,7 @@
[]
],
"mathml-fragments.js": [
"8376ccf375def30bec02e4226ea189140efcbe65",
"7e2113e95bf549155c9b30a6ca60a365fc384768",
[]
],
"operator-dictionary.js": [
@ -330064,7 +330200,7 @@
[]
],
"tests2d.yaml": [
"846dc8b3eedc80171b4ea103b936eaa863b81d6c",
"4ff765bdd7990c70f72c0876cc648f62611bc596",
[]
]
}
@ -345309,7 +345445,7 @@
[]
],
"helpers.js": [
"27abaaf4766c4a2fe85f1034be8df9145b712f75",
"c355d0586257b802c3f4a401c7ddedad16c860f9",
[]
],
"resources": {
@ -346276,6 +346412,12 @@
[]
]
},
"simulcast": {
"simulcast.js": [
"ed08ddca44866367bd66ea3b5a7c3a6f58a85f03",
[]
]
},
"third_party": {
"README.md": [
"56a2295dd103db76836d17fa513f56d09891c586",
@ -381020,6 +381162,20 @@
null,
{}
]
],
"revert-val-004.html": [
"6a7046c0e467896d8eb76efe7f4ae06409dc288a",
[
null,
{}
]
],
"revert-val-005.html": [
"7295605d4bb6e4ce875b57c0e58b7294422a0096",
[
null,
{}
]
]
},
"css-color": {
@ -382535,7 +382691,7 @@
]
],
"overflow-auto-006.html": [
"4fda7effa7204a9edbf0fc15580c8eec252c6b94",
"be0f8f19abb0b675af648fbd54799ed60d6ab32f",
[
null,
{}
@ -383601,7 +383757,7 @@
]
],
"forced-color-adjust-invalid.html": [
"6329305a9ce381adbee2f4d82409214d7a3c2fbe",
"464b07298467e6b9ed82e8c90cf815f4fcc3b9b5",
[
null,
{}
@ -388825,7 +388981,7 @@
]
],
"property-cascade.html": [
"5f0b7eb50c21397e0fe2995dd242fa454f78ca7c",
"bb50213d5ce171b98b3569e2fd39fcc3b3b22abb",
[
null,
{}
@ -388873,6 +389029,13 @@
{}
]
],
"registered-property-revert.html": [
"3d0473ea4397fab0440355a11eb0bff941a50323",
[
null,
{}
]
],
"self-utils.html": [
"b770c86c38269656d77c3e382d3fe0391cdd8cd0",
[
@ -399093,7 +399256,7 @@
]
],
"will-change-invalid.html": [
"83710ddbce4d05105afac38416f1ce0f343f937c",
"aa99676b3f98d28d6c327ad771f4cd0b35a37a74",
[
null,
{}
@ -406410,6 +406573,13 @@
{}
]
],
"move-inserted-node-from-DOMNodeInserted-during-exec-command-insertHTML.html": [
"41e012a62e9617f372f85d0a0cedefe8ad42fbd6",
[
null,
{}
]
],
"non-html-document.html": [
"ffd2e6f59464c56fac6694856978192ed03a199c",
[
@ -435292,6 +435462,13 @@
{}
]
],
"image-parse-url-base.html": [
"f8201c4948be8df1132c602afb134b71ebd75768",
[
null,
{}
]
],
"img.complete.html": [
"d8d5a84eb7998044fb24847cc0ac5a1185b82bb6",
[
@ -435398,7 +435575,7 @@
]
],
"relevant-mutations.html": [
"8b8ce7dfe980967ab8153651f83e6dfba7fb1af5",
"db9a7eecc1141ef0a215c3aaadb280eb2d9acbe5",
[
null,
{
@ -447062,6 +447239,13 @@
{}
]
],
"margin-003.html": [
"5f0dbf4cc0edcdb406d53f74d55afa500865e392",
[
null,
{}
]
],
"padding-001.html": [
"afcd930452655f2265cf5929c28200e0668a3cc4",
[
@ -461150,182 +461334,182 @@
]
],
"2d.text.draw.align.center.html": [
"4a395296bf05d2352a3ec881551d181bf4a5865a",
"3dfd54b34806d2e8c6576214dd5e68b18bebbbda",
[
null,
{}
]
],
"2d.text.draw.align.center.worker.js": [
"e252bd4c2029a18a0f1a515c1c62b2e1b6ea2c98",
"41df11ce275e424181368f9745ea5fd598dc7145",
[
"offscreen-canvas/text/2d.text.draw.align.center.worker.html",
{}
]
],
"2d.text.draw.align.end.ltr.html": [
"0db1858dffb0b9b62b49b6dbb84c4c27870d1813",
"9048f3c9110c1e0852847051d3dce75f2d466bfa",
[
null,
{}
]
],
"2d.text.draw.align.end.ltr.worker.js": [
"c059df58e60c3c1398e1c33d962ab4940859b4cc",
"8566b5b93051f2f7143acb1494f11f2296d1978a",
[
"offscreen-canvas/text/2d.text.draw.align.end.ltr.worker.html",
{}
]
],
"2d.text.draw.align.end.rtl.html": [
"9f8f8c464263c43f37d02421a2b9a4755d0940b3",
"db7586cabdc71e43103b8adb30ab0ccd223a8d2f",
[
null,
{}
]
],
"2d.text.draw.align.end.rtl.worker.js": [
"89011c3691b2f3e82032df0bdcc5588cfe07451e",
"be8462689d4d4f2ff90613c4ebb2fbb2960e6a14",
[
"offscreen-canvas/text/2d.text.draw.align.end.rtl.worker.html",
{}
]
],
"2d.text.draw.align.left.html": [
"a57aa95073c66fd421e5a5fdf21f1ff43620eb60",
"ce394fb2293f42ca69d802131c834cf9055980b8",
[
null,
{}
]
],
"2d.text.draw.align.left.worker.js": [
"90964286fa39384cc946aae206b722ef5d48e805",
"f224b958a417f2645e82e9ed26105e91b05a13f6",
[
"offscreen-canvas/text/2d.text.draw.align.left.worker.html",
{}
]
],
"2d.text.draw.align.right.html": [
"087b379c519ef5b9bb9b3ec6692398ce60ab1d81",
"aeb26b5e07e1b83a30ef52418697e010f878d06b",
[
null,
{}
]
],
"2d.text.draw.align.right.worker.js": [
"1af5da343f914a08fc54a29faf247d7ad69c8e9a",
"80cf656bd4623d9dba2f49466d03ec90d14507d4",
[
"offscreen-canvas/text/2d.text.draw.align.right.worker.html",
{}
]
],
"2d.text.draw.align.start.ltr.html": [
"72af4d3ab25c1c0c4f3a947d46f8927b218f8f53",
"ee4f15178b6d2415196522fcc3124320aa99aba8",
[
null,
{}
]
],
"2d.text.draw.align.start.ltr.worker.js": [
"eb98a053b5cb3936791b1007bfaa3e8b69892f3d",
"c1ac7de15a3ab484545b26553015b2da558db43e",
[
"offscreen-canvas/text/2d.text.draw.align.start.ltr.worker.html",
{}
]
],
"2d.text.draw.align.start.rtl.html": [
"ab4179a5296f6527750e1a7d5fbe9a4dbb02f4c5",
"33408f3c910d4a82e83d8f603f00b44014fc0725",
[
null,
{}
]
],
"2d.text.draw.align.start.rtl.worker.js": [
"585ad732f31c2bf77fba3d42e92be79e64f053e1",
"c01e3c4c6b8d4c0d9ce85f8d54b7a1284f9c2305",
[
"offscreen-canvas/text/2d.text.draw.align.start.rtl.worker.html",
{}
]
],
"2d.text.draw.baseline.alphabetic.html": [
"c64bf9d49973a9b64c8ab3940812aacd20f0352b",
"fa93666c783de20631ab7d92a1704fad754cb1a6",
[
null,
{}
]
],
"2d.text.draw.baseline.alphabetic.worker.js": [
"3112e118d305443fe996ded9e6228b313360031c",
"d234d3e4f5e707a46c506854610c63b583bf9011",
[
"offscreen-canvas/text/2d.text.draw.baseline.alphabetic.worker.html",
{}
]
],
"2d.text.draw.baseline.bottom.html": [
"f5381e3a61c2245657013f54282b1979d2a1f53e",
"ffdc84d54ec96bcaa6b51a82cd6e4cf6ff9bedf4",
[
null,
{}
]
],
"2d.text.draw.baseline.bottom.worker.js": [
"e8e75fa11af359b352f60efaea2667b4a31c73af",
"0dc46e7ccb042b808ea72d2c833f611e116397d1",
[
"offscreen-canvas/text/2d.text.draw.baseline.bottom.worker.html",
{}
]
],
"2d.text.draw.baseline.hanging.html": [
"3dc426b792c7162f8c2f013d3ee7453133603942",
"38d44158b768e6100baba0d6b525d95ccbbe3dee",
[
null,
{}
]
],
"2d.text.draw.baseline.hanging.worker.js": [
"de79c40997c1d4c46bdabf83bebbcdb6b7f103e0",
"c1030c8a5aa9b4a1ad68ec995fa1bb7fc4863892",
[
"offscreen-canvas/text/2d.text.draw.baseline.hanging.worker.html",
{}
]
],
"2d.text.draw.baseline.ideographic.html": [
"df3f17df2cd9c9c23f845ef578ac7d20421d1901",
"fb1aad2b934d0d6c9647e7a87e05b38913a3cc06",
[
null,
{}
]
],
"2d.text.draw.baseline.ideographic.worker.js": [
"b4f2770a70f978aa287e63b997139995499ec777",
"f3ca4a1d5a8713dd00bafa8b05e14531a95410ff",
[
"offscreen-canvas/text/2d.text.draw.baseline.ideographic.worker.html",
{}
]
],
"2d.text.draw.baseline.middle.html": [
"cf1a28d9a264ed782980bfea0043951bebfb4edd",
"0a7f356f8e99e46dafb8192a310d608447b6100c",
[
null,
{}
]
],
"2d.text.draw.baseline.middle.worker.js": [
"9b644c87ac06a37008be8294989b61b0722a3a0f",
"800d6023d492ceda2675049171a42d4641c098ee",
[
"offscreen-canvas/text/2d.text.draw.baseline.middle.worker.html",
{}
]
],
"2d.text.draw.baseline.top.html": [
"19ebb86517b73c3c1f3c29019a2f30d023f8eee3",
"b9c6d1e57c2cbae0939ba980ce10febdf33b8ff8",
[
null,
{}
]
],
"2d.text.draw.baseline.top.worker.js": [
"5e886571aaef788cb5e7a9a4b0fcb5f2d4f37ed5",
"1079f146a328cb9aea8f07a2b290be5632beddf6",
[
"offscreen-canvas/text/2d.text.draw.baseline.top.worker.html",
{}
@ -461346,28 +461530,28 @@
]
],
"2d.text.draw.fill.maxWidth.bound.html": [
"0dfb4269c92931ee71fbb286a14003e6acd97a3b",
"ef942c013bfa35f27b598fa86aef1f36ef7f6eba",
[
null,
{}
]
],
"2d.text.draw.fill.maxWidth.bound.worker.js": [
"0b1fe8514a01c579e2b4ceb534455961d0e623ee",
"8300b221894cea0b04f024d490a4b16d180d02c3",
[
"offscreen-canvas/text/2d.text.draw.fill.maxWidth.bound.worker.html",
{}
]
],
"2d.text.draw.fill.maxWidth.fontface.html": [
"f14ca8c02c7ffedd64eb7dc6996429722704697a",
"8a8d68fd2dbf7e0f5ea14c38c0a680f49038b9ca",
[
null,
{}
]
],
"2d.text.draw.fill.maxWidth.fontface.worker.js": [
"96a3979f5bab6e885bf60961bce60e0a322a692d",
"dfcacffba1203ace267da46f659eb75053386435",
[
"offscreen-canvas/text/2d.text.draw.fill.maxWidth.fontface.worker.html",
{}
@ -461430,126 +461614,126 @@
]
],
"2d.text.draw.fontface.html": [
"285b6e387ecae23ba1e9391b2ca150e500cd8aab",
"f0273f66c2c6cb7300cee750fd22a1c04abf245e",
[
null,
{}
]
],
"2d.text.draw.fontface.notinpage.html": [
"d9d9708de8dbb80c66ead186add9431f5420c790",
"55b1e71adbe2e9b9a73e5e5b0ee37c71536eb786",
[
null,
{}
]
],
"2d.text.draw.fontface.notinpage.worker.js": [
"33b9929442168ef7297020134e3954d1fd799bb8",
"d7132bb8befa6c3847047c06b79d445adbe99e95",
[
"offscreen-canvas/text/2d.text.draw.fontface.notinpage.worker.html",
{}
]
],
"2d.text.draw.fontface.repeat.html": [
"ee204a002baa7c7297080dfae8d7e38d8fd6cb60",
"3448c241c8bf7dacd3202a5e7abe959a14a69f13",
[
null,
{}
]
],
"2d.text.draw.fontface.repeat.worker.js": [
"f278469a6b8acc591d35803bbf6de0c035ac7d38",
"d5774654161aa2fea5a4824e09331d89a9b6be62",
[
"offscreen-canvas/text/2d.text.draw.fontface.repeat.worker.html",
{}
]
],
"2d.text.draw.fontface.worker.js": [
"eeadc01c74b17bb9cca0942faf3f6f01e10eb3d7",
"2bef1267d87cc5b18e81351aa8e89fd84583422f",
[
"offscreen-canvas/text/2d.text.draw.fontface.worker.html",
{}
]
],
"2d.text.draw.space.basic.html": [
"a9daf1df14f128255dcb9645cbe600a88de2df82",
"108e7a6b74fdbdf5aedb09a3057afa82ae27d759",
[
null,
{}
]
],
"2d.text.draw.space.basic.worker.js": [
"b14c246e4014c1b3915165dd44b5ac566d402d3a",
"18d01b82fb2ec670ffc2518de26b3a5fdc8eb44a",
[
"offscreen-canvas/text/2d.text.draw.space.basic.worker.html",
{}
]
],
"2d.text.draw.space.collapse.end.html": [
"cd11c29baf3c68a1fd014b85edab6cdf942c7448",
"7489fe62341e6f8b031644f3449757571443d281",
[
null,
{}
]
],
"2d.text.draw.space.collapse.end.worker.js": [
"7b40c640543a94c9f6066cec2c3cbc4381f98752",
"10670f056889b3eceaaa21eafac0e85901c5b735",
[
"offscreen-canvas/text/2d.text.draw.space.collapse.end.worker.html",
{}
]
],
"2d.text.draw.space.collapse.nonspace.html": [
"1924626c53517989a00f17e327e8066d3124f8cf",
"3241ac7557df61ccbba28a0c7a661013dcbb3bbb",
[
null,
{}
]
],
"2d.text.draw.space.collapse.nonspace.worker.js": [
"f13bcc931fc795cf7787abf4d119a872033057e1",
"04627cd233189a3b7e8228a6bb000ce3a79c98c7",
[
"offscreen-canvas/text/2d.text.draw.space.collapse.nonspace.worker.html",
{}
]
],
"2d.text.draw.space.collapse.other.html": [
"586ae37025f7d5e338cf6458da900ae12595236c",
"1afde6d0d4ebc3bdccef687b0b88b46fa03ba737",
[
null,
{}
]
],
"2d.text.draw.space.collapse.other.worker.js": [
"0f88a4412bc4827eedfb6cb92874686e7e8f91fc",
"375b18421a08afd4b76ad41f7bf9a9d5b0df4a3b",
[
"offscreen-canvas/text/2d.text.draw.space.collapse.other.worker.html",
{}
]
],
"2d.text.draw.space.collapse.space.html": [
"ac0d0b4e5986f538c7cba0c396880b2c23c38d3b",
"621d052e55c29bce9b9b51188883c045d97094dc",
[
null,
{}
]
],
"2d.text.draw.space.collapse.space.worker.js": [
"2ff1ba55637d69af9a203b5fe2ac9bcec07e2c5f",
"0e367af4e2497b1cf655d020a5307af8aff07020",
[
"offscreen-canvas/text/2d.text.draw.space.collapse.space.worker.html",
{}
]
],
"2d.text.draw.space.collapse.start.html": [
"a9e1f5a47df80d803f03d3b75d7fd817afc9a5af",
"3b86a0a1b429067e4d5af62c01a659ce09447ec0",
[
null,
{}
]
],
"2d.text.draw.space.collapse.start.worker.js": [
"a9a8cc277835bed200f525a1d52fc1080e2acb5b",
"81c6a571a0ad27735721ad4dd1db40a75b50828d",
[
"offscreen-canvas/text/2d.text.draw.space.collapse.start.worker.html",
{}
@ -463625,10 +463809,12 @@
]
],
"two-ids.https.html": [
"630f07280790e0631fe1c2e795194bd541ffee72",
"da9ab2e951171050bba0b91557657d1c953824b9",
[
null,
{}
{
"timeout": "long"
}
]
]
}
@ -465592,7 +465778,7 @@
]
],
"pointerevent_pointercapture-in-custom-element.html": [
"e8f143b309f2dbdda19c90e1aef1865ecf889f47",
"6f7c9058d676091788c7f1e3cad961bad54eb2c8",
[
null,
{
@ -465601,7 +465787,7 @@
]
],
"pointerevent_pointercapture-in-shadow-dom.html": [
"8279665f97b0ee522b9bd5710d5ec5ad677df85a",
"94636231a6f2a53ffcb3478fea225067b636265f",
[
null,
{
@ -489031,7 +489217,7 @@
]
],
"svglength-additive-by-8.html": [
"c61cb65ebd923f82d3c44ae00328e4712d214019",
"459fc7382a596292d913ab9643be6b32a32726e2",
[
null,
{}
@ -490047,14 +490233,14 @@
]
],
"stroke-dasharray-invalid.svg": [
"0c356b6433955588c7b0ed32d9ff8c2eab4c7619",
"53a9640c8ffbcb2ec511ea808f02574e934e07b8",
[
null,
{}
]
],
"stroke-dasharray-valid.svg": [
"e47ebc62a1296f75c42af980b85073ebe135605b",
"9326118ceb886c64c936a0dbbf789b87f7302391",
[
null,
{}
@ -490068,14 +490254,14 @@
]
],
"stroke-dashoffset-invalid.svg": [
"64e2eec764a13bab403172a1568d085d745033d2",
"2040355e2282a59d95a5ace4e1114b0cd14c4741",
[
null,
{}
]
],
"stroke-dashoffset-valid.svg": [
"f34774e68d7afa7a336ed7cbd30b44695451d74d",
"fe7ba12c8870a556b7fd66d74bb18bc5cbf84cf4",
[
null,
{}
@ -490187,14 +490373,14 @@
]
],
"stroke-width-invalid.svg": [
"0d3f63d077f29a0a36f6443164dc7f24421a3f62",
"2111e376ac4000096cd13e939ecce1cb652e805f",
[
null,
{}
]
],
"stroke-width-valid.svg": [
"f90781284dcf54b2e864e0607ae3e880a40531e1",
"1ee0449afae675b84f1118875ae21c3c7aee67cc",
[
null,
{}
@ -500697,7 +500883,17 @@
]
],
"getcredential-passing.https.html": [
"c5237d2cda27e573ee591e95fdad92fae06e56a7",
"1af35aa9cb14327d3d1d4ea660b7380d6b0f65bd",
[
null,
{
"testdriver": true,
"timeout": "long"
}
]
],
"getcredential-rk-passing.https.html": [
"8c0254fee4258478e5920c30f693c84e07cfcb2e",
[
null,
{
@ -502809,7 +503005,16 @@
null,
{}
]
],
"simulcast": {
"basic.https.html": [
"ae2e7eec11b85bb0f5b0444e6e6cf7123e7e26e0",
[
null,
{}
]
]
}
},
"webrtc-extensions": {
"RTCRtpParameters-maxFramerate.html": [

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-005.html]
[Miss clipped float]
expected: FAIL

View file

@ -8,6 +8,9 @@
[[data-expected-height\] 3]
expected: FAIL
[[data-expected-height\] 4]
[[data-expected-height\] 1]
expected: FAIL
[[data-expected-height\] 2]
expected: FAIL

View file

@ -1,2 +0,0 @@
[flexitem-stretch-range.html]
expected: FAIL

View file

@ -21,6 +21,3 @@
[test the top of layer]
expected: FAIL
[test some point of the element: top left corner]
expected: FAIL

View file

@ -2,3 +2,6 @@
[elementsFromPoint on the root document for points in iframe elements]
expected: FAIL
[elementsFromPoint on inner documents]
expected: FAIL

View file

@ -0,0 +1,2 @@
[backdrop-filters-grayscale-001.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[backdrop-filters-grayscale-002.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[backdrop-filters-grayscale-003.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[backdrop-filters-grayscale.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[effect-reference-convolve-error-001.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[filters-drop-shadow-001.html]
expected: FAIL

View file

@ -1,3 +0,0 @@
[filters-drop-shadow.html]
type: reftest
expected: FAIL

View file

@ -312,27 +312,18 @@
[fetch(): separate response Content-Type: text/plain ]
expected: NOTRUN
[<iframe>: combined response Content-Type: text/html;" \\" text/plain]
expected: FAIL
[<iframe>: combined response Content-Type: text/html;" text/plain]
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
[<iframe>: combined response Content-Type: text/html */*;charset=gbk]
expected: FAIL
[<iframe>: combined response Content-Type: */* text/html]
expected: FAIL
[<iframe>: separate response Content-Type: text/html;" text/plain]
expected: FAIL
[<iframe>: separate response Content-Type: text/html */*]
[<iframe>: combined response Content-Type: text/html */*]
expected: FAIL

View file

@ -11,6 +11,3 @@
[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%40%23%24%23%25%25%26%5E%26%5E*()()11!%2Cnosniff]
expected: FAIL

View file

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

View file

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

View file

@ -1,5 +1,5 @@
[embedded-opener-remove-frame.html]
expected: CRASH
expected: TIMEOUT
[opener and "removed" embedded documents]
expected: FAIL

View file

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

View file

@ -0,0 +1,2 @@
[script-onerror-insertion-point-2.html]
expected: TIMEOUT

View file

@ -0,0 +1,4 @@
[2d.text.draw.fill.maxWidth.fontface.html]
[fillText works on @font-face fonts]
expected: FAIL

View file

@ -0,0 +1,4 @@
[2d.text.draw.fill.maxWidth.fontface.worker.html]
[fillText works on @font-face fonts]
expected: FAIL

View file

@ -113,3 +113,6 @@
[X Rendered audio for channel 5 does not equal [0,0.0626220703125,0.125030517578125,0.18695068359375,0.24810791015625,0.308319091796875,0.3673095703125,0.42486572265625,0.480743408203125,0.53472900390625,0.58660888671875,0.636199951171875,0.68328857421875,0.727691650390625,0.76922607421875,0.8077392578125...\] with an element-wise tolerance of {"absoluteThreshold":0.000030517578125,"relativeThreshold":0}.\n\tIndex\tActual\t\t\tExpected\t\tAbsError\t\tRelError\t\tTest threshold\n\t[1\]\t3.6732959747314453e-1\t6.2622070312500000e-2\t3.0470752716064453e-1\t4.8658168859649127e+0\t3.0517578125000000e-5\n\t[2\]\t6.8329977989196777e-1\t1.2503051757812500e-1\t5.5826926231384277e-1\t4.4650639949963384e+0\t3.0517578125000000e-5\n\t[3\]\t9.0373212099075317e-1\t1.8695068359375000e-1\t7.1678143739700317e-1\t3.8340669508039502e+0\t3.0517578125000000e-5\n\t[4\]\t9.9780619144439697e-1\t2.4810791015625000e-1\t7.4969828128814697e-1\t3.0216621502152523e+0\t3.0517578125000000e-5\n\t[5\]\t9.5236867666244507e-1\t3.0831909179687500e-1\t6.4404958486557007e-1\t2.0889059484187866e+0\t3.0517578125000000e-5\n\t...and 38772 more errors.\n\tMax AbsError of 1.9986916780471802e+0 at index of 15790.\n\t[15790\]\t9.9994289875030518e-1\t-9.9874877929687500e-1\t1.9986916780471802e+0\t2.0011956154322119e+0\t3.0517578125000000e-5\n\tMax RelError of Infinity at index of 14112.\n\t[14112\]\t-9.5105654001235962e-1\t0.0000000000000000e+0\t9.5105654001235962e-1\tInfinity\t3.0517578125000000e-5\n]
expected: FAIL
[X Rendered audio for channel 5 does not equal [0,0.0626220703125,0.125030517578125,0.18695068359375,0.24810791015625,0.308319091796875,0.3673095703125,0.42486572265625,0.480743408203125,0.53472900390625,0.58660888671875,0.636199951171875,0.68328857421875,0.727691650390625,0.76922607421875,0.8077392578125...\] with an element-wise tolerance of {"absoluteThreshold":0.000030517578125,"relativeThreshold":0}.\n\tIndex\tActual\t\t\tExpected\t\tAbsError\t\tRelError\t\tTest threshold\n\t[1\]\t3.6732959747314453e-1\t6.2622070312500000e-2\t3.0470752716064453e-1\t4.8658168859649127e+0\t3.0517578125000000e-5\n\t[2\]\t6.8329977989196777e-1\t1.2503051757812500e-1\t5.5826926231384277e-1\t4.4650639949963384e+0\t3.0517578125000000e-5\n\t[3\]\t9.0373212099075317e-1\t1.8695068359375000e-1\t7.1678143739700317e-1\t3.8340669508039502e+0\t3.0517578125000000e-5\n\t[4\]\t9.9780619144439697e-1\t2.4810791015625000e-1\t7.4969828128814697e-1\t3.0216621502152523e+0\t3.0517578125000000e-5\n\t[5\]\t9.5236867666244507e-1\t3.0831909179687500e-1\t6.4404958486557007e-1\t2.0889059484187866e+0\t3.0517578125000000e-5\n\t...and 42287 more errors.\n\tMax AbsError of 1.9900983572006226e+0 at index of 41022.\n\t[41022\]\t-9.9751412868499756e-1\t9.9258422851562500e-1\t1.9900983572006226e+0\t2.0049667323212912e+0\t3.0517578125000000e-5\n\tMax RelError of Infinity at index of 10584.\n\t[10584\]\t-5.8778524398803711e-1\t0.0000000000000000e+0\t5.8778524398803711e-1\tInfinity\t3.0517578125000000e-5\n]
expected: FAIL

View file

@ -308,3 +308,6 @@
[X Stitched sine-wave buffers at sample rate 44100 does not equal [0,0.06264832615852356,0.12505052983760834,0.18696144223213196,0.24813786149024963,0.308339387178421,0.36732959747314453,0.4248766601085663,0.480754554271698,0.5347436666488647,0.5866320133209229,0.6362156271934509,0.6832997798919678,0.7276994585990906,0.7692402601242065,0.8077589869499207...\] with an element-wise tolerance of {"absoluteThreshold":0.000090957,"relativeThreshold":0}.\n\tIndex\tActual\t\t\tExpected\t\tAbsError\t\tRelError\t\tTest threshold\n\t[31080\]\t-1.0346872832000000e+10\t5.6332010030746460e-1\t1.0346872832563320e+10\t1.8367661347280018e+10\t9.0957000000000003e-5\n\t[31081\]\t4.5699145518560934e-41\t6.1397600173950195e-1\t6.1397600173950195e-1\t1.0000000000000000e+0\t9.0957000000000003e-5\n\tMax AbsError of 1.0346872832563320e+10 at index of 31080.\n\tMax RelError of 1.8367661347280018e+10 at index of 31080.\n]
expected: FAIL
[X Stitched sine-wave buffers at sample rate 44100 does not equal [0,0.06264832615852356,0.12505052983760834,0.18696144223213196,0.24813786149024963,0.308339387178421,0.36732959747314453,0.4248766601085663,0.480754554271698,0.5347436666488647,0.5866320133209229,0.6362156271934509,0.6832997798919678,0.7276994585990906,0.7692402601242065,0.8077589869499207...\] with an element-wise tolerance of {"absoluteThreshold":0.000090957,"relativeThreshold":0}.\n\tIndex\tActual\t\t\tExpected\t\tAbsError\t\tRelError\t\tTest threshold\n\t[31080\]\t1.1879997299240753e-31\t5.6332010030746460e-1\t5.6332010030746460e-1\t1.0000000000000000e+0\t9.0957000000000003e-5\n\t[31081\]\t4.5617870207630095e-41\t6.1397600173950195e-1\t6.1397600173950195e-1\t1.0000000000000000e+0\t9.0957000000000003e-5\n\tMax AbsError of 6.1397600173950195e-1 at index of 31081.\n\tMax RelError of 1.0000000000000000e+0 at index of 31080.\n]
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

@ -1,7 +1,8 @@
[shared-worker-in-data-url-context.window.html]
expected: TIMEOUT
[Create a shared worker in a data url frame]
expected: FAIL
expected: TIMEOUT
[Create a data url shared worker in a data url frame]
expected: FAIL
expected: NOTRUN

View file

@ -0,0 +1,22 @@
<!DOCTYPE html>
<title>CSS Cascade: using 'revert' with the 'all' property</title>
<link rel="help" href="https://drafts.csswg.org/css-cascade/#default">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style>
div {
display: inline;
}
.revert {
all: revert;
}
</style>
<div id=div></div>
<script>
test(function() {
let cs = getComputedStyle(div);
assert_equals(cs.display, 'inline');
div.className = 'revert';
assert_equals(cs.display, 'block');
}, 'The revert keyword works with the all property');
</script>

View file

@ -0,0 +1,40 @@
<!DOCTYPE html>
<title>CSS Cascade: 'revert' in css-logical properties</title>
<link rel="help" href="https://drafts.csswg.org/css-cascade/#default">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style>
#h1_physical {
margin: 0px;
margin: revert;
}
#h1_logical {
margin: 0px;
margin-inline-start: revert;
margin-inline-end: revert;
margin-block-start: revert;
margin-block-end: revert;
}
</style>
<h1 id=h1_physical></h1>
<h1 id=h1_logical></h1>
<h1 id=ref></h1>
<script>
test(function() {
let actual = getComputedStyle(h1_physical).marginTop;
let expected = getComputedStyle(ref).marginTop;
// This test assumes that the UA style sheet sets a non-0px value on
// <h1> elements:
assert_not_equals(expected, '0px');
assert_equals(actual, expected);
}, 'The revert keyword works with physical properties');
test(function() {
let actual = getComputedStyle(h1_logical).marginTop;
let expected = getComputedStyle(ref).marginTop;
// This test assumes that the UA style sheet sets a non-0px value on
// <h1> elements:
assert_not_equals(expected, '0px');
assert_equals(actual, expected);
}, 'The revert keyword works with logical properties');
</script>

View file

@ -42,14 +42,6 @@
<div class="overflow"><div style="width: 100px; height: 20px"></div></div>
</div>
<div class="flexbox vertical to-be-checked" check-height check-accounts-scrollbar>
<div class="overflow"><div style="width: 100px; height: 20px"></div></div>
</div>
<div class="flexbox row-reverse vertical to-be-checked" check-height check-accounts-scrollbar>
<div class="overflow"><div style="width: 100px; height: 20px"></div></div>
</div>
<div class="flexbox to-be-checked" check-height check-accounts-scrollbar>
<div class="overflow align-self-baseline"><div style="width: 100px; height: 20px"></div></div>
</div>
@ -66,14 +58,6 @@
<div class="overflow align-self-baseline"><div style="width: 100px; height: 20px"></div></div>
</div>
<div class="inline-flexbox column to-be-checked" check-width check-accounts-scrollbar>
<div class="overflow"><div style="width: 20px; height: 100px"></div></div>
</div>
<div class="inline-flexbox column-reverse to-be-checked" check-width check-accounts-scrollbar>
<div class="overflow"><div style="width: 20px; height: 100px"></div></div>
</div>
<div class="inline-flexbox column vertical to-be-checked" check-width check-accounts-scrollbar>
<div class="overflow"><div style="width: 20px; height: 100px"></div></div>
</div>
@ -82,14 +66,6 @@
<div class="overflow"><div style="width: 20px; height: 100px"></div></div>
</div>
<div class="inline-flexbox column to-be-checked" check-width check-accounts-scrollbar>
<div class="overflow align-self-baseline"><div style="width: 20px; height: 100px"></div></div>
</div>
<div class="inline-flexbox column-reverse to-be-checked" check-width check-accounts-scrollbar>
<div class="overflow align-self-baseline"><div style="width: 20px; height: 100px"></div></div>
</div>
<div class="inline-flexbox column vertical to-be-checked" check-width>
<div class="overflow align-self-baseline"><div style="width: 20px; height: 100px"></div></div>
</div>

View file

@ -3,7 +3,7 @@
<body>
<p>When stretching a range input, the thumb should be centered vertically.</p>
<div style="height: 200px;">
<input type="range" style="width: 100%; height: 100%; margin: 0;">
<input type="range" style="width: 100%; height: 100%; margin: 0; box-sizing: border-box;">
</div>
</body>
</html>

View file

@ -10,6 +10,5 @@
test_invalid_value("forced-color-adjust", "none none");
test_invalid_value("forced-color-adjust", "none auto");
test_invalid_value("forced-color-adjust", "1");
test_invalid_value("forced-color-adjust", "revert");
test_invalid_value("forced-color-adjust", "default");
</script>

View file

@ -1,6 +1,6 @@
<!DOCTYPE html>
<link rel="help" href="https://drafts.css-houdini.org/css-properties-values-api-1/#the-registerproperty-function" />
<meta name="assert" content="Verifies that registering a propety does not affect the cascade" />
<meta name="assert" content="Verifies that registering a property does not affect the cascade" />
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>

View file

@ -0,0 +1,48 @@
<!DOCTYPE html>
<link rel="help" href="https://drafts.css-houdini.org/css-properties-values-api-1" />
<link rel="help" href="https://drafts.csswg.org/css-cascade/#default" />
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style>
#parent {
--inherited: 10px;
--non-inherited: 10px;
}
#child {
--inherited: 20px;
--non-inherited: 20px;
--inherited: revert;
--non-inherited: revert;
}
</style>
<div id=parent>
<div id=child>
</div>
</div>
<script>
CSS.registerProperty({
name: "--inherited",
syntax: "<length>",
initialValue: "0px",
inherits: true
});
CSS.registerProperty({
name: "--non-inherited",
syntax: "<length>",
initialValue: "0px",
inherits: false
});
test(function(){
let cs = getComputedStyle(child);
assert_equals(cs.getPropertyValue('--inherited'), '10px');
}, 'Inherited registered custom property can be reverted');
test(function(){
let cs = getComputedStyle(child);
assert_equals(cs.getPropertyValue('--non-inherited'), '0px');
}, 'Non-inherited registered custom property can be reverted');
</script>

View file

@ -0,0 +1,51 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>Overflow with preserve-3d and percentage-transformed parent is computed using the right reference box</title>
<link rel="author" title="Mozilla" href="https://mozilla.org">
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
<link rel="help" href="https://drafts.csswg.org/css-transforms-2/#transform-style-property">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1626840">
<link rel="mismatch" href="/common/blank.html">
<style>
:root {
overflow: hidden;
}
body {
margin: 0;
font-size: 28px;
}
#map {
width: 100%;
height: 100%;
backface-visibility: hidden;
}
.floor {
width: 100%;
height: 100vh;
}
.skew {
height: 20em;
width: 20em;
position: relative;
left: 50%;
top: calc(50% + 1.5em);
transform-origin: 0% 0%;
transform: rotateX(45deg) rotateZ(-45deg) translateX(-50%) translateY(-50%);
transform-style: preserve-3d;
}
.cylinder {
position: absolute;
background-color: green;
transform-style: preserve-3d;
width: 7em;
height: 7em;
transform: translateZ(1em);
}
</style>
<div id="map">
<div class="floor">
<div class="skew" style="width: 13em; height: 47em; left: calc(50% + 0em); top: calc(50% + 0.5em);">
<div class="cylinder" style="left: calc(1.5em + 0em); top: calc(38em + 0em);"></div>
</div>
</div>
</div>

View file

@ -33,6 +33,10 @@ const gCssWideKeywordsExamples = [
description: 'unset keyword',
input: new CSSKeywordValue('initial')
},
{
description: 'revert keyword',
input: new CSSKeywordValue('revert')
},
];
const gVarReferenceExamples = [

View file

@ -22,6 +22,7 @@ test_invalid_value("will-change", "contents, auto");
test_invalid_value("will-change", "transform, initial");
test_invalid_value("will-change", "transform, inherit");
test_invalid_value("will-change", "transform, unset");
test_invalid_value("will-change", "transform, revert");
test_invalid_value("will-change", "transform, default");
// will-change additionally excludes the following from <custom-ident>

View file

@ -0,0 +1,41 @@
<!DOCTYPE html>
<title>CSS Backdrop Filters: Grayscale(50%)</title>
<link rel="author" title="Mason Freed" href="mailto:masonfreed@chromium.org">
<link rel="help" href="https://drafts.fxtf.org/filter-effects-2/#BackdropFilterProperty">
<link rel="help" href="https://drafts.fxtf.org/filter-effects-1/#supported-filter-functions">
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=831485">
<link rel="match" href="reference/backdrop-filters-grayscale-001-ref.html">
<meta name="assert" content="Check that backdrop-filter works with grayscale(50%)."/>
<style>
.square {
position: absolute;
width: 100px;
height: 100px;
top: 100px;
left: 100px;
background: blue;
}
.filt {
backdrop-filter: grayscale(50%);
position: absolute;
width: 200px;
height: 200px;
top: 50px;
left: 50px;
}
.greenbox {
position: absolute;
width: 50px;
height: 50px;
top: 75px;
left: 75px;
background: green;
}
</style>
<p>You should see a dark blue rectangle with a green box.</p>
<div class="square"></div>
<div class="filt">
<div class="greenbox"></div>
</div>

View file

@ -0,0 +1,38 @@
<!DOCTYPE html>
<html>
<head>
<title>CSS Backdrop Filters: Grayscale(100%) with transparent background color</title>
<link rel="author" title="Hendrik Wagenaar" href="mailto:hendrikw@chromium.org">
<link rel="help" href="https://drafts.fxtf.org/filter-effects-2/#BackdropFilterProperty">
<link rel="help" href="https://drafts.fxtf.org/filter-effects-1/#supported-filter-functions">
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=497522">
<link rel="match" href="reference/backdrop-filters-grayscale-002-ref.html">
<meta name="assert" content="Check that backdrop-filter works with grayscale(100%) and a transparent background color."/>
<style>
div {
width: 100px;
height: 100px;
position: absolute;
}
.background_object {
left: 10px;
top: 10px;
background: orange;
}
.grayscale_backdrop {
left: 60px;
top: 60px;
background: #fff0;
backdrop-filter: grayscale(100%);
}
</style>
</head>
<body>
<div class="background_object"></div>
<div class="grayscale_backdrop"></div>
</body>
</html>

View file

@ -0,0 +1,37 @@
<!DOCTYPE html>
<html>
<head>
<title>CSS Backdrop Filters: Grayscale(100%) with no background</title>
<link rel="author" title="Jay Dasika" href="mailto:jaydasika@chromium.org">
<link rel="help" href="https://drafts.fxtf.org/filter-effects-2/#BackdropFilterProperty">
<link rel="help" href="https://drafts.fxtf.org/filter-effects-1/#supported-filter-functions">
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=527452">
<link rel="match" href="reference/backdrop-filters-grayscale-003-ref.html">
<meta name="assert" content="Check that backdrop-filter works with grayscale(100%) and no background."/>
<style>
div {
width: 100px;
height: 100px;
position: absolute;
}
.background_object {
left: 10px;
top: 10px;
background: orange;
}
.grayscale_backdrop {
left: 60px;
top: 60px;
backdrop-filter: grayscale(100%);
}
</style>
</head>
<body>
<div class="background_object"></div>
<div class="grayscale_backdrop"></div>
</body>
</html>

View file

@ -1,36 +0,0 @@
<!DOCTYPE html>
<title>CSS Backdrop Filters Animation: Grayscale</title>
<link rel="author" title="Mason Freed" href="mailto:masonfreed@chromium.org">
<link rel="help" href="https://drafts.fxtf.org/filter-effects-2/#BackdropFilterProperty">
<link rel="match" href="backdrop-filters-grayscale-ref.html">
<style>
.square {
position: absolute;
width: 100px;
height: 100px;
top: 100px;
left: 100px;
background: blue;
}
.filt {
backdrop-filter: grayscale(50%);
position: absolute;
width: 200px;
height: 200px;
top: 50px;
left: 50px;
}
.greenbox {
position: absolute;
width: 50px;
height: 50px;
top: 75px;
left: 75px;
background: green;
}
</style>
<p>You should see a dark blue rectangle with a green box.</p>
<div class="square"></div>
<div class="filt">
<div class="greenbox"></div>
</div>

View file

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html class="reftest-wait">
<title>CSS Filters: dynamic filter changes on images with will-change: transform</title>
<link rel="author" title="Noel Gordon" href="mailto:noel@chromium.org">
<link rel="help" href="https://drafts.fxtf.org/filter-effects-1/#FilterProperty">
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=405803">
<link rel="match" href="reference/dynamic-filter-changes-001-ref.html">
<meta name="assert" content="A filtered image should be visible after adding a filter to an image with will-change: transform."/>
<style>
.filter {
filter: invert(100%);
}
</style>
<script src="/common/reftest-wait.js"></script>
<script>
function load(element) {
element.classList.add('filter');
takeScreenshotDelayed(0);
}
</script>
<body>
<img style="will-change: transform" onload="load(this)" src="/images/green-256x256.png">
</body>
</html>

View file

@ -0,0 +1,17 @@
<!doctype html>
<title>SVG Filters: feColorMatrix filter</title>
<link rel="help" href="https://drafts.fxtf.org/filter-effects/#FilterProperty">
<link rel="help" href="https://drafts.fxtf.org/filter-effects/#feColorMatrixElement">
<link rel="help" href="https://bugs.webkit.org/show_bug.cgi?id=90405">
<link rel="match" href="reference/effect-reference-after-001-ref.html">
<meta name="assert" content="Check that a reference filter with forward references work"/>
<body>
<img style="filter: url(#MyFilter);" src="support/reference.png">
<svg width="0px" height="0px">
<defs>
<filter id="MyFilter">
<feColorMatrix type="hueRotate" values="180"/>
</filter>
</defs>
</svg>
</body>

View file

@ -0,0 +1,21 @@
<!DOCTYPE html>
<title>SVG Filters: feConvolveMatrix filter</title>
<link rel="author" title="Fredrik Söderquist" href="mailto:fs@opera.com">
<link rel="help" href="https://drafts.fxtf.org/filter-effects/#FilterProperty">
<link rel="help" href="https://drafts.fxtf.org/filter-effects/#feConvolveMatrixElement">
<link rel="help" href="https://drafts.fxtf.org/filter-effects/#ColorInterpolationFiltersProperty">
<link rel="help" href="https://drafts.fxtf.org/filter-effects/#feColorMatrixElement">
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=533457">
<link rel="match" href="reference/effect-reference-convolve-error-001-ref.html">
<meta name="assert" content="feConvolveMatrix without a kernelMatrix acts as a pass through filter"/>
<div style="width: 100px; height: 100px; background-color: red; filter: url(#f)"></div>
<svg height="0">
<filter id="f" x="0" y="0" width="1" height="1">
<feConvolveMatrix/>
<feColorMatrix values="1 0 0 0 0,
0 1 0 0 0.5,
0 0 1 0 0,
0 0 0 1 1"
color-interpolation-filters="sRGB"/>
</filter>
</svg>

View file

@ -0,0 +1,14 @@
<!DOCTYPE html>
<title>CSS Filters: url() with non-existent filter reference</title>
<link rel="author" title="Justin Novosad" href="mailto:junov@chromium.org">
<link rel="help" href="https://drafts.fxtf.org/filter-effects-1/#FilterProperty">
<link rel="help" href="https://drafts.csswg.org/css-values-4/#local-urls">
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=419429">
<link rel="match" href="reference/filter-url-to-non-existent-filter-001-ref.html">
<meta name="assert" content="Tests that a non-existent filter reference is gracefully ignored."/>
<marquee>
<li style="filter: url(#foo); color: white"></li>
</marquee>
<!-- Test passes by not crashing -->
<p>PASS</p>

View file

@ -6,7 +6,7 @@
<link rel="reviewer" title="Dirk Schulze" href="mailto:dschulze@adobe.com">
<link rel="help" href="https://www.w3.org/TR/filter-effects-1/#funcdef-filter-drop-shadow">
<link rel="help" href="http://www.w3.org/TR/filter-effects-1/#dropshadowEquivalent">
<link rel="match" href="filters-drop-shadow-ref.html">
<link rel="match" href="reference/filters-drop-shadow-001-ref.html">
<meta name="flags" content="">
<meta name="assert" content="This test verifies that the drop-shadow shorthand works. Green box with green shadow.
The shadows appear 10px down and 20px right under the Green box. The red box must not appear under the Green box.">

View file

@ -0,0 +1,30 @@
<!DOCTYPE html>
<title>CSS Filters: drop-shadow filter on element with clipped children</title>
<link rel="author" title="Stephen White" href="mailto:senorblanco@chromium.org">
<link rel="help" href="https://drafts.fxtf.org/filter-effects-1/#FilterProperty">
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=350411">
<link rel="match" href="reference/filters-drop-shadow-002-ref.html">
<meta name="assert" content="Check that clipping gets correctly applied on children of a container with a drop-shadow filter in effect."/>
<style>
.container {
filter: drop-shadow(5px 5px 5px black);
}
.circle-mask {
border-radius: 80px;
overflow: hidden;
width: 100px;
height: 100px;
position: absolute;
}
.green-box {
width: 100px;
height: 100px;
background-color: green;
}
</style>
<div class="container">
<div class="circle-mask">
<div class="green-box"></div>
</div>
</div>

View file

@ -0,0 +1,30 @@
<!DOCTYPE html>
<html>
<head>
<style>
div {
width: 100px;
height: 100px;
position: absolute;
}
.background_object {
left: 10px;
top: 10px;
background: orange;
}
.grayscale {
left: 60px;
top: 60px;
width: 50px;
height: 50px;
background: #ACACAC;
}
</style>
</head>
<body>
<div class="background_object"></div>
<div class="grayscale"></div>
</body>
</html>

View file

@ -0,0 +1,30 @@
<!DOCTYPE html>
<html>
<head>
<style>
div {
width: 100px;
height: 100px;
position: absolute;
}
.background_object {
left: 10px;
top: 10px;
background: orange;
}
.grayscale {
left: 60px;
top: 60px;
width: 50px;
height: 50px;
background: #ACACAC;
}
</style>
</head>
<body>
<div class="background_object"></div>
<div class="grayscale"></div>
</body>
</html>

View file

@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>
<style>
.filter {
transform: translateZ(0);
filter: invert(100%);
}
</style>
<!-- There should be a bright pink box on this page -->
<body>
<img class="filter" src="/images/green-256x256.png">
</body>
</html>

View file

@ -0,0 +1,12 @@
<!doctype html>
<html>
<body>
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="0px" height="0px">
<defs>
<filter id="MyFilter">
<feColorMatrix type="hueRotate" values="180"/>
</filter>
</defs>
</svg><img style="filter: url(#MyFilter);" src="../support/reference.png">
</body>
</html>

View file

@ -0,0 +1,2 @@
<!DOCTYPE html>
<div style="width: 100px; height: 100px; background-color: green"></div>

View file

@ -0,0 +1,5 @@
<!DOCTYPE html>
<marquee>
<li style="color: white"></li>
</marquee>
<p>PASS</p>

View file

@ -0,0 +1,22 @@
<!DOCTYPE html>
<style>
.container {
filter: drop-shadow(5px 5px 5px black);
}
.circle-mask {
border-radius: 80px;
overflow: hidden;
width: 100px;
height: 100px;
}
.green-box {
width: 100px;
height: 100px;
background-color: green;
}
</style>
<div class="container">
<div class="circle-mask">
<div class="green-box"></div>
</div>
</div>

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

View file

@ -0,0 +1,27 @@
<!doctype html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div contenteditable>
<p id="p1"><br></p>
<p id="p2"></p>
</div>
<script>
"use strict";
let editor = document.querySelector("[contenteditable]");
let p1 = document.getElementById("p1");
let p2 = document.getElementById("p2");
p1.addEventListener("DOMNodeInserted", event => {
if (event.target.localName === "i") {
p2.appendChild(event.target);
}
});
document.getSelection().collapse(p1, 0);
document.execCommand("insertHTML", false,
"<b>bold1</b><i>italic1</i><b>bold2</b><i>italic2</i>");
test(function () {
assert_in_array(p1.innerHTML, ["<b>bold1</b><b>bold2</b><br>", "<b>bold1</b><b>bold2</b>"]);
}, "First <p> element should have only <b> elements");
test(function () {
assert_equals(p2.innerHTML, "<i>italic1</i><i>italic2</i>");
}, "Second <p> element should have only <i> elements");
</script>

View file

@ -0,0 +1,30 @@
<!DOCTYPE html>
<html>
<head>
<title>Image load parses URL after microtask runs</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<img id="img">
<script>
const t = async_test("An image request's parsed URL should be affected by a " +
"dynamically-inserted <base>, if it was inserted before " +
"the image request microtask runs");
t.step(() => {
const elm = document.getElementById('img');
elm.src = 'resources/image.png';
elm.onload = t.unreached_func("The image should have failed to load, as " +
"the request URL should be affected by the " +
"<base> element");
elm.onerror = t.step_func_done();
const base = document.createElement("base");
base.setAttribute("href", "bogus/");
document.head.appendChild(base);
});
</script>
</body>
</html>

View file

@ -31,6 +31,7 @@
<img crossorigin=use-credentials data-desc="crossorigin use-credentials to absent, src absent">
<img crossorigin=use-credentials data-desc="crossorigin use-credentials to empty, src absent">
<img crossorigin=use-credentials data-desc="crossorigin use-credentials to anonymous, src absent">
<img crossorigin=use-credentials data-desc="crossorigin use-credentials to invalid, src absent">
<img src="/images/green-2x2.png" data-desc="crossorigin absent to empty, src already set">
<img src="/images/green-2x2.png" data-desc="crossorigin absent to anonymous, src already set">
@ -42,6 +43,7 @@
<img src="/images/green-2x2.png" crossorigin=use-credentials data-desc="crossorigin use-credentials to absent, src already set">
<img src="/images/green-2x2.png" crossorigin=use-credentials data-desc="crossorigin use-credentials to empty, src already set">
<img src="/images/green-2x2.png" crossorigin=use-credentials data-desc="crossorigin use-credentials to anonymous, src already set">
<img src="/images/green-2x2.png" crossorigin=use-credentials data-desc="crossorigin use-credentials to invalid, src already set">
<img src="/images/green-2x2.png" data-desc="inserted into picture"><picture></picture>
@ -220,6 +222,10 @@ onload = function() {
img.crossOrigin = 'anonymous';
}, 'timeout');
t('crossorigin use-credentials to invalid, src absent', function(img) {
img.crossOrigin = 'foobar';
}, 'timeout');
// When src is set, changing the crossorigin attribute state MUST generate
// events.
@ -263,6 +269,10 @@ onload = function() {
img.crossOrigin = 'anonymous';
}, 'load');
t('crossorigin use-credentials to invalid, src already set', function(img) {
img.crossOrigin = 'foobar';
}, 'load');
t('inserted into picture', function(img) {
img.nextSibling.appendChild(img);
}, 'load');

View file

@ -0,0 +1,93 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>margin</title>
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#layout-algorithms">
<meta name="assert" content="Verify that margin is taken into account on children.">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/mathml/support/feature-detection.js"></script>
<script src="/mathml/support/mathml-fragments.js"></script>
<script src="/mathml/support/layout-comparison.js"></script>
<script>
var epsilon = 1;
setup({ explicit_done: true });
window.addEventListener("load", runTests);
function runTests() {
for (tag in MathMLFragments) {
if (!FragmentHelper.isValidChildOfMrow(tag) ||
FragmentHelper.isEmpty(tag) ||
FragmentHelper.isTokenElement(tag) ||
tag == "semantics" ||
tag == "maction" ||
tag == "mtable")
continue;
test(function() {
assert_true(MathMLFeatureDetection[`has_${tag}`](), `${tag} is supported`);
document.body.insertAdjacentHTML("beforeend", `<hr/><div>\
<div style="display: inline-block; border: 1px dashed blue;"><math>${MathMLFragments[tag]}</math></div><br/>\
<div style="display: inline-block; border: 1px dashed green;"><math>${MathMLFragments[tag]}</math></div>\
</div>`);
var div = document.body.lastElementChild;
var elementShrinkWrapContainer = div.firstElementChild;
var element = elementShrinkWrapContainer.firstElementChild.firstElementChild;
var elementContainer = div.firstElementChild;
var referenceShrinkWrapContainer = div.lastElementChild;
var reference = referenceShrinkWrapContainer.firstElementChild.firstElementChild;
FragmentHelper.forceNonEmptyElement(element);
FragmentHelper.forceNonEmptyElement(reference);
var mspaceWidth = 20, mspaceHeight = 40, mspaceDepth = 30;
var marginLeft = 10, marginRight = 15, marginTop = 20, marginBottom = 25;
Array.from(element.children).forEach(mrow => {
mrow.outerHTML = `<mspace width="${mspaceWidth}px" height="${mspaceHeight}px" depth='${mspaceDepth}px' style='background: blue; margin-left: ${marginLeft}px; margin-right: ${marginRight}px; margin-top: ${marginTop}px; margin-bottom: ${marginBottom}px;'></mspace>`;
});
Array.from(reference.children).forEach(mrow => {
mrow.outerHTML = `<mspace width="${marginLeft+mspaceWidth+marginRight}px" height="${mspaceHeight+marginTop}px" depth='${mspaceDepth+marginBottom}px' style='background: green;'></mspace>`;
});
// Compare sizes.
compareSize(element, reference, epsilon);
// Compare children positions.
var elementBox = element.getBoundingClientRect();
var referenceBox = reference.getBoundingClientRect();
for (var i = 0; i < element.children.length; i++) {
var childBox = element.children[i].getBoundingClientRect();
var referenceChildBox = reference.children[i].getBoundingClientRect();
assert_approx_equals(childBox.width + marginLeft + marginRight, referenceChildBox.width, epsilon, "inline size (child ${i})");
assert_approx_equals(childBox.height + marginTop + marginBottom, referenceChildBox.height, epsilon, "block size (child ${i})");
assert_approx_equals(childBox.left - marginLeft - elementBox.left,
referenceChildBox.left - referenceBox.left,
epsilon,
`inline position (child ${i})`);
assert_approx_equals(childBox.top - marginTop - elementBox.top,
referenceChildBox.top - referenceBox.top,
epsilon,
`block position (child ${i})`);
}
// Compare preferred widths.
assert_approx_equals(elementShrinkWrapContainer.offsetWidth, referenceShrinkWrapContainer.offsetWidth, epsilon, "preferred width");
}, `Margin properties on the children of ${tag}`);
}
done();
}
</script>
</head>
<body>
<div id="log"></div>
</body>
</html>

View file

@ -132,6 +132,14 @@ var FragmentHelper = {
tag == "mtd");
},
isTokenElement: function(tag) {
return (tag == "mi" ||
tag == "mtext" ||
tag == "mo" ||
tag == "mn" ||
tag == "ms")
},
isEmpty: function(tag) {
return tag === "mspace" || tag == "mprescripts" || tag == "none";
},

View file

@ -20,9 +20,12 @@ t.step(function() {
var offscreenCanvas = new OffscreenCanvas(100, 50);
var ctx = offscreenCanvas.getContext('2d');
ctx.font = '50px CanvasTest';
new Promise(function(resolve) { step_timeout(resolve, 500); })
.then(function() {
var f = new FontFace("CanvasTest", "url('/fonts/CanvasTest.ttf')");
let fonts = (self.fonts ? self.fonts : document.fonts);
f.load();
fonts.add(f);
fonts.ready.then(function() {
ctx.font = '50px CanvasTest';
ctx.fillStyle = '#f00';
ctx.fillRect(0, 0, 100, 50);
ctx.fillStyle = '#0f0';

View file

@ -16,9 +16,12 @@ t.step(function() {
var offscreenCanvas = new OffscreenCanvas(100, 50);
var ctx = offscreenCanvas.getContext('2d');
ctx.font = '50px CanvasTest';
new Promise(function(resolve) { step_timeout(resolve, 500); })
.then(function() {
var f = new FontFace("CanvasTest", "url('/fonts/CanvasTest.ttf')");
let fonts = (self.fonts ? self.fonts : document.fonts);
f.load();
fonts.add(f);
fonts.ready.then(function() {
ctx.font = '50px CanvasTest';
ctx.fillStyle = '#f00';
ctx.fillRect(0, 0, 100, 50);
ctx.fillStyle = '#0f0';

View file

@ -20,9 +20,12 @@ t.step(function() {
var offscreenCanvas = new OffscreenCanvas(100, 50);
var ctx = offscreenCanvas.getContext('2d');
ctx.font = '50px CanvasTest';
new Promise(function(resolve) { step_timeout(resolve, 500); })
.then(function() {
var f = new FontFace("CanvasTest", "url('/fonts/CanvasTest.ttf')");
let fonts = (self.fonts ? self.fonts : document.fonts);
f.load();
fonts.add(f);
fonts.ready.then(function() {
ctx.font = '50px CanvasTest';
ctx.fillStyle = '#f00';
ctx.fillRect(0, 0, 100, 50);
ctx.fillStyle = '#0f0';

View file

@ -16,9 +16,12 @@ t.step(function() {
var offscreenCanvas = new OffscreenCanvas(100, 50);
var ctx = offscreenCanvas.getContext('2d');
ctx.font = '50px CanvasTest';
new Promise(function(resolve) { step_timeout(resolve, 500); })
.then(function() {
var f = new FontFace("CanvasTest", "url('/fonts/CanvasTest.ttf')");
let fonts = (self.fonts ? self.fonts : document.fonts);
f.load();
fonts.add(f);
fonts.ready.then(function() {
ctx.font = '50px CanvasTest';
ctx.fillStyle = '#f00';
ctx.fillRect(0, 0, 100, 50);
ctx.fillStyle = '#0f0';

View file

@ -20,9 +20,12 @@ t.step(function() {
var offscreenCanvas = new OffscreenCanvas(100, 50);
var ctx = offscreenCanvas.getContext('2d');
ctx.font = '50px CanvasTest';
new Promise(function(resolve) { step_timeout(resolve, 500); })
.then(function() {
var f = new FontFace("CanvasTest", "url('/fonts/CanvasTest.ttf')");
let fonts = (self.fonts ? self.fonts : document.fonts);
f.load();
fonts.add(f);
fonts.ready.then(function() {
ctx.font = '50px CanvasTest';
ctx.fillStyle = '#f00';
ctx.fillRect(0, 0, 100, 50);
ctx.fillStyle = '#0f0';

View file

@ -16,9 +16,12 @@ t.step(function() {
var offscreenCanvas = new OffscreenCanvas(100, 50);
var ctx = offscreenCanvas.getContext('2d');
ctx.font = '50px CanvasTest';
new Promise(function(resolve) { step_timeout(resolve, 500); })
.then(function() {
var f = new FontFace("CanvasTest", "url('/fonts/CanvasTest.ttf')");
let fonts = (self.fonts ? self.fonts : document.fonts);
f.load();
fonts.add(f);
fonts.ready.then(function() {
ctx.font = '50px CanvasTest';
ctx.fillStyle = '#f00';
ctx.fillRect(0, 0, 100, 50);
ctx.fillStyle = '#0f0';

View file

@ -20,9 +20,12 @@ t.step(function() {
var offscreenCanvas = new OffscreenCanvas(100, 50);
var ctx = offscreenCanvas.getContext('2d');
ctx.font = '50px CanvasTest';
new Promise(function(resolve) { step_timeout(resolve, 500); })
.then(function() {
var f = new FontFace("CanvasTest", "url('/fonts/CanvasTest.ttf')");
let fonts = (self.fonts ? self.fonts : document.fonts);
f.load();
fonts.add(f);
fonts.ready.then(function() {
ctx.font = '50px CanvasTest';
ctx.fillStyle = '#f00';
ctx.fillRect(0, 0, 100, 50);
ctx.fillStyle = '#0f0';

View file

@ -16,9 +16,12 @@ t.step(function() {
var offscreenCanvas = new OffscreenCanvas(100, 50);
var ctx = offscreenCanvas.getContext('2d');
ctx.font = '50px CanvasTest';
new Promise(function(resolve) { step_timeout(resolve, 500); })
.then(function() {
var f = new FontFace("CanvasTest", "url('/fonts/CanvasTest.ttf')");
let fonts = (self.fonts ? self.fonts : document.fonts);
f.load();
fonts.add(f);
fonts.ready.then(function() {
ctx.font = '50px CanvasTest';
ctx.fillStyle = '#f00';
ctx.fillRect(0, 0, 100, 50);
ctx.fillStyle = '#0f0';

View file

@ -20,9 +20,12 @@ t.step(function() {
var offscreenCanvas = new OffscreenCanvas(100, 50);
var ctx = offscreenCanvas.getContext('2d');
ctx.font = '50px CanvasTest';
new Promise(function(resolve) { step_timeout(resolve, 500); })
.then(function() {
var f = new FontFace("CanvasTest", "url('/fonts/CanvasTest.ttf')");
let fonts = (self.fonts ? self.fonts : document.fonts);
f.load();
fonts.add(f);
fonts.ready.then(function() {
ctx.font = '50px CanvasTest';
ctx.fillStyle = '#f00';
ctx.fillRect(0, 0, 100, 50);
ctx.fillStyle = '#0f0';

View file

@ -16,9 +16,12 @@ t.step(function() {
var offscreenCanvas = new OffscreenCanvas(100, 50);
var ctx = offscreenCanvas.getContext('2d');
ctx.font = '50px CanvasTest';
new Promise(function(resolve) { step_timeout(resolve, 500); })
.then(function() {
var f = new FontFace("CanvasTest", "url('/fonts/CanvasTest.ttf')");
let fonts = (self.fonts ? self.fonts : document.fonts);
f.load();
fonts.add(f);
fonts.ready.then(function() {
ctx.font = '50px CanvasTest';
ctx.fillStyle = '#f00';
ctx.fillRect(0, 0, 100, 50);
ctx.fillStyle = '#0f0';

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