mirror of
https://github.com/servo/servo.git
synced 2025-08-18 03:45:33 +01:00
Update web-platform-tests to revision ecf36e0069be779649c30b647f6b13f2842c14da
This commit is contained in:
parent
5b79711ece
commit
d97dd12540
29 changed files with 583 additions and 316 deletions
|
@ -116,6 +116,8 @@ interface HTMLElement : Element {
|
|||
[CEReactions] attribute DOMString autocapitalize;
|
||||
|
||||
[CEReactions] attribute [TreatNullAs=EmptyString] DOMString innerText;
|
||||
|
||||
ElementInternals attachInternals();
|
||||
};
|
||||
|
||||
HTMLElement includes GlobalEventHandlers;
|
||||
|
@ -795,6 +797,7 @@ interface HTMLFormElement : HTMLElement {
|
|||
getter (RadioNodeList or Element) (DOMString name);
|
||||
|
||||
void submit();
|
||||
void requestSubmit(optional HTMLElement submitter);
|
||||
[CEReactions] void reset();
|
||||
boolean checkValidity();
|
||||
boolean reportValidity();
|
||||
|
@ -1412,9 +1415,9 @@ interface Path2D {
|
|||
};
|
||||
Path2D includes CanvasPath;
|
||||
|
||||
[Exposed=Window]
|
||||
[Exposed=(Window,Worker)]
|
||||
interface ImageBitmapRenderingContext {
|
||||
readonly attribute HTMLCanvasElement canvas;
|
||||
readonly attribute (HTMLCanvasElement or OffscreenCanvas) canvas;
|
||||
void transferFromImageBitmap(ImageBitmap? bitmap);
|
||||
};
|
||||
|
||||
|
@ -1422,14 +1425,14 @@ dictionary ImageBitmapRenderingContextSettings {
|
|||
boolean alpha = true;
|
||||
};
|
||||
|
||||
typedef (OffscreenCanvasRenderingContext2D or WebGLRenderingContext or WebGL2RenderingContext) OffscreenRenderingContext;
|
||||
typedef (OffscreenCanvasRenderingContext2D or ImageBitmapRenderingContext or WebGLRenderingContext or WebGL2RenderingContext) OffscreenRenderingContext;
|
||||
|
||||
dictionary ImageEncodeOptions {
|
||||
DOMString type = "image/png";
|
||||
unrestricted double quality;
|
||||
};
|
||||
|
||||
enum OffscreenRenderingContextId { "2d", "webgl", "webgl2" };
|
||||
enum OffscreenRenderingContextId { "2d", "bitmaprenderer", "webgl", "webgl2" };
|
||||
|
||||
[Constructor([EnforceRange] unsigned long long width, [EnforceRange] unsigned long long height), Exposed=(Window,Worker), Transferable]
|
||||
interface OffscreenCanvas : EventTarget {
|
||||
|
@ -1477,6 +1480,40 @@ dictionary ElementDefinitionOptions {
|
|||
DOMString extends;
|
||||
};
|
||||
|
||||
[Exposed=Window]
|
||||
interface ElementInternals {
|
||||
// Form-associated custom elements
|
||||
|
||||
void setFormValue((File or USVString or FormData)? value,
|
||||
optional (File or USVString or FormData)? state);
|
||||
|
||||
readonly attribute HTMLFormElement? form;
|
||||
|
||||
void setValidity(ValidityStateFlags flags,
|
||||
optional DOMString message,
|
||||
optional HTMLElement anchor);
|
||||
readonly attribute boolean willValidate;
|
||||
readonly attribute ValidityState validity;
|
||||
readonly attribute DOMString validationMessage;
|
||||
boolean checkValidity();
|
||||
boolean reportValidity();
|
||||
|
||||
readonly attribute NodeList labels;
|
||||
};
|
||||
|
||||
dictionary ValidityStateFlags {
|
||||
boolean valueMissing = false;
|
||||
boolean typeMismatch = false;
|
||||
boolean patternMismatch = false;
|
||||
boolean tooLong = false;
|
||||
boolean tooShort = false;
|
||||
boolean rangeUnderflow = false;
|
||||
boolean rangeOverflow = false;
|
||||
boolean stepMismatch = false;
|
||||
boolean badInput = false;
|
||||
boolean customError = false;
|
||||
};
|
||||
|
||||
dictionary FocusOptions {
|
||||
boolean preventScroll = false;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue