Update web-platform-tests to revision 4a65f5002f1e2e778f62a9b99f4298dc8948f26c

This commit is contained in:
WPT Sync Bot 2020-10-23 08:20:58 +00:00
parent 4c3f878026
commit e0938d4233
282 changed files with 3027 additions and 1009 deletions

View file

@ -0,0 +1,8 @@
[url-charset.window.html]
expected: TIMEOUT
[Blob charset should override any auto-detected charset.]
expected: TIMEOUT
[Blob charset should override <meta charset>.]
expected: TIMEOUT

View file

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

View file

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

View file

@ -0,0 +1,4 @@
[hit-test-floats-005.html]
[Miss clipped float]
expected: FAIL

View file

@ -0,0 +1,4 @@
[CaretPosition-001.html]
[Element at (400, 100)]
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,6 +2,3 @@
[elementsFromPoint on the root document for points in iframe elements]
expected: FAIL
[elementsFromPoint on inner documents]
expected: FAIL

View file

@ -8,15 +8,12 @@
[type - omission of all]
expected: FAIL
[one rule]
expected: FAIL
[media query list]
expected: FAIL
[type - inclusion of negated all]
expected: FAIL
[many rules]
[features - no lexicographical sorting]
expected: FAIL

View file

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

View file

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

View file

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

View file

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

View file

@ -2,3 +2,6 @@
[drawImage with zero-sized source rectangle from image throws INDEX_SIZE_ERR]
expected: FAIL
[drawImage with zero-sized source rectangle from image draws nothing without exception]
expected: FAIL

View file

@ -2,3 +2,6 @@
[drawImage with zero-sized source rectangle throws INDEX_SIZE_ERR]
expected: FAIL
[drawImage with zero-sized source rectangle draws nothing without exception]
expected: FAIL

View file

@ -2,3 +2,6 @@
[drawImage with zero-sized source rectangle from image throws INDEX_SIZE_ERR]
expected: FAIL
[drawImage with zero-sized source rectangle from image draws nothing without exception]
expected: FAIL

View file

@ -2,3 +2,6 @@
[drawImage with zero-sized source rectangle from image throws INDEX_SIZE_ERR]
expected: FAIL
[drawImage with zero-sized source rectangle from image draws nothing without exception]
expected: FAIL

View file

@ -2,3 +2,6 @@
[drawImage with zero-sized source rectangle throws INDEX_SIZE_ERR]
expected: FAIL
[drawImage with zero-sized source rectangle draws nothing without exception]
expected: FAIL

View file

@ -1223,6 +1223,27 @@
[ElementInternals interface: attribute shadowRoot]
expected: FAIL
[Worklet interface object length]
expected: FAIL
[Worklet interface: existence and properties of interface object]
expected: FAIL
[Worklet interface: existence and properties of interface prototype object]
expected: FAIL
[Worklet interface object name]
expected: FAIL
[Worklet interface: operation addModule(USVString, optional WorkletOptions)]
expected: FAIL
[Worklet interface: existence and properties of interface prototype object's @@unscopables property]
expected: FAIL
[Worklet interface: existence and properties of interface prototype object's "constructor" property]
expected: FAIL
[idlharness.https.html?include=(Document|Window)]
[Document interface: documentWithHandlers must inherit property "queryCommandEnabled(DOMString)" with the proper type]

View file

@ -0,0 +1,2 @@
[embed-document-under-content-visibility.html]
expected: ERROR

View file

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

View file

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

View file

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

View file

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

View file

@ -0,0 +1,4 @@
[module-delayed.html]
[async document.write in a module]
expected: FAIL

View file

@ -1,4 +1,5 @@
[promise-job-entry.html]
expected: TIMEOUT
[Fulfillment handler on fulfilled promise]
expected: FAIL
@ -15,5 +16,5 @@
expected: FAIL
[Fulfillment handler on pending-then-fulfilled promise]
expected: FAIL
expected: TIMEOUT

View file

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

View file

@ -176,3 +176,9 @@
[X Stitched sine-wave buffers at sample rate 43800 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.0038986,"relativeThreshold":0}.\n\tIndex\tActual\t\t\tExpected\t\tAbsError\t\tRelError\t\tTest threshold\n\t[28696\]\t1.7380608709161053e-27\t9.3139332532882690e-1\t9.3139332532882690e-1\t1.0000000000000000e+0\t3.8985999999999999e-3\n\t[28697\]\t7.0477002859115601e-1\t9.0675884485244751e-1\t2.0198881626129150e-1\t2.2275913536212616e-1\t3.8985999999999999e-3\n\tMax AbsError of 9.3139332532882690e-1 at index of 28696.\n\tMax RelError of 1.0000000000000000e+0 at index of 28696.\n]
expected: FAIL
[X SNR (-95.67336535132387 dB) is not greater than or equal to 65.737. Got -95.67336535132387.]
expected: FAIL
[X Stitched sine-wave buffers at sample rate 43800 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.0038986,"relativeThreshold":0}.\n\tIndex\tActual\t\t\tExpected\t\tAbsError\t\tRelError\t\tTest threshold\n\t[28696\]\t-9.0234480000000000e+6\t9.3139332532882690e-1\t9.0234489313933253e+6\t9.6881185273768324e+6\t3.8985999999999999e-3\n\t[28697\]\t7.0477002859115601e-1\t9.0675884485244751e-1\t2.0198881626129150e-1\t2.2275913536212616e-1\t3.8985999999999999e-3\n\tMax AbsError of 9.0234489313933253e+6 at index of 28696.\n\tMax RelError of 9.6881185273768324e+6 at index of 28696.\n]
expected: FAIL

View file

@ -6,13 +6,13 @@
expected: ERROR
[test_no_top_browsing_context[id2\]]
expected: ERROR
expected: FAIL
[test_no_top_browsing_context[None\]]
expected: ERROR
expected: FAIL
[test_no_top_browsing_context[0\]]
expected: ERROR
expected: FAIL
[test_no_browsing_context[None\]]
expected: ERROR
@ -23,3 +23,6 @@
[test_no_browsing_context[id2\]]
expected: ERROR
[test_no_browsing_context_when_already_top_level]
expected: ERROR

View file

@ -6,8 +6,11 @@
expected: FAIL
[test_no_top_browsing_context]
expected: ERROR
expected: FAIL
[test_no_browsing_context]
expected: ERROR
[test_no_browsing_context_when_already_top_level]
expected: ERROR

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 @@
[018.html]
expected: TIMEOUT
[origin of the script that invoked the method, javascript:]
expected: TIMEOUT

View file

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

View file

@ -0,0 +1,8 @@
[url-charset.window.html]
expected: TIMEOUT
[Blob charset should override any auto-detected charset.]
expected: TIMEOUT
[Blob charset should override <meta charset>.]
expected: TIMEOUT

File diff suppressed because it is too large Load diff

View file

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

View file

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

View file

@ -0,0 +1,4 @@
[hit-test-floats-005.html]
[Miss clipped float]
expected: FAIL

View file

@ -0,0 +1,4 @@
[CaretPosition-001.html]
[Element at (400, 100)]
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,6 +2,3 @@
[elementsFromPoint on the root document for points in iframe elements]
expected: FAIL
[elementsFromPoint on inner documents]
expected: FAIL

View file

@ -14,3 +14,6 @@
[type - inclusion of negated all]
expected: FAIL
[features - no lexicographical sorting]
expected: FAIL

View file

@ -1,3 +0,0 @@
[moz-css21-block-page-break-inside-avoid-11.html]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[moz-css21-float-page-break-inside-avoid-2.html]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[moz-css21-float-page-break-inside-avoid-8.html]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[moz-css21-row-page-break-inside-avoid-2.html]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[multicol-height-002.xht]
type: reftest
expected: FAIL

View file

@ -312,24 +312,24 @@
[fetch(): separate response Content-Type: text/plain ]
expected: NOTRUN
[<iframe>: combined response Content-Type: text/html;" text/plain]
expected: FAIL
[<iframe>: separate response Content-Type: text/plain */*]
expected: FAIL
[<iframe>: combined response Content-Type: text/html */*]
expected: FAIL
[<iframe>: separate response Content-Type: text/html */*]
expected: FAIL
[<iframe>: combined response Content-Type: text/html */*;charset=gbk]
expected: FAIL
[<iframe>: separate response Content-Type: text/html;x=" text/plain]
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]
expected: FAIL
[<iframe>: separate response Content-Type: text/plain */*;charset=gbk]
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_4.html]
[Multiple history traversals, last would be aborted]
expected: FAIL

View file

@ -1,11 +1,7 @@
[embedded-opener-remove-frame.html]
expected: CRASH
[opener and "removed" embedded documents]
expected: FAIL
[opener of discarded nested browsing context]
expected: FAIL
[opener of discarded auxiliary browsing context]
expected: FAIL

View file

@ -2,3 +2,6 @@
[drawImage with zero-sized source rectangle from image throws INDEX_SIZE_ERR]
expected: FAIL
[drawImage with zero-sized source rectangle from image draws nothing without exception]
expected: FAIL

View file

@ -2,3 +2,6 @@
[drawImage with zero-sized source rectangle throws INDEX_SIZE_ERR]
expected: FAIL
[drawImage with zero-sized source rectangle draws nothing without exception]
expected: FAIL

View file

@ -2,3 +2,6 @@
[drawImage with zero-sized source rectangle from image throws INDEX_SIZE_ERR]
expected: FAIL
[drawImage with zero-sized source rectangle from image draws nothing without exception]
expected: FAIL

View file

@ -2,3 +2,6 @@
[drawImage with zero-sized source rectangle from image throws INDEX_SIZE_ERR]
expected: FAIL
[drawImage with zero-sized source rectangle from image draws nothing without exception]
expected: FAIL

View file

@ -2,3 +2,6 @@
[drawImage with zero-sized source rectangle throws INDEX_SIZE_ERR]
expected: FAIL
[drawImage with zero-sized source rectangle draws nothing without exception]
expected: FAIL

View file

@ -1361,6 +1361,27 @@
[ElementInternals interface: attribute shadowRoot]
expected: FAIL
[Worklet interface object length]
expected: FAIL
[Worklet interface: existence and properties of interface object]
expected: FAIL
[Worklet interface: existence and properties of interface prototype object]
expected: FAIL
[Worklet interface object name]
expected: FAIL
[Worklet interface: operation addModule(USVString, optional WorkletOptions)]
expected: FAIL
[Worklet interface: existence and properties of interface prototype object's @@unscopables property]
expected: FAIL
[Worklet interface: existence and properties of interface prototype object's "constructor" property]
expected: FAIL
[idlharness.https.html?include=(Document|Window)]
[Document interface: documentWithHandlers must inherit property "queryCommandEnabled(DOMString)" with the proper type]

View file

@ -0,0 +1,2 @@
[embed-document-under-content-visibility.html]
expected: ERROR

View file

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

View file

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

View file

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

View file

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

View file

@ -0,0 +1,4 @@
[module-delayed.html]
[async document.write in a module]
expected: FAIL

View file

@ -1,4 +1,5 @@
[promise-job-entry.html]
expected: TIMEOUT
[Fulfillment handler on fulfilled promise]
expected: FAIL
@ -15,5 +16,5 @@
expected: FAIL
[Fulfillment handler on pending-then-fulfilled promise]
expected: FAIL
expected: TIMEOUT

View file

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

View file

@ -404,3 +404,9 @@
[X Stitched sine-wave buffers at sample rate 43800 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.0038986,"relativeThreshold":0}.\n\tIndex\tActual\t\t\tExpected\t\tAbsError\t\tRelError\t\tTest threshold\n\t[28696\]\t1.7380608709161053e-27\t9.3139332532882690e-1\t9.3139332532882690e-1\t1.0000000000000000e+0\t3.8985999999999999e-3\n\t[28697\]\t7.0477002859115601e-1\t9.0675884485244751e-1\t2.0198881626129150e-1\t2.2275913536212616e-1\t3.8985999999999999e-3\n\tMax AbsError of 9.3139332532882690e-1 at index of 28696.\n\tMax RelError of 1.0000000000000000e+0 at index of 28696.\n]
expected: FAIL
[X SNR (-95.67336535132387 dB) is not greater than or equal to 65.737. Got -95.67336535132387.]
expected: FAIL
[X Stitched sine-wave buffers at sample rate 43800 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.0038986,"relativeThreshold":0}.\n\tIndex\tActual\t\t\tExpected\t\tAbsError\t\tRelError\t\tTest threshold\n\t[28696\]\t-9.0234480000000000e+6\t9.3139332532882690e-1\t9.0234489313933253e+6\t9.6881185273768324e+6\t3.8985999999999999e-3\n\t[28697\]\t7.0477002859115601e-1\t9.0675884485244751e-1\t2.0198881626129150e-1\t2.2275913536212616e-1\t3.8985999999999999e-3\n\tMax AbsError of 9.0234489313933253e+6 at index of 28696.\n\tMax RelError of 9.6881185273768324e+6 at index of 28696.\n]
expected: FAIL

View file

@ -21,13 +21,13 @@
expected: FAIL
[test_no_top_browsing_context[id2\]]
expected: ERROR
expected: FAIL
[test_no_top_browsing_context[None\]]
expected: ERROR
expected: FAIL
[test_no_top_browsing_context[0\]]
expected: ERROR
expected: FAIL
[test_no_browsing_context[None\]]
expected: ERROR
@ -38,3 +38,6 @@
[test_no_browsing_context[id2\]]
expected: ERROR
[test_no_browsing_context_when_already_top_level]
expected: ERROR

View file

@ -9,5 +9,8 @@
expected: FAIL
[test_no_top_browsing_context]
expected: FAIL
[test_no_browsing_context_when_already_top_level]
expected: ERROR

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 @@
[018.html]
expected: TIMEOUT
[origin of the script that invoked the method, javascript:]
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

@ -8,7 +8,7 @@
idl_test(
['css-animation-worklet'],
['worklets', 'web-animations', 'html', 'cssom', 'dom'],
['web-animations', 'html', 'cssom', 'dom'],
idl_array => {
idl_array.add_objects({
WorkletAnimation: ['new WorkletAnimation("name")'],

View file

@ -12,13 +12,13 @@
<script>
const RESOURCES_DIR = "/beacon/resources/";
function testContentTypeHeader(what, contentType, title) {
function testContentTypeAndBody(what, expected, title) {
function wait(ms) {
return new Promise(resolve => step_timeout(resolve, ms));
}
promise_test(async t => {
const id = self.token();
const testUrl = new Request(RESOURCES_DIR + "content-type.py?cmd=put&id=" + id).url;
const testUrl = new Request(RESOURCES_DIR + "content-type-and-body.py?cmd=put&id=" + id).url;
assert_equals(performance.getEntriesByName(testUrl).length, 0);
assert_true(navigator.sendBeacon(testUrl, what), "SendBeacon Succeeded");
@ -26,13 +26,17 @@ function testContentTypeHeader(what, contentType, title) {
await wait(50);
} while (performance.getEntriesByName(testUrl).length === 0);
assert_equals(performance.getEntriesByName(testUrl).length, 1);
const checkUrl = RESOURCES_DIR + "content-type.py?cmd=get&id=" + id;
const checkUrl = RESOURCES_DIR + "content-type-and-body.py?cmd=get&id=" + id;
const response = await fetch(checkUrl);
const text = await response.text();
if (contentType === "multipart/form-data") {
if (expected.startsWith("multipart/form-data")) {
const split = expected.split(":");
const contentType = split[0];
const contentDisposition = "Content-Disposition: form-data; name=\"" + split[1] + "\"; filename=\"blob\"";
assert_true(text.startsWith(contentType), "Correct Content-Type header result");
assert_true(text.includes(contentDisposition), "Body included value");
} else {
assert_equals(text, contentType, "Correct Content-Type header result");
assert_equals(text, expected, "Correct Content-Type header result");
}
}, "Test content-type header for a body " + title);
}
@ -74,12 +78,12 @@ function stringToURLSearchParams(input)
return new URLSearchParams(input);
}
testContentTypeHeader("hi!", "text/plain;charset=UTF-8", "string");
testContentTypeHeader(stringToArrayBufferView("123"), "", "ArrayBufferView");
testContentTypeHeader(stringToArrayBuffer("123"), "", "ArrayBuffer");
testContentTypeHeader(stringToBlob("123"), "text/plain", "Blob");
testContentTypeHeader(stringToFormData("qwerty"), "multipart/form-data", "FormData");
testContentTypeHeader(stringToURLSearchParams("key1=value1&key2=value2"), "application/x-www-form-urlencoded;charset=UTF-8", "URLSearchParams");
testContentTypeAndBody("hi!", "text/plain;charset=UTF-8: hi!", "string");
testContentTypeAndBody(stringToArrayBufferView("123"), ": 1\0" + "2\0" + "3\0", "ArrayBufferView");
testContentTypeAndBody(stringToArrayBuffer("123"), ": 1\0" + "2\0" + "3\0", "ArrayBuffer");
testContentTypeAndBody(stringToBlob("123"), "text/plain: 123", "Blob");
testContentTypeAndBody(stringToFormData("qwerty"), "multipart/form-data:qwerty", "FormData");
testContentTypeAndBody(stringToURLSearchParams("key1=value1&key2=value2"), "application/x-www-form-urlencoded;charset=UTF-8: key1=value1&key2=value2", "URLSearchParams");
</script>
</body>
</html>

View file

@ -2,7 +2,7 @@ def main(request, response):
command = request.GET.first(b"cmd").lower()
test_id = request.GET.first(b"id")
if command == b"put":
request.server.stash.put(test_id, request.headers.get(b"Content-Type", b""))
request.server.stash.put(test_id, request.headers.get(b"Content-Type", b"") + ": " + request.body)
return [(b"Content-Type", b"text/plain")], u""
if command == b"get":

View file

@ -24,10 +24,8 @@ bluetooth_test(
}))
// 2. Request the device from the iframe.
.then(() => new Promise(resolve => {
callWithTrustedClick(() => {
iframe.contentWindow.postMessage(
{type: 'RequestDevice'}, '*');
});
iframe.contentWindow.postMessage(
{type: 'RequestDevice'}, '*');
window.onmessage = messageEvent => {
assert_equals(

View file

@ -27,10 +27,8 @@ bluetooth_test(
}))
// 2. Request the device from the iframe.
.then(() => new Promise(resolve => {
callWithTrustedClick(() => {
iframe.contentWindow.postMessage(
{type: 'RequestDevice'}, '*');
});
iframe.contentWindow.postMessage(
{type: 'RequestDevice'}, '*');
window.onmessage = messageEvent => {
assert_equals(messageEvent.data, expected);

View file

@ -1,10 +1,17 @@
<!DOCTYPE html>
<script src="/resources/testdriver.js"></script>
<script src="/resources/testdriver-vendor.js"></script>
<body>
<button>Click me!</button>
<script>
let device, gatt;
test_driver.set_test_context(parent);
function requestDeviceWithOptionsAndConnect(options) {
return navigator.bluetooth.requestDevice(options).then(
device => device.gatt.connect());
return test_driver.click(document.getElementsByTagName("button")[0])
.then(() => navigator.bluetooth.requestDevice(options))
.then(device => device.gatt.connect());
}
window.addEventListener('message', (messageEvent) => {
@ -14,8 +21,9 @@ window.addEventListener('message', (messageEvent) => {
availability => parent.postMessage(availability, '*'));
break;
case 'RequestDevice':
navigator.bluetooth
.requestDevice({filters: [{services: ['generic_access']}]})
test_driver.click(document.getElementsByTagName("button")[0])
.then(() => navigator.bluetooth
.requestDevice({filters: [{services: ['generic_access']}]}))
.then(device => {
if (device.constructor.name === 'BluetoothDevice') {
parent.postMessage('Success', '*');

View file

@ -5,6 +5,7 @@
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/cookies/resources/testharness-helpers.js"></script>
<script src="/cookies/resources/cookie-helper.sub.js"></script>
</head>
<body>
<div id=log></div>
@ -12,6 +13,11 @@
async_test(function (t) {
document.cookie = `samesite_strict=1; sameSite=strict; path=/`;
document.cookie = `samesite_lax=1; sameSite=lax; path=/`;
t.add_cleanup(function() {
credFetch(origin + "/cookies/resources/drop.py?name=" + "samesite_strict");
credFetch(origin + "/cookies/resources/drop.py?name=" + "samesite_lax");
});
var ws = new WebSocket("ws://{{host}}:{{ports[ws][0]}}/echo-cookie");
ws.onclose = t.step_func_done(function () {
@ -32,10 +38,9 @@
ws2.onclose = null;
ws2.close();
// Cross-scheme WebSockets shouldn't get anything.
assert_regexp_match(e2.data, /(none)/, "Cross-scheme");
assert_regexp_match(e2.data, /^\(none\)$/, "Cross-scheme");
});
});
}, "Cross-scheme WebSockets are cross-site");
</script>
</body>

View file

@ -0,0 +1,34 @@
<!-- intentionally quirks mode -->
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<html><head>
<title>Reference: Check that the old IE quirk for &lt;table align=left&gt; is NOT implemented</title>
<meta name="assert" content="1 and 2 should all be on separate lines below.">
<link rel="author" title="Mats Palmgren" href="mailto:mats@mozilla.com">
</head>
<body>
<div style="width:0">
<table><td>1</td></table>
<table><td>2</td></table>
</div>
<div style="width:0">
<table><td>1</td></table>
<table><td>2</td></table>
</div>
<div style="width:0">
<table><td>1</td></table>
<table><td>2</td></table>
</div>
<div style="width:0">
<table><td>1</td></table>
<table><td>2</td></table>
</div>
</body>
</html>

View file

@ -0,0 +1,36 @@
<!-- intentionally quirks mode -->
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<html><head>
<title>CSS2: Check that the old IE quirk for &lt;table align=left&gt; is NOT implemented</title>
<meta name="assert" content="1 and 2 should all be on separate lines below.">
<link rel="author" title="Mats Palmgren" href="mailto:mats@mozilla.com">
<link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#floats" />
<link rel="match" href="float-table-align-left-quirk-ref.html">
</head>
<body>
<div style="width:0">
<table align="left"><td>1</td></table>
<table align="left"><td>2</td></table>
</div>
<div style="width:0">
<table align="left"><td>1</td></table>
<table style="float:left"><td>2</td></table>
</div>
<div style="width:0">
<table style="float:left"><td>1</td></table>
<table align="left"><td>2</td></table>
</div>
<div style="width:0">
<table style="float:left"><td>1</td></table>
<table style="float:left"><td>2</td></table>
</div>
</body>
</html>

View file

@ -0,0 +1,766 @@
<!doctype html>
<meta charset="utf-8">
<title>CSS.supports v. CSSStyleDeclaration</title>
<link rel="help" href="https://drafts.csswg.org/css-conditional/#dom-css-supports">
<link rel="help" href="https://drafts.csswg.org/cssom/#the-cssstyledeclaration-interface">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="testElement"></div>
<script>
// This gigantic list of properties is derived from the union of pretty much everything ever
// exposed via CSSStyleDeclaration since 2010 in a major browser; this deliberately includes all
// the vendor-prefixed properties _because_ they're often where bugs lie
const properties = [
"-apple-color-filter",
"-apple-pay-button-style",
"-apple-pay-button-type",
"-apple-trailing-word",
"-epub-caption-side",
"-epub-text-combine",
"-epub-text-emphasis",
"-epub-text-emphasis-color",
"-epub-text-emphasis-style",
"-epub-text-orientation",
"-epub-text-transform",
"-epub-word-break",
"-epub-writing-mode",
"-moz-animation",
"-moz-animation-delay",
"-moz-animation-direction",
"-moz-animation-duration",
"-moz-animation-fill-mode",
"-moz-animation-iteration-count",
"-moz-animation-name",
"-moz-animation-play-state",
"-moz-animation-timing-function",
"-moz-appearance",
"-moz-backface-visibility",
"-moz-binding",
"-moz-border-bottom-colors",
"-moz-border-end",
"-moz-border-end-color",
"-moz-border-end-style",
"-moz-border-end-width",
"-moz-border-image",
"-moz-border-left-colors",
"-moz-border-right-colors",
"-moz-border-start",
"-moz-border-start-color",
"-moz-border-start-style",
"-moz-border-start-width",
"-moz-border-top-colors",
"-moz-box-align",
"-moz-box-direction",
"-moz-box-flex",
"-moz-box-ordinal-group",
"-moz-box-orient",
"-moz-box-pack",
"-moz-box-sizing",
"-moz-column-count",
"-moz-column-fill",
"-moz-column-gap",
"-moz-column-rule",
"-moz-column-rule-color",
"-moz-column-rule-style",
"-moz-column-rule-width",
"-moz-column-span",
"-moz-column-width",
"-moz-columns",
"-moz-float-edge",
"-moz-font-feature-settings",
"-moz-font-language-override",
"-moz-force-broken-image-icon",
"-moz-hyphens",
"-moz-image-region",
"-moz-margin-end",
"-moz-margin-start",
"-moz-orient",
"-moz-osx-font-smoothing",
"-moz-outline-radius",
"-moz-outline-radius-bottomleft",
"-moz-outline-radius-bottomright",
"-moz-outline-radius-topleft",
"-moz-outline-radius-topright",
"-moz-padding-end",
"-moz-padding-start",
"-moz-perspective",
"-moz-perspective-origin",
"-moz-stack-sizing",
"-moz-tab-size",
"-moz-text-align-last",
"-moz-text-size-adjust",
"-moz-transform",
"-moz-transform-origin",
"-moz-transform-style",
"-moz-transition",
"-moz-transition-delay",
"-moz-transition-duration",
"-moz-transition-property",
"-moz-transition-timing-function",
"-moz-user-focus",
"-moz-user-input",
"-moz-user-modify",
"-moz-user-select",
"-moz-window-dragging",
"-ms-content-zoom-chaining",
"-ms-content-zoom-limit",
"-ms-content-zoom-limit-max",
"-ms-content-zoom-limit-min",
"-ms-content-zoom-snap",
"-ms-content-zoom-snap-points",
"-ms-content-zoom-snap-type",
"-ms-content-zooming",
"-ms-flow-from",
"-ms-flow-into",
"-ms-font-feature-settings",
"-ms-grid-column",
"-ms-grid-column-align",
"-ms-grid-column-span",
"-ms-grid-columns",
"-ms-grid-row",
"-ms-grid-row-align",
"-ms-grid-row-span",
"-ms-grid-rows",
"-ms-high-contrast-adjust",
"-ms-hyphenate-limit-chars",
"-ms-hyphenate-limit-lines",
"-ms-hyphenate-limit-zone",
"-ms-hyphens",
"-ms-ime-align",
"-ms-overflow-style",
"-ms-scroll-chaining",
"-ms-scroll-limit",
"-ms-scroll-limit-x-max",
"-ms-scroll-limit-x-min",
"-ms-scroll-limit-y-max",
"-ms-scroll-limit-y-min",
"-ms-scroll-rails",
"-ms-scroll-snap-points-x",
"-ms-scroll-snap-points-y",
"-ms-scroll-snap-type",
"-ms-scroll-snap-x",
"-ms-scroll-snap-y",
"-ms-scroll-translation",
"-ms-text-combine-horizontal",
"-ms-text-size-adjust",
"-ms-touch-select",
"-ms-user-select",
"-ms-wrap-flow",
"-ms-wrap-margin",
"-ms-wrap-through",
"-webkit-align-content",
"-webkit-align-items",
"-webkit-align-self",
"-webkit-animation",
"-webkit-animation-delay",
"-webkit-animation-direction",
"-webkit-animation-duration",
"-webkit-animation-fill-mode",
"-webkit-animation-iteration-count",
"-webkit-animation-name",
"-webkit-animation-play-state",
"-webkit-animation-timing-function",
"-webkit-appearance",
"-webkit-backface-visibility",
"-webkit-background-clip",
"-webkit-background-origin",
"-webkit-background-size",
"-webkit-border-bottom-left-radius",
"-webkit-border-bottom-right-radius",
"-webkit-border-image",
"-webkit-border-radius",
"-webkit-border-top-left-radius",
"-webkit-border-top-right-radius",
"-webkit-box-align",
"-webkit-box-direction",
"-webkit-box-flex",
"-webkit-box-ordinal-group",
"-webkit-box-orient",
"-webkit-box-pack",
"-webkit-box-shadow",
"-webkit-box-sizing",
"-webkit-filter",
"-webkit-flex",
"-webkit-flex-basis",
"-webkit-flex-direction",
"-webkit-flex-flow",
"-webkit-flex-grow",
"-webkit-flex-shrink",
"-webkit-flex-wrap",
"-webkit-justify-content",
"-webkit-line-clamp",
"-webkit-mask",
"-webkit-mask-clip",
"-webkit-mask-composite",
"-webkit-mask-image",
"-webkit-mask-origin",
"-webkit-mask-position",
"-webkit-mask-position-x",
"-webkit-mask-position-y",
"-webkit-mask-repeat",
"-webkit-mask-size",
"-webkit-order",
"-webkit-perspective",
"-webkit-perspective-origin",
"-webkit-text-fill-color",
"-webkit-text-size-adjust",
"-webkit-text-stroke",
"-webkit-text-stroke-color",
"-webkit-text-stroke-width",
"-webkit-transform",
"-webkit-transform-origin",
"-webkit-transform-style",
"-webkit-transition",
"-webkit-transition-delay",
"-webkit-transition-duration",
"-webkit-transition-property",
"-webkit-transition-timing-function",
"-webkit-user-select",
"align-content",
"align-items",
"align-self",
"alignment-baseline",
"all",
"alt",
"animation",
"animation-delay",
"animation-direction",
"animation-duration",
"animation-fill-mode",
"animation-iteration-count",
"animation-name",
"animation-play-state",
"animation-timing-function",
"appearance",
"backdrop-filter",
"backface-visibility",
"background",
"background-attachment",
"background-blend-mode",
"background-clip",
"background-color",
"background-image",
"background-origin",
"background-position",
"background-position-x",
"background-position-y",
"background-repeat",
"background-repeat-x",
"background-repeat-y",
"background-size",
"baseline-shift",
"block-size",
"border",
"border-block",
"border-block-color",
"border-block-end",
"border-block-end-color",
"border-block-end-style",
"border-block-end-width",
"border-block-start",
"border-block-start-color",
"border-block-start-style",
"border-block-start-width",
"border-block-style",
"border-block-width",
"border-bottom",
"border-bottom-color",
"border-bottom-left-radius",
"border-bottom-right-radius",
"border-bottom-style",
"border-bottom-width",
"border-collapse",
"border-color",
"border-end-end-radius",
"border-end-start-radius",
"border-image",
"border-image-outset",
"border-image-repeat",
"border-image-slice",
"border-image-source",
"border-image-width",
"border-inline",
"border-inline-color",
"border-inline-end",
"border-inline-end-color",
"border-inline-end-style",
"border-inline-end-width",
"border-inline-start",
"border-inline-start-color",
"border-inline-start-style",
"border-inline-start-width",
"border-inline-style",
"border-inline-width",
"border-left",
"border-left-color",
"border-left-style",
"border-left-width",
"border-radius",
"border-right",
"border-right-color",
"border-right-style",
"border-right-width",
"border-spacing",
"border-start-end-radius",
"border-start-start-radius",
"border-style",
"border-top",
"border-top-color",
"border-top-left-radius",
"border-top-right-radius",
"border-top-style",
"border-top-width",
"border-width",
"bottom",
"box-decoration-break",
"box-shadow",
"box-sizing",
"break-after",
"break-before",
"break-inside",
"buffered-rendering",
"caption-side",
"caret-color",
"clear",
"clip",
"clip-path",
"clip-rule",
"color",
"color-adjust",
"color-interpolation",
"color-interpolation-filters",
"color-profile",
"color-rendering",
"color-scheme",
"column-count",
"column-fill",
"column-gap",
"column-progression",
"column-rule",
"column-rule-color",
"column-rule-style",
"column-rule-width",
"column-span",
"column-width",
"columns",
"contain",
"contain-intrinsic-size",
"content",
"content-visibility",
"counter-increment",
"counter-reset",
"counter-set",
"cursor",
"cx",
"cy",
"d",
"direction",
"display",
"dominant-baseline",
"empty-cells",
"enable-background",
"fill",
"fill-opacity",
"fill-rule",
"filter",
"flex",
"flex-basis",
"flex-direction",
"flex-flow",
"flex-grow",
"flex-shrink",
"flex-wrap",
"float",
"flood-color",
"flood-opacity",
"font",
"font-display",
"font-family",
"font-feature-settings",
"font-kerning",
"font-language-override",
"font-optical-sizing",
"font-size",
"font-size-adjust",
"font-stretch",
"font-style",
"font-synthesis",
"font-variant",
"font-variant-alternates",
"font-variant-caps",
"font-variant-east-asian",
"font-variant-ligatures",
"font-variant-numeric",
"font-variant-position",
"font-variation-settings",
"font-weight",
"gap",
"glyph-orientation-horizontal",
"glyph-orientation-vertical",
"grid",
"grid-area",
"grid-auto-columns",
"grid-auto-flow",
"grid-auto-rows",
"grid-column",
"grid-column-end",
"grid-column-gap",
"grid-column-start",
"grid-gap",
"grid-row",
"grid-row-end",
"grid-row-gap",
"grid-row-start",
"grid-template",
"grid-template-areas",
"grid-template-columns",
"grid-template-rows",
"hanging-punctuation",
"height",
"hyphens",
"image-orientation",
"image-rendering",
"ime-mode",
"inherits",
"initial-value",
"inline-size",
"inset",
"inset-block",
"inset-block-end",
"inset-block-start",
"inset-inline",
"inset-inline-end",
"inset-inline-start",
"internal-text-autosizing-status",
"isolation",
"justify-content",
"justify-items",
"justify-self",
"kerning",
"layout-grid",
"layout-grid-char",
"layout-grid-line",
"layout-grid-mode",
"layout-grid-type",
"left",
"letter-spacing",
"lighting-color",
"line-break",
"line-height",
"list-style",
"list-style-image",
"list-style-position",
"list-style-type",
"margin",
"margin-block",
"margin-block-end",
"margin-block-start",
"margin-bottom",
"margin-inline",
"margin-inline-end",
"margin-inline-start",
"margin-left",
"margin-right",
"margin-top",
"marker",
"marker-end",
"marker-mid",
"marker-offset",
"marker-start",
"mask",
"mask-clip",
"mask-composite",
"mask-image",
"mask-mode",
"mask-origin",
"mask-position",
"mask-position-x",
"mask-position-y",
"mask-repeat",
"mask-size",
"mask-type",
"max-block-size",
"max-height",
"max-inline-size",
"max-width",
"max-zoom",
"min-block-size",
"min-height",
"min-inline-size",
"min-width",
"min-zoom",
"mix-blend-mode",
"motion",
"motion-offset",
"motion-path",
"motion-rotation",
"object-fit",
"object-position",
"offset",
"offset-anchor",
"offset-block-end",
"offset-block-start",
"offset-distance",
"offset-inline-end",
"offset-inline-start",
"offset-path",
"offset-rotate",
"offset-rotation",
"opacity",
"order",
"orientation",
"orphans",
"outline",
"outline-color",
"outline-offset",
"outline-style",
"outline-width",
"overflow",
"overflow-anchor",
"overflow-block",
"overflow-inline",
"overflow-wrap",
"overflow-x",
"overflow-y",
"overscroll-behavior",
"overscroll-behavior-block",
"overscroll-behavior-inline",
"overscroll-behavior-x",
"overscroll-behavior-y",
"padding",
"padding-block",
"padding-block-end",
"padding-block-start",
"padding-bottom",
"padding-inline",
"padding-inline-end",
"padding-inline-start",
"padding-left",
"padding-right",
"padding-top",
"page",
"page-break-after",
"page-break-before",
"page-break-inside",
"page-orientation",
"paint-order",
"pen-action",
"perspective",
"perspective-origin",
"perspective-origin-x",
"perspective-origin-y",
"place-content",
"place-items",
"place-self",
"pointer-events",
"position",
"quotes",
"r",
"resize",
"right",
"rotate",
"row-gap",
"ruby-align",
"ruby-overhang",
"ruby-position",
"rx",
"ry",
"scale",
"scroll-behavior",
"scroll-margin",
"scroll-margin-block",
"scroll-margin-block-end",
"scroll-margin-block-start",
"scroll-margin-bottom",
"scroll-margin-inline",
"scroll-margin-inline-end",
"scroll-margin-inline-start",
"scroll-margin-left",
"scroll-margin-right",
"scroll-margin-top",
"scroll-padding",
"scroll-padding-block",
"scroll-padding-block-end",
"scroll-padding-block-start",
"scroll-padding-bottom",
"scroll-padding-inline",
"scroll-padding-inline-end",
"scroll-padding-inline-start",
"scroll-padding-left",
"scroll-padding-right",
"scroll-padding-top",
"scroll-snap-align",
"scroll-snap-coordinate",
"scroll-snap-destination",
"scroll-snap-margin",
"scroll-snap-margin-bottom",
"scroll-snap-margin-left",
"scroll-snap-margin-right",
"scroll-snap-margin-top",
"scroll-snap-points-x",
"scroll-snap-points-y",
"scroll-snap-stop",
"scroll-snap-type",
"scroll-snap-type-x",
"scroll-snap-type-y",
"scrollbar-color",
"scrollbar-width",
"shape-image-threshold",
"shape-margin",
"shape-outside",
"shape-rendering",
"size",
"speak",
"speak-as",
"src",
"stop-color",
"stop-opacity",
"stroke",
"stroke-color",
"stroke-dasharray",
"stroke-dashoffset",
"stroke-linecap",
"stroke-linejoin",
"stroke-miterlimit",
"stroke-opacity",
"stroke-width",
"supported-color-schemes",
"syntax",
"tab-size",
"table-layout",
"text-align",
"text-align-last",
"text-anchor",
"text-combine-upright",
"text-decoration",
"text-decoration-color",
"text-decoration-line",
"text-decoration-skip",
"text-decoration-skip-ink",
"text-decoration-style",
"text-decoration-thickness",
"text-emphasis",
"text-emphasis-color",
"text-emphasis-position",
"text-emphasis-style",
"text-indent",
"text-justify",
"text-kashida",
"text-kashida-space",
"text-line-through",
"text-line-through-color",
"text-line-through-mode",
"text-line-through-style",
"text-line-through-width",
"text-orientation",
"text-overflow",
"text-overline",
"text-overline-color",
"text-overline-mode",
"text-overline-style",
"text-overline-width",
"text-rendering",
"text-shadow",
"text-size-adjust",
"text-transform",
"text-underline",
"text-underline-color",
"text-underline-mode",
"text-underline-offset",
"text-underline-position",
"text-underline-style",
"text-underline-width",
"top",
"touch-action",
"transform",
"transform-box",
"transform-origin",
"transform-origin-x",
"transform-origin-y",
"transform-origin-z",
"transform-style",
"transition",
"transition-delay",
"transition-duration",
"transition-property",
"transition-timing-function",
"translate",
"unicode-bidi",
"unicode-range",
"user-select",
"user-zoom",
"vector-effect",
"vertical-align",
"viewport-fit",
"visibility",
"white-space",
"widows",
"width",
"will-change",
"word-break",
"word-spacing",
"word-wrap",
"writing-mode",
"x",
"y",
"z-index",
"zoom"
];
function CSSPropertyToIDLAttribute(property, lowercaseFirstFlag=false) {
let output = "";
let uppercaseNext = false;
if (lowercaseFirstFlag) {
property = property.substring(1);
}
for (let c of property) {
if (c === "-") {
uppercaseNext = true;
} else if (uppercaseNext) {
uppercaseNext = false;
if (c >= "a" && c <= "z") {
output += c.toUpperCase();
} else {
output += c;
}
} else {
output += c;
}
}
return output;
}
const styledecl = document.getElementById("testElement").style;
for (let prop of properties) {
test(() => {
const camelCase = CSSPropertyToIDLAttribute(prop);
const supports = CSS.supports(prop, "inherit"); // inherit is always a valid value
assert_equals(supports, camelCase in styledecl);
}, `${prop}: _camel_cased_attribute v. CSS.supports`);
if (prop[0] == "-") {
if (prop.startsWith("-webkit-")) {
test(() => {
const webkitCased = CSSPropertyToIDLAttribute(prop, true);
const supports = CSS.supports(prop, "inherit"); // inherit is always a valid value
assert_equals(supports, webkitCased in styledecl);
}, `${prop}: _webkit_cased_attribute v. CSS.supports`);
} else {
test(() => {
const webkitCased = CSSPropertyToIDLAttribute(prop, true);
assert_false(webkitCased in styledecl);
}, `${prop}: _webkit_cased_attribute must only exist for -webkit-`);
}
}
if (prop.indexOf("-") >= 0) {
test(() => {
const supports = CSS.supports(prop, "inherit"); // inherit is always a valid value
assert_equals(supports, prop in styledecl);
}, `${prop}: _dashed_attribute v. CSS.supports`);
}
}
</script>

View file

@ -0,0 +1,16 @@
<!DOCTYPE html>
<style>
#container {
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
font-size: 20px;
width: 10ch;
}
</style>
<body>
<div id="container">
abc def ghi jkl mno pqr stu vwx yz
123 456 789
</div>
</body>

View file

@ -0,0 +1,28 @@
<!DOCTYPE html>
<title>CSS Overflow: appending to a box with -webkit-line-clamp</title>
<link rel="help" href="https://drafts.csswg.org/css-overflow-3/#webkit-line-clamp">
<link rel="match" href="reference/webkit-line-clamp-dynamic-001-ref.html">
<link rel="author" title="Koji Ishii" href="mailto:kojii@chromium.org">
<style>
#container {
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
font-size: 20px;
width: 10ch;
}
</style>
<body>
<div id="container">
abc def ghi jkl mno pqr stu vwx yz
</div>
<script>
testAppend();
function testAppend() {
document.body.offsetTop;
let span = document.createElement('span');
span.textContent = '123 456 789';
container.appendChild(span);
}
</script>
</body>

View file

@ -11,7 +11,7 @@
idl_test(
["css-paint-api"],
["cssom", "html", "worklets"]
["cssom", "html"]
// No objects in Window global
);
</script>

View file

@ -0,0 +1,30 @@
<!doctype html>
<meta charset="utf-8">
<title>CSS Overflow: parsing scrollbar-width declarations</title>
<link rel="author" title="Felipe Erias Morandeira" href="mailto:felipeerias@gmail.com"/>
<link rel="help" href="https://drafts.csswg.org/css-scrollbars/"/>
<meta name="assert" content="Parsing scrollbar-width declarations">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/parsing-testcommon.js"></script>
<script>
test_valid_value("scrollbar-width", "auto");
test_valid_value("scrollbar-width", "thin");
test_valid_value("scrollbar-width", "none");
test_invalid_value("scrollbar-width", "");
test_invalid_value("scrollbar-width", "auto none");
test_invalid_value("scrollbar-width", "thin auto");
test_invalid_value("scrollbar-width", "none thin");
test_invalid_value("scrollbar-width", "auto thin none");
test_invalid_value("scrollbar-width", "tiny");
test_invalid_value("scrollbar-width", "enormous");
test_invalid_value("scrollbar-width", "12px");
test_invalid_value("scrollbar-width", "3em");
test_invalid_value("scrollbar-width", "20%");
test_invalid_value("scrollbar-width", "#FF0000");
test_invalid_value("scrollbar-width", "red green");
</script>

View file

@ -1,6 +1,6 @@
<!doctype html>
<meta charset="utf-8">
<title>'display' property</title>
<title>'scrollbar-gutter' property</title>
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">

View file

@ -0,0 +1,22 @@
<!doctype html>
<meta charset="utf-8">
<title>'scrollbar-width' property</title>
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="../../resources/testhelper.js"></script>
<script src="resources/testsuite.js"></script>
<body>
<div id="log"></div>
<script>
'use strict';
runPropertyTests('scrollbar-width', [
{ syntax: 'auto' },
{ syntax: 'thin' },
{ syntax: 'none' },
]);
</script>

View file

@ -8,7 +8,7 @@
<!--
Test inspired by
https://dxr.mozilla.org/mozilla-central/source/layout/reftests/writing-mode/1130907-intrinsic-sizing-2.html
https://searchfox.org/mozilla-central/source/layout/reftests/writing-mode/1130907-intrinsic-sizing-2.html
-->
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />

View file

@ -8,7 +8,7 @@
<!--
Test inspired by
https://dxr.mozilla.org/mozilla-central/source/layout/reftests/writing-mode/1130907-intrinsic-sizing-2.html
https://searchfox.org/mozilla-central/source/layout/reftests/writing-mode/1130907-intrinsic-sizing-2.html
-->
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />

View file

@ -8,7 +8,7 @@
<!--
Test inspired by
https://dxr.mozilla.org/mozilla-central/source/layout/reftests/writing-mode/1130907-intrinsic-sizing-2.html
https://searchfox.org/mozilla-central/source/layout/reftests/writing-mode/1130907-intrinsic-sizing-2.html
-->
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />

View file

@ -8,7 +8,7 @@
<!--
Test inspired by
https://dxr.mozilla.org/mozilla-central/source/layout/reftests/writing-mode/1130907-intrinsic-sizing-2.html
https://searchfox.org/mozilla-central/source/layout/reftests/writing-mode/1130907-intrinsic-sizing-2.html
-->
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />

View file

@ -8,7 +8,7 @@
<!--
Test inspired by
https://dxr.mozilla.org/mozilla-central/source/layout/reftests/writing-mode/1130907-intrinsic-sizing-2.html
https://searchfox.org/mozilla-central/source/layout/reftests/writing-mode/1130907-intrinsic-sizing-2.html
-->
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />

View file

@ -8,7 +8,7 @@
<!--
Test inspired by
https://dxr.mozilla.org/mozilla-central/source/layout/reftests/writing-mode/1130907-intrinsic-sizing-2.html
https://searchfox.org/mozilla-central/source/layout/reftests/writing-mode/1130907-intrinsic-sizing-2.html
-->
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />

View file

@ -8,7 +8,7 @@
<!--
Test inspired by
https://dxr.mozilla.org/mozilla-central/source/layout/reftests/writing-mode/1130907-intrinsic-sizing-2.html
https://searchfox.org/mozilla-central/source/layout/reftests/writing-mode/1130907-intrinsic-sizing-2.html
-->
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />

View file

@ -8,7 +8,7 @@
<!--
Test inspired by
https://dxr.mozilla.org/mozilla-central/source/layout/reftests/writing-mode/1130907-intrinsic-sizing-2.html
https://searchfox.org/mozilla-central/source/layout/reftests/writing-mode/1130907-intrinsic-sizing-2.html
-->
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />

View file

@ -8,7 +8,7 @@
<!--
Test inspired by
https://dxr.mozilla.org/mozilla-central/source/layout/reftests/writing-mode/1130907-intrinsic-sizing-2.html
https://searchfox.org/mozilla-central/source/layout/reftests/writing-mode/1130907-intrinsic-sizing-2.html
-->
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />

View file

@ -8,7 +8,7 @@
<!--
Test inspired by
https://dxr.mozilla.org/mozilla-central/source/layout/reftests/writing-mode/1130907-intrinsic-sizing-2.html
https://searchfox.org/mozilla-central/source/layout/reftests/writing-mode/1130907-intrinsic-sizing-2.html
-->
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />

View file

@ -8,7 +8,7 @@
<!--
Test inspired by
https://dxr.mozilla.org/mozilla-central/source/layout/reftests/writing-mode/1130907-intrinsic-sizing-2.html
https://searchfox.org/mozilla-central/source/layout/reftests/writing-mode/1130907-intrinsic-sizing-2.html
-->
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />

View file

@ -8,7 +8,7 @@
<!--
Test inspired by
https://dxr.mozilla.org/mozilla-central/source/layout/reftests/writing-mode/1130907-intrinsic-sizing-2.html
https://searchfox.org/mozilla-central/source/layout/reftests/writing-mode/1130907-intrinsic-sizing-2.html
-->
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />

View file

@ -8,7 +8,7 @@
<!--
Test inspired by
https://dxr.mozilla.org/mozilla-central/source/layout/reftests/writing-mode/1130907-intrinsic-sizing-2.html
https://searchfox.org/mozilla-central/source/layout/reftests/writing-mode/1130907-intrinsic-sizing-2.html
-->
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />

View file

@ -8,7 +8,7 @@
<!--
Test inspired by
https://dxr.mozilla.org/mozilla-central/source/layout/reftests/writing-mode/1130907-intrinsic-sizing-2.html
https://searchfox.org/mozilla-central/source/layout/reftests/writing-mode/1130907-intrinsic-sizing-2.html
-->
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />

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