-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also updates CSS to 6.12.15 and Elements to 2.3.0.
- Loading branch information
Showing
41 changed files
with
1,217 additions
and
194 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file | ||
// for details. All rights reserved. Use of this source code is governed by a | ||
// BSD-style license that can be found in the LICENSE file. | ||
// | ||
// API docs from [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web). | ||
// Attributions and copyright licensing by Mozilla Contributors is licensed | ||
// under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/. | ||
|
||
// Generated from Web IDL definitions. | ||
|
||
@JS() | ||
library; | ||
|
||
import 'dart:js_interop'; | ||
|
||
import 'service_workers.dart'; | ||
|
||
/// The **`SyncManager`** interface of the [Background Synchronization API] | ||
/// provides an interface for registering and listing sync registrations. | ||
/// | ||
/// --- | ||
/// | ||
/// API documentation sourced from | ||
/// [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/API/SyncManager). | ||
extension type SyncManager._(JSObject _) implements JSObject { | ||
/// The **`register()`** method of the [SyncManager] interface registers a | ||
/// synchronization event, triggering a [ServiceWorkerGlobalScope.sync_event] | ||
/// event inside the associated service worker as soon as network connectivity | ||
/// is available. | ||
external JSPromise<JSAny?> register(String tag); | ||
|
||
/// The **`getTags()`** method of the | ||
/// [SyncManager] interface returns a list of developer-defined identifiers | ||
/// for | ||
/// `SyncManager` registrations. | ||
external JSPromise<JSArray<JSString>> getTags(); | ||
} | ||
|
||
/// @AvailableInWorkers("service") | ||
/// | ||
/// The **`SyncEvent`** interface of the [Background Synchronization API] | ||
/// represents a sync action that is dispatched on the | ||
/// [ServiceWorkerGlobalScope] of a ServiceWorker. | ||
/// | ||
/// This interface inherits from the [ExtendableEvent] interface. | ||
/// | ||
/// --- | ||
/// | ||
/// API documentation sourced from | ||
/// [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/API/SyncEvent). | ||
extension type SyncEvent._(JSObject _) implements ExtendableEvent, JSObject { | ||
external factory SyncEvent( | ||
String type, | ||
SyncEventInit init, | ||
); | ||
|
||
/// @AvailableInWorkers("service") | ||
/// | ||
/// The **`tag`** read-only property of the | ||
/// [SyncEvent] interface returns the developer-defined identifier for | ||
/// this `SyncEvent`. This is the value passed in the `tag` parameter | ||
/// of the [SyncEvent.SyncEvent] constructor. | ||
external String get tag; | ||
|
||
/// @AvailableInWorkers("service") | ||
/// | ||
/// The **`lastChance`** read-only property of the | ||
/// [SyncEvent] interface returns `true` if the user agent will not | ||
/// make further synchronization attempts after the current attempt. This is | ||
/// the value | ||
/// passed in the `lastChance` parameter of the | ||
/// [SyncEvent.SyncEvent] constructor. | ||
external bool get lastChance; | ||
} | ||
extension type SyncEventInit._(JSObject _) | ||
implements ExtendableEventInit, JSObject { | ||
external factory SyncEventInit({ | ||
bool bubbles, | ||
bool cancelable, | ||
bool composed, | ||
required String tag, | ||
bool lastChance, | ||
}); | ||
|
||
external String get tag; | ||
external set tag(String value); | ||
external bool get lastChance; | ||
external set lastChance(bool value); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file | ||
// for details. All rights reserved. Use of this source code is governed by a | ||
// BSD-style license that can be found in the LICENSE file. | ||
// | ||
// API docs from [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web). | ||
// Attributions and copyright licensing by Mozilla Contributors is licensed | ||
// under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/. | ||
|
||
// Generated from Web IDL definitions. | ||
|
||
@JS() | ||
library; | ||
|
||
import 'dart:js_interop'; | ||
|
||
import 'cssom.dart'; | ||
|
||
/// The **`CSSScopeRule`** interface of the | ||
/// [CSS Object Model](https://developer.mozilla.org/en-US/docs/Web/API/CSS_Object_Model) | ||
/// represents a CSS at-rule. | ||
/// | ||
/// --- | ||
/// | ||
/// API documentation sourced from | ||
/// [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/API/CSSScopeRule). | ||
extension type CSSScopeRule._(JSObject _) implements CSSGroupingRule, JSObject { | ||
/// The **`start`** property of the [CSSScopeRule] interface returns a string | ||
/// containing the value of the `@scope` at-rule's scope root. | ||
external String? get start; | ||
|
||
/// The **`end`** property of the [CSSScopeRule] interface returns a string | ||
/// containing the value of the `@scope` at-rule's scope limit. | ||
external String? get end; | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file | ||
// for details. All rights reserved. Use of this source code is governed by a | ||
// BSD-style license that can be found in the LICENSE file. | ||
// | ||
// API docs from [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web). | ||
// Attributions and copyright licensing by Mozilla Contributors is licensed | ||
// under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/. | ||
|
||
// Generated from Web IDL definitions. | ||
|
||
@JS() | ||
library; | ||
|
||
import 'dart:js_interop'; | ||
|
||
import 'dom.dart'; | ||
|
||
/// The **`ContentVisibilityAutoStateChangeEvent`** interface is the event | ||
/// object for the [element.contentvisibilityautostatechange_event] event, which | ||
/// fires on any element with set on it when it starts or stops being | ||
/// [relevant to the user](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_containment#relevant_to_the_user) | ||
/// and | ||
/// [skipping its contents](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_containment#skips_its_contents). | ||
/// | ||
/// While the element is not relevant (between the start and end events), the | ||
/// user agent skips an element's rendering, including layout and painting. | ||
/// This can significantly improve page rendering speed. | ||
/// The [element.contentvisibilityautostatechange_event] event provides a way | ||
/// for an app's code to also start or stop rendering processes (e.g. drawing on | ||
/// a `canvas`) when they are not needed, thereby conserving processing power. | ||
/// | ||
/// Note that even when hidden from view, element contents will remain | ||
/// semantically relevant (e.g. to assistive technology users), so this signal | ||
/// should not be used to skip significant semantic DOM updates. | ||
/// | ||
/// --- | ||
/// | ||
/// API documentation sourced from | ||
/// [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/API/ContentVisibilityAutoStateChangeEvent). | ||
extension type ContentVisibilityAutoStateChangeEvent._(JSObject _) | ||
implements Event, JSObject { | ||
external factory ContentVisibilityAutoStateChangeEvent( | ||
String type, [ | ||
ContentVisibilityAutoStateChangeEventInit eventInitDict, | ||
]); | ||
|
||
/// The `skipped` read-only property of the | ||
/// [ContentVisibilityAutoStateChangeEvent] interface returns `true` if the | ||
/// user agent [skips the element's | ||
/// contents](/en-US/docs/Web/CSS/CSS_containment#skips_its_contents), or | ||
/// `false` otherwise. | ||
external bool get skipped; | ||
} | ||
extension type ContentVisibilityAutoStateChangeEventInit._(JSObject _) | ||
implements EventInit, JSObject { | ||
external factory ContentVisibilityAutoStateChangeEventInit({ | ||
bool bubbles, | ||
bool cancelable, | ||
bool composed, | ||
bool skipped, | ||
}); | ||
|
||
external bool get skipped; | ||
external set skipped(bool value); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.