Skip to content

Commit

Permalink
DOM update 2023-03-07
Browse files Browse the repository at this point in the history
Adds many things that are now available in Safari, but were previously
Chrome-only. Unlikely to break anybody except those using shim packages
from DT, and I'll update those after merging this.
  • Loading branch information
sandersn committed Mar 7, 2023
1 parent 6dbec02 commit 29914d4
Show file tree
Hide file tree
Showing 8 changed files with 1,388 additions and 32 deletions.
759 changes: 743 additions & 16 deletions src/lib/dom.generated.d.ts

Large diffs are not rendered by default.

28 changes: 28 additions & 0 deletions src/lib/dom.iterable.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ interface CSSKeyframesRule {
[Symbol.iterator](): IterableIterator<CSSKeyframeRule>;
}

interface CSSNumericArray {
[Symbol.iterator](): IterableIterator<CSSNumericValue>;
entries(): IterableIterator<[number, CSSNumericValue]>;
keys(): IterableIterator<number>;
values(): IterableIterator<CSSNumericValue>;
}

interface CSSRuleList {
[Symbol.iterator](): IterableIterator<CSSRule>;
}
Expand All @@ -26,6 +33,20 @@ interface CSSStyleDeclaration {
[Symbol.iterator](): IterableIterator<string>;
}

interface CSSTransformValue {
[Symbol.iterator](): IterableIterator<CSSTransformComponent>;
entries(): IterableIterator<[number, CSSTransformComponent]>;
keys(): IterableIterator<number>;
values(): IterableIterator<CSSTransformComponent>;
}

interface CSSUnparsedValue {
[Symbol.iterator](): IterableIterator<CSSUnparsedSegment>;
entries(): IterableIterator<[number, CSSUnparsedSegment]>;
keys(): IterableIterator<number>;
values(): IterableIterator<CSSUnparsedSegment>;
}

interface Cache {
addAll(requests: Iterable<RequestInfo>): Promise<void>;
}
Expand Down Expand Up @@ -228,6 +249,13 @@ interface SpeechRecognitionResultList {
[Symbol.iterator](): IterableIterator<SpeechRecognitionResult>;
}

interface StylePropertyMapReadOnly {
[Symbol.iterator](): IterableIterator<[string, Iterable<CSSStyleValue>]>;
entries(): IterableIterator<[string, Iterable<CSSStyleValue>]>;
keys(): IterableIterator<string>;
values(): IterableIterator<Iterable<CSSStyleValue>>;
}

interface StyleSheetList {
[Symbol.iterator](): IterableIterator<CSSStyleSheet>;
}
Expand Down
Loading

0 comments on commit 29914d4

Please sign in to comment.