diff options
31 files changed, 513 insertions, 73 deletions
diff --git a/tests/wpt/metadata/FileAPI/url/url-in-tags-revoke.window.js.ini b/tests/wpt/metadata/FileAPI/url/url-in-tags-revoke.window.js.ini index a9e46713244..76b398963ae 100644 --- a/tests/wpt/metadata/FileAPI/url/url-in-tags-revoke.window.js.ini +++ b/tests/wpt/metadata/FileAPI/url/url-in-tags-revoke.window.js.ini @@ -7,7 +7,7 @@ expected: FAIL [Opening a blob URL in a new window immediately before revoking it works.] - expected: TIMEOUT + expected: FAIL [Opening a blob URL in a noopener about:blank window immediately before revoking it works.] expected: FAIL diff --git a/tests/wpt/metadata/MANIFEST.json b/tests/wpt/metadata/MANIFEST.json index 3bf07accd5a..85c96a326f6 100644 --- a/tests/wpt/metadata/MANIFEST.json +++ b/tests/wpt/metadata/MANIFEST.json @@ -206661,6 +206661,30 @@ {} ] ], + "quirks/percentage-height-quirk-excludes-flex-grid-001.html": [ + [ + "quirks/percentage-height-quirk-excludes-flex-grid-001.html", + [ + [ + "/quirks/reference/percentage-height-quirk-excludes-flex-grid-001-ref.html", + "==" + ] + ], + {} + ] + ], + "quirks/percentage-height-quirk-excludes-flex-grid-002.html": [ + [ + "quirks/percentage-height-quirk-excludes-flex-grid-002.html", + [ + [ + "/quirks/reference/percentage-height-quirk-excludes-flex-grid-002-ref.html", + "==" + ] + ], + {} + ] + ], "quirks/table-cell-width-calculation-abspos.html": [ [ "quirks/table-cell-width-calculation-abspos.html", @@ -212784,6 +212808,18 @@ ], {} ] + ], + "quirks/reference/percentage-height-quirk-excludes-flex-grid-002-ref.html": [ + [ + "quirks/reference/percentage-height-quirk-excludes-flex-grid-002-ref.html", + [ + [ + "/quirks/reference/percentage-height-quirk-excludes-flex-grid-002-notref.html", + "!=" + ] + ], + {} + ] ] }, "support": { @@ -279057,6 +279093,12 @@ "quirks/reference/green-100px-square-no-red.html": [ [] ], + "quirks/reference/percentage-height-quirk-excludes-flex-grid-001-ref.html": [ + [] + ], + "quirks/reference/percentage-height-quirk-excludes-flex-grid-002-notref.html": [ + [] + ], "quirks/reference/table-cell-width-calculation-abspos-ref.html": [ [] ], @@ -657627,7 +657669,7 @@ "support" ], "html/semantics/forms/form-submission-0/form-submission-algorithm.html": [ - "df39b57353c67ebb02014865f28d739bbf24c690", + "2d5ac276374370dd594d3d8f98c1b85e8186eb26", "testharness" ], "html/semantics/forms/form-submission-0/getactionurl.html": [ @@ -680954,10 +680996,30 @@ "e56a03b4b41b72edca91ff261e766fc9d2cc5426", "testharness" ], + "quirks/percentage-height-quirk-excludes-flex-grid-001.html": [ + "cb0f772b1fa2fed26992f288cc345e7ab418d919", + "reftest" + ], + "quirks/percentage-height-quirk-excludes-flex-grid-002.html": [ + "88df89d0932e8f347ffad8faa4e5da9dc2e71b56", + "reftest" + ], "quirks/reference/green-100px-square-no-red.html": [ "159d9a52a01a0b328680a530603cb496ab2d5fcf", "support" ], + "quirks/reference/percentage-height-quirk-excludes-flex-grid-001-ref.html": [ + "29f8e26a67f27e9ae250e464c05a8f3af1e0b9a5", + "support" + ], + "quirks/reference/percentage-height-quirk-excludes-flex-grid-002-notref.html": [ + "19aa243a0045f4378b55a00dd3b2431fc9a9ec23", + "support" + ], + "quirks/reference/percentage-height-quirk-excludes-flex-grid-002-ref.html": [ + "c63bc0efa85f59eb496875072970016cf77d3c9d", + "reftest_node" + ], "quirks/reference/table-cell-width-calculation-abspos-ref.html": [ "41d2203b4a08323a2d6b9894f1ad133e35130265", "support" diff --git a/tests/wpt/metadata/css/css-transforms/animation/perspective-interpolation.html.ini b/tests/wpt/metadata/css/css-transforms/animation/perspective-interpolation.html.ini index 1193e3dfa5c..03f2f3fe9d1 100644 --- a/tests/wpt/metadata/css/css-transforms/animation/perspective-interpolation.html.ini +++ b/tests/wpt/metadata/css/css-transforms/animation/perspective-interpolation.html.ini @@ -1,5 +1,5 @@ [perspective-interpolation.html] - expected: ERROR + expected: CRASH [ perspective interpolation] expected: FAIL diff --git a/tests/wpt/metadata/css/cssom-view/elementFromPoint-list-001.html.ini b/tests/wpt/metadata/css/cssom-view/elementFromPoint-list-001.html.ini index c364dd10b5c..668c3f52a5b 100644 --- a/tests/wpt/metadata/css/cssom-view/elementFromPoint-list-001.html.ini +++ b/tests/wpt/metadata/css/cssom-view/elementFromPoint-list-001.html.ini @@ -14,6 +14,3 @@ [<li>Outside 3</li>] expected: FAIL - [<li>Inside 1</li>] - expected: FAIL - diff --git a/tests/wpt/metadata/encoding/single-byte-decoder.html.ini b/tests/wpt/metadata/encoding/single-byte-decoder.html.ini index 3d135f3bd66..939a36eb9d9 100644 --- a/tests/wpt/metadata/encoding/single-byte-decoder.html.ini +++ b/tests/wpt/metadata/encoding/single-byte-decoder.html.ini @@ -2,7 +2,6 @@ type: testharness [single-byte-decoder.html?document] - expected: TIMEOUT [ISO-8859-4: iso_8859-4:1988 (document.characterSet and document.inputEncoding)] expected: FAIL diff --git a/tests/wpt/metadata/fetch/content-type/response.window.js.ini b/tests/wpt/metadata/fetch/content-type/response.window.js.ini index 284ea0dcf02..9abfe827b60 100644 --- a/tests/wpt/metadata/fetch/content-type/response.window.js.ini +++ b/tests/wpt/metadata/fetch/content-type/response.window.js.ini @@ -312,24 +312,18 @@ [<iframe>: combined response Content-Type: */* text/html] expected: FAIL - [<iframe>: combined response Content-Type: text/html */*] - expected: FAIL - [<iframe>: separate response Content-Type: text/html;" text/plain] expected: FAIL - [<iframe>: combined response Content-Type: text/html;charset=gbk text/plain text/html] - expected: FAIL - - [<iframe>: separate response Content-Type: text/html */*;charset=gbk] + [<iframe>: separate response Content-Type: text/plain */*] expected: FAIL - [<iframe>: separate response Content-Type: text/html */*] + [<iframe>: combined response Content-Type: text/html */*;charset=gbk] expected: FAIL - [<iframe>: separate response Content-Type: text/plain */*] + [<iframe>: combined response Content-Type: text/html;" \\" text/plain] expected: FAIL - [<iframe>: separate response Content-Type: text/html;" \\" text/plain] + [<iframe>: combined response Content-Type: text/html;x=" text/plain] expected: FAIL diff --git a/tests/wpt/metadata/fetch/content-type/script.window.js.ini b/tests/wpt/metadata/fetch/content-type/script.window.js.ini index d2df9b78483..e67f0406fc3 100644 --- a/tests/wpt/metadata/fetch/content-type/script.window.js.ini +++ b/tests/wpt/metadata/fetch/content-type/script.window.js.ini @@ -53,6 +53,3 @@ [combined text/javascript ] expected: FAIL - [separate text/javascript x/x] - expected: FAIL - diff --git a/tests/wpt/metadata/fetch/nosniff/parsing-nosniff.window.js.ini b/tests/wpt/metadata/fetch/nosniff/parsing-nosniff.window.js.ini index b7052af5b5c..87c807a49ff 100644 --- a/tests/wpt/metadata/fetch/nosniff/parsing-nosniff.window.js.ini +++ b/tests/wpt/metadata/fetch/nosniff/parsing-nosniff.window.js.ini @@ -11,6 +11,3 @@ [X-Content-Type-Options%3A%20nosniff%0C] expected: FAIL - [X-Content-Type-Options%3A%0D%0AX-Content-Type-Options%3A%20nosniff] - expected: FAIL - diff --git a/tests/wpt/metadata/html/browsers/history/the-history-interface/traverse_the_history_5.html.ini b/tests/wpt/metadata/html/browsers/history/the-history-interface/traverse_the_history_5.html.ini deleted file mode 100644 index dc2e45516de..00000000000 --- a/tests/wpt/metadata/html/browsers/history/the-history-interface/traverse_the_history_5.html.ini +++ /dev/null @@ -1,4 +0,0 @@ -[traverse_the_history_5.html] - [Multiple history traversals, last would be aborted] - expected: FAIL - diff --git a/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/creating_browsing_context_test_01.html.ini b/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/creating_browsing_context_test_01.html.ini deleted file mode 100644 index 16fa2c5cfc1..00000000000 --- a/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/creating_browsing_context_test_01.html.ini +++ /dev/null @@ -1,4 +0,0 @@ -[creating_browsing_context_test_01.html] - [first argument: absolute url] - expected: FAIL - diff --git a/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-negative-innerwidth-innerheight.html.ini b/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-negative-innerwidth-innerheight.html.ini index bf50d59df41..e02f179ec25 100644 --- a/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-negative-innerwidth-innerheight.html.ini +++ b/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-negative-innerwidth-innerheight.html.ini @@ -1,5 +1,24 @@ [open-features-negative-innerwidth-innerheight.html] type: testharness + expected: TIMEOUT [HTML: window.open `features`: negative values for legacy `innerwidth`, `innerheight`] expected: FAIL + [features "innerheight=-404.5" should NOT set "height=404"] + expected: TIMEOUT + + [features "innerwidth=-404.5" should NOT set "width=404"] + expected: TIMEOUT + + [features "innerwidth=-404" should NOT set "width=404"] + expected: TIMEOUT + + [features "innerheight=-404e1" should NOT set "height=404"] + expected: TIMEOUT + + [features "innerheight=-404" should NOT set "height=404"] + expected: TIMEOUT + + [features "innerwidth=-404e1" should NOT set "width=404"] + expected: TIMEOUT + diff --git a/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-negative-top-left.html.ini b/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-negative-top-left.html.ini index ad8840fbb68..940516ddd33 100644 --- a/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-negative-top-left.html.ini +++ b/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-negative-top-left.html.ini @@ -1,5 +1,24 @@ [open-features-negative-top-left.html] type: testharness + expected: TIMEOUT [HTML: window.open `features`: negative values for `top`, `left`] expected: FAIL + [features "top=-204" should NOT set "top=204"] + expected: TIMEOUT + + [features "top=-204.5" should NOT set "top=204"] + expected: TIMEOUT + + [features "left=-204" should NOT set "left=204"] + expected: TIMEOUT + + [features "top=-0" should NOT set "top=204"] + expected: TIMEOUT + + [features "left=-204.5" should NOT set "left=204"] + expected: TIMEOUT + + [features "left=-0" should NOT set "left=204"] + expected: TIMEOUT + diff --git a/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-negative-width-height.html.ini b/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-negative-width-height.html.ini index 9027336b453..d1ed9088b2b 100644 --- a/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-negative-width-height.html.ini +++ b/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-negative-width-height.html.ini @@ -1,24 +1,5 @@ [open-features-negative-width-height.html] type: testharness - expected: TIMEOUT [HTML: window.open `features`: negative values for `width`, `height`] expected: FAIL - [features "height=-404" should NOT set "height=404"] - expected: TIMEOUT - - [features "height=-404e1" should NOT set "height=404"] - expected: TIMEOUT - - [features "height=-404.5" should NOT set "height=404"] - expected: TIMEOUT - - [features "width=-404" should NOT set "width=404"] - expected: TIMEOUT - - [features "width=-404e1" should NOT set "width=404"] - expected: TIMEOUT - - [features "width=-404.5" should NOT set "width=404"] - expected: TIMEOUT - diff --git a/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-top.html.ini b/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-top.html.ini index 10f617db69e..8540f53d8d6 100644 --- a/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-top.html.ini +++ b/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-top.html.ini @@ -1,32 +1,42 @@ [open-features-non-integer-top.html] type: testharness + expected: TIMEOUT [HTML: window.open `features`: non-integer values for feature `top`] expected: FAIL [features "top=105/5" should set "top=105"] - expected: FAIL + expected: TIMEOUT [features "top=105*3" should set "top=105"] - expected: FAIL + expected: TIMEOUT [features "top=105LLl" should set "top=105"] - expected: FAIL + expected: TIMEOUT [features "top=105e-1" should set "top=105"] - expected: FAIL + expected: TIMEOUT [features "top=105.32" should set "top=105"] - expected: FAIL + expected: TIMEOUT [features "top=105e1" should set "top=105"] - expected: FAIL + expected: TIMEOUT [features "top=105 " should set "top=105"] - expected: FAIL + expected: TIMEOUT [features "top=105^4" should set "top=105"] - expected: FAIL + expected: TIMEOUT [features "top=105.5" should set "top=105"] - expected: FAIL + expected: TIMEOUT + + [features "top=/104" should NOT set "top=104"] + expected: TIMEOUT + + [features "top=_104" should NOT set "top=104"] + expected: TIMEOUT + + [features "top=L104" should NOT set "top=104"] + expected: TIMEOUT diff --git a/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-width.html.ini b/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-width.html.ini index 28f93ee71b5..9d841e61bc0 100644 --- a/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-width.html.ini +++ b/tests/wpt/metadata/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-width.html.ini @@ -1,32 +1,48 @@ [open-features-non-integer-width.html] type: testharness + expected: TIMEOUT [HTML: window.open `features`: non-integer values for feature `width`] expected: FAIL [features "width=405^4" should set "width=405"] - expected: FAIL + expected: TIMEOUT [features "width=405.5" should set "width=405"] - expected: FAIL + expected: TIMEOUT [features "width=405e1" should set "width=405"] - expected: FAIL + expected: TIMEOUT [features "width=405 " should set "width=405"] - expected: FAIL + expected: TIMEOUT [features "width=405.32" should set "width=405"] - expected: FAIL + expected: TIMEOUT [features "width=405LLl" should set "width=405"] - expected: FAIL + expected: TIMEOUT [features "width=405*3" should set "width=405"] - expected: FAIL + expected: TIMEOUT [features "width=405e-1" should set "width=405"] - expected: FAIL + expected: TIMEOUT [features "width=405/5" should set "width=405"] - expected: FAIL + expected: TIMEOUT + + [top=0,left=0: absence of feature "width" should be treated same as "width=0"] + expected: TIMEOUT + + [features "width=_404" should NOT set "width=404"] + expected: TIMEOUT + + [top=0,left=0,height=401,: absence of feature "width" should be treated same as "width=0"] + expected: TIMEOUT + + [features "width=/404" should NOT set "width=404"] + expected: TIMEOUT + + [features "width=L404" should NOT set "width=404"] + expected: TIMEOUT diff --git a/tests/wpt/metadata/html/browsers/windows/embedded-opener-remove-frame.html.ini b/tests/wpt/metadata/html/browsers/windows/embedded-opener-remove-frame.html.ini index 2532dceabac..fd369192a02 100644 --- a/tests/wpt/metadata/html/browsers/windows/embedded-opener-remove-frame.html.ini +++ b/tests/wpt/metadata/html/browsers/windows/embedded-opener-remove-frame.html.ini @@ -1,5 +1,5 @@ [embedded-opener-remove-frame.html] - expected: CRASH + expected: TIMEOUT [opener and "removed" embedded documents] expected: FAIL @@ -7,5 +7,5 @@ expected: FAIL [opener of discarded auxiliary browsing context] - expected: FAIL + expected: TIMEOUT diff --git a/tests/wpt/metadata/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_nonescaping-1.html.ini b/tests/wpt/metadata/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_nonescaping-1.html.ini index 9df1ac56f2a..963d4cd20ef 100644 --- a/tests/wpt/metadata/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_nonescaping-1.html.ini +++ b/tests/wpt/metadata/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_nonescaping-1.html.ini @@ -1,6 +1,6 @@ [iframe_sandbox_popups_nonescaping-1.html] type: testharness - expected: TIMEOUT + expected: CRASH [Check that popups from a sandboxed iframe do not escape the sandbox] expected: NOTRUN diff --git a/tests/wpt/metadata/html/semantics/embedded-content/the-img-element/non-active-document.html.ini b/tests/wpt/metadata/html/semantics/embedded-content/the-img-element/non-active-document.html.ini new file mode 100644 index 00000000000..8cc42056d34 --- /dev/null +++ b/tests/wpt/metadata/html/semantics/embedded-content/the-img-element/non-active-document.html.ini @@ -0,0 +1,10 @@ +[non-active-document.html] + [DOMParser] + expected: FAIL + + [createHTMLDocument] + expected: FAIL + + [<template>] + expected: FAIL + diff --git a/tests/wpt/metadata/html/semantics/forms/form-submission-0/form-double-submit-3.html.ini b/tests/wpt/metadata/html/semantics/forms/form-submission-0/form-double-submit-3.html.ini index df89cd21511..941d0dee0c8 100644 --- a/tests/wpt/metadata/html/semantics/forms/form-submission-0/form-double-submit-3.html.ini +++ b/tests/wpt/metadata/html/semantics/forms/form-submission-0/form-double-submit-3.html.ini @@ -1,5 +1,5 @@ [form-double-submit-3.html] expected: ERROR [<button> should have the same double-submit protection as <input type=submit>] - expected: FAIL + expected: TIMEOUT diff --git a/tests/wpt/metadata/html/semantics/forms/form-submission-0/form-double-submit.html.ini b/tests/wpt/metadata/html/semantics/forms/form-submission-0/form-double-submit.html.ini index dce74c6dd71..47a7bbb7975 100644 --- a/tests/wpt/metadata/html/semantics/forms/form-submission-0/form-double-submit.html.ini +++ b/tests/wpt/metadata/html/semantics/forms/form-submission-0/form-double-submit.html.ini @@ -1,5 +1,5 @@ [form-double-submit.html] expected: ERROR [default submit action should supersede onclick submit()] - expected: FAIL + expected: TIMEOUT diff --git a/tests/wpt/metadata/html/semantics/scripting-1/the-script-element/script-onerror-insertion-point-2.html.ini b/tests/wpt/metadata/html/semantics/scripting-1/the-script-element/script-onerror-insertion-point-2.html.ini new file mode 100644 index 00000000000..178680e5d14 --- /dev/null +++ b/tests/wpt/metadata/html/semantics/scripting-1/the-script-element/script-onerror-insertion-point-2.html.ini @@ -0,0 +1,2 @@ +[script-onerror-insertion-point-2.html] + expected: TIMEOUT diff --git a/tests/wpt/metadata/html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events-onerror.html.ini b/tests/wpt/metadata/html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events-onerror.html.ini new file mode 100644 index 00000000000..1e9b11d3487 --- /dev/null +++ b/tests/wpt/metadata/html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events-onerror.html.ini @@ -0,0 +1,5 @@ +[promise-rejection-events-onerror.html] + expected: TIMEOUT + [Throwing inside an unhandledrejection handler invokes the error handler.] + expected: TIMEOUT + diff --git a/tests/wpt/metadata/quirks/percentage-height-quirk-excludes-flex-grid-002.html.ini b/tests/wpt/metadata/quirks/percentage-height-quirk-excludes-flex-grid-002.html.ini new file mode 100644 index 00000000000..cb37c253dd0 --- /dev/null +++ b/tests/wpt/metadata/quirks/percentage-height-quirk-excludes-flex-grid-002.html.ini @@ -0,0 +1,2 @@ +[percentage-height-quirk-excludes-flex-grid-002.html] + expected: FAIL diff --git a/tests/wpt/metadata/webmessaging/with-ports/018.html.ini b/tests/wpt/metadata/webmessaging/with-ports/018.html.ini new file mode 100644 index 00000000000..663a1f8fa30 --- /dev/null +++ b/tests/wpt/metadata/webmessaging/with-ports/018.html.ini @@ -0,0 +1,5 @@ +[018.html] + expected: TIMEOUT + [origin of the script that invoked the method, javascript:] + expected: TIMEOUT + diff --git a/tests/wpt/metadata/webmessaging/without-ports/017.html.ini b/tests/wpt/metadata/webmessaging/without-ports/017.html.ini new file mode 100644 index 00000000000..064cf47545b --- /dev/null +++ b/tests/wpt/metadata/webmessaging/without-ports/017.html.ini @@ -0,0 +1,5 @@ +[017.html] + expected: TIMEOUT + [origin of the script that invoked the method, about:blank] + expected: TIMEOUT + diff --git a/tests/wpt/web-platform-tests/html/semantics/forms/form-submission-0/form-submission-algorithm.html b/tests/wpt/web-platform-tests/html/semantics/forms/form-submission-0/form-submission-algorithm.html index df39b57353c..2d5ac276374 100644 --- a/tests/wpt/web-platform-tests/html/semantics/forms/form-submission-0/form-submission-algorithm.html +++ b/tests/wpt/web-platform-tests/html/semantics/forms/form-submission-0/form-submission-algorithm.html @@ -18,6 +18,21 @@ test(() => { assert_equals(counter, 2); }, 'If constructing entry list flag of form is true, then return'); +test(() => { + let form = populateForm('<input><input type=submit>'); + let submitter1 = form.querySelector('input[type=submit]'); + let valid = form.elements[0]; + let counter = 0; + valid.oninvalid = () => { + ++counter; + }; + form.onsubmit = () => { + valid.required = true; + submitter1.dispatchEvent(new MouseEvent("click")); + }; + submitter1.dispatchEvent(new MouseEvent("click")); + assert_equals(counter, 0); +}, "If firing submission events flag of form is true, then return"); test(() => { let form = populateForm('<input required><input type=submit><button type=submit></button>'); diff --git a/tests/wpt/web-platform-tests/quirks/percentage-height-quirk-excludes-flex-grid-001.html b/tests/wpt/web-platform-tests/quirks/percentage-height-quirk-excludes-flex-grid-001.html new file mode 100644 index 00000000000..cb0f772b1fa --- /dev/null +++ b/tests/wpt/web-platform-tests/quirks/percentage-height-quirk-excludes-flex-grid-001.html @@ -0,0 +1,78 @@ +<html> +<head> + <meta charset="utf-8"> + <title>Test: Percent height quirk does not traverse flex/grid containers</title> + <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"> + <link rel="author" href="https://mozilla.org" title="Mozilla"> + <link rel="help" href="https://quirks.spec.whatwg.org/#the-percentage-height-calculation-quirk"> + <link rel="match" href="reference/percentage-height-quirk-excludes-flex-grid-001-ref.html"> + <meta name="assert" content="This quirk is specific to block boxes and table wrapper boxes; if it hits another type of box, it doesn't traverse further. So this file should look the same whether in quirks or standards mode."> + <style> + .fixed-height-outer { + height: 80px; + border: 1px solid gray; + margin-bottom: 5px; + } + + .row-flex { + display: flex; + flex-direction: row + } + + .column-flex { + display: flex; + flex-direction: column + } + + .grid { + display: grid; + } + + .container { + border: 3px solid black; + } + + .pct { + height: 75%; + min-height: 10px; + width: 50px; + display: inline-block; + vertical-align: top; + background: purple; + } + .px { + height: 50px; + width: 50px; + display: inline-block; + vertical-align: top; + background: blue + } + </style> +</head> +<body> + <div class="fixed-height-outer"> + <div class="container column-flex"> + <div> + <div class="pct"></div> + <div class="px"></div> + </div> + </div> + </div> + <div class="fixed-height-outer"> + <div class="container row-flex"> + <div> + <div class="pct"></div> + <div class="px"></div> + </div> + </div> + </div> + <div class="fixed-height-outer"> + <div class="container grid"> + <div> + <div class="pct"></div> + <div class="px"></div> + </div> + </div> + </div> +</body> +</html> diff --git a/tests/wpt/web-platform-tests/quirks/percentage-height-quirk-excludes-flex-grid-002.html b/tests/wpt/web-platform-tests/quirks/percentage-height-quirk-excludes-flex-grid-002.html new file mode 100644 index 00000000000..88df89d0932 --- /dev/null +++ b/tests/wpt/web-platform-tests/quirks/percentage-height-quirk-excludes-flex-grid-002.html @@ -0,0 +1,56 @@ +<html> +<head> + <meta charset="utf-8"> + <title>Test: Percent height quirk applies for percent heights on flex/grid containers</title> + <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"> + <link rel="author" href="https://mozilla.org" title="Mozilla"> + <link rel="help" href="https://quirks.spec.whatwg.org/#the-percentage-height-calculation-quirk"> + <link rel="match" href="reference/percentage-height-quirk-excludes-flex-grid-002-ref.html"> + <meta name="assert" content="This quirk only starts differentiating by box-type when looking at the containing block of the percent-height thing. So, the quirk applies to percent-heights on flex/grid containers, when the ancestors are all blocks up to the nearest definite height."> + <style> + .fixed-height-outer { + height: 80px; + border: 1px solid gray; + margin-bottom: 5px; + } + + .row-flex { + display: flex; + flex-direction: row + } + + .column-flex { + display: flex; + flex-direction: column + } + + .grid { + display: grid; + } + + .pct { + height: 75%; + min-height: 10px; + width: 50px; + background: purple; + } + </style> +</head> +<body> + <div class="fixed-height-outer"> + <div> + <div class="column-flex pct"></div> + </div> + </div> + <div class="fixed-height-outer"> + <div> + <div class="row-flex pct"></div> + </div> + </div> + <div class="fixed-height-outer"> + <div> + <div class="grid pct"></div> + </div> + </div> +</body> +</html> diff --git a/tests/wpt/web-platform-tests/quirks/reference/percentage-height-quirk-excludes-flex-grid-001-ref.html b/tests/wpt/web-platform-tests/quirks/reference/percentage-height-quirk-excludes-flex-grid-001-ref.html new file mode 100644 index 00000000000..29f8e26a67f --- /dev/null +++ b/tests/wpt/web-platform-tests/quirks/reference/percentage-height-quirk-excludes-flex-grid-001-ref.html @@ -0,0 +1,76 @@ +<!DOCTYPE html> +<html> +<head> + <meta charset="utf-8"> + <title>Reference: Percent height quirk does not traverse flex/grid containers</title> + <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"> + <link rel="author" href="https://mozilla.org" title="Mozilla"> + <style> + .fixed-height-outer { + height: 80px; + border: 1px solid gray; + margin-bottom: 5px; + } + + .row-flex { + display: flex; + flex-direction: row + } + + .column-flex { + display: flex; + flex-direction: column + } + + .grid { + display: grid; + } + + .container { + border: 3px solid black; + } + + .pct { + height: 75%; + min-height: 10px; + width: 50px; + display: inline-block; + vertical-align: top; + background: purple; + } + .px { + height: 50px; + width: 50px; + display: inline-block; + vertical-align: top; + background: blue + } + </style> +</head> +<body> + <div class="fixed-height-outer"> + <div class="container column-flex"> + <div> + <div class="pct"></div> + <div class="px"></div> + </div> + </div> + </div> + <div class="fixed-height-outer"> + <div class="container row-flex"> + <div> + <div class="pct"></div> + <div class="px"></div> + </div> + </div> + </div> + <div class="fixed-height-outer"> + <div class="container grid"> + <div> + <div class="pct"></div> + <div class="px"></div> + </div> + </div> + </div> +</body> +</html> diff --git a/tests/wpt/web-platform-tests/quirks/reference/percentage-height-quirk-excludes-flex-grid-002-notref.html b/tests/wpt/web-platform-tests/quirks/reference/percentage-height-quirk-excludes-flex-grid-002-notref.html new file mode 100644 index 00000000000..19aa243a004 --- /dev/null +++ b/tests/wpt/web-platform-tests/quirks/reference/percentage-height-quirk-excludes-flex-grid-002-notref.html @@ -0,0 +1,54 @@ +<!DOCTYPE html> +<html> +<head> + <meta charset="utf-8"> + <title>Not-reference case: Percent height quirk applies for percent heights on flex/grid containers</title> + <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"> + <link rel="author" href="https://mozilla.org" title="Mozilla"> + <style> + .fixed-height-outer { + height: 80px; + border: 1px solid gray; + margin-bottom: 5px; + } + + .row-flex { + display: flex; + flex-direction: row + } + + .column-flex { + display: flex; + flex-direction: column + } + + .grid { + display: grid; + } + + .pct { + height: 75%; + min-height: 10px; + width: 50px; + background: purple; + } + </style> +</head> +<body> + <div class="fixed-height-outer"> + <div> + <div class="column-flex pct"></div> + </div> + </div> + <div class="fixed-height-outer"> + <div> + <div class="row-flex pct"></div> + </div> + </div> + <div class="fixed-height-outer"> + <div> + <div class="grid pct"></div> + </div> + </div> +</body> +</html> diff --git a/tests/wpt/web-platform-tests/quirks/reference/percentage-height-quirk-excludes-flex-grid-002-ref.html b/tests/wpt/web-platform-tests/quirks/reference/percentage-height-quirk-excludes-flex-grid-002-ref.html new file mode 100644 index 00000000000..c63bc0efa85 --- /dev/null +++ b/tests/wpt/web-platform-tests/quirks/reference/percentage-height-quirk-excludes-flex-grid-002-ref.html @@ -0,0 +1,49 @@ +<!DOCTYPE html> +<html> +<head> + <meta charset="utf-8"> + <title>Reference case: Percent height quirk applies for percent heights on flex/grid containers</title> + <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"> + <link rel="author" href="https://mozilla.org" title="Mozilla"> + <link rel="mismatch" href="percentage-height-quirk-excludes-flex-grid-002-notref.html"> + <style> + .fixed-height-outer { + height: 80px; + border: 1px solid gray; + margin-bottom: 5px; + } + + .row-flex { + display: flex; + flex-direction: row + } + + .column-flex { + display: flex; + flex-direction: column + } + + .grid { + display: grid; + } + + .pct { + height: 75%; + min-height: 10px; + width: 50px; + background: purple; + } + </style> +</head> +<body> + <div class="fixed-height-outer"> + <div class="column-flex pct"></div> + </div> + <div class="fixed-height-outer"> + <div class="row-flex pct"></div> + </div> + <div class="fixed-height-outer"> + <div class="grid pct"></div> + </div> +</body> +</html> |