@@ -120,6 +120,7 @@ interface HTMLElement : Element {
120
120
[CEReactions] attribute DOMString autocapitalize;
121
121
122
122
[CEReactions] attribute [LegacyNullToEmptyString] DOMString innerText;
123
+ [CEReactions] attribute [LegacyNullToEmptyString] DOMString outerText;
123
124
124
125
ElementInternals attachInternals();
125
126
};
@@ -695,7 +696,7 @@ interface TextTrackCue : EventTarget {
695
696
696
697
attribute DOMString id;
697
698
attribute double startTime;
698
- attribute double endTime;
699
+ attribute unrestricted double endTime;
699
700
attribute boolean pauseOnExit;
700
701
701
702
attribute EventHandler onenter;
@@ -1231,6 +1232,7 @@ interface HTMLSlotElement : HTMLElement {
1231
1232
[CEReactions] attribute DOMString name;
1232
1233
sequence<Node> assignedNodes(optional AssignedNodesOptions options = {});
1233
1234
sequence<Element> assignedElements(optional AssignedNodesOptions options = {});
1235
+ undefined assign((Element or Text)... nodes);
1234
1236
};
1235
1237
1236
1238
dictionary AssignedNodesOptions {
@@ -1264,11 +1266,14 @@ typedef (HTMLOrSVGImageElement or
1264
1266
ImageBitmap or
1265
1267
OffscreenCanvas) CanvasImageSource;
1266
1268
1269
+ enum PredefinedColorSpace { "srgb", "display-p3" };
1270
+
1267
1271
enum CanvasFillRule { "nonzero", "evenodd" };
1268
1272
1269
1273
dictionary CanvasRenderingContext2DSettings {
1270
1274
boolean alpha = true;
1271
1275
boolean desynchronized = false;
1276
+ PredefinedColorSpace colorSpace = "srgb";
1272
1277
};
1273
1278
1274
1279
enum ImageSmoothingQuality { "low", "medium", "high" };
@@ -1301,6 +1306,7 @@ interface mixin CanvasState {
1301
1306
// state
1302
1307
undefined save(); // push state on state stack
1303
1308
undefined restore(); // pop state stack and restore state
1309
+ undefined reset(); // reset the rendering context to its default state
1304
1310
};
1305
1311
1306
1312
interface mixin CanvasTransform {
@@ -1336,6 +1342,7 @@ interface mixin CanvasFillStrokeStyles {
1336
1342
attribute (DOMString or CanvasGradient or CanvasPattern) fillStyle; // (default black)
1337
1343
CanvasGradient createLinearGradient(double x0, double y0, double x1, double y1);
1338
1344
CanvasGradient createRadialGradient(double x0, double y0, double r0, double x1, double y1, double r1);
1345
+ CanvasGradient createConicGradient(double startAngle, double x, double y);
1339
1346
CanvasPattern? createPattern(CanvasImageSource image, [LegacyNullToEmptyString] DOMString repetition);
1340
1347
1341
1348
};
@@ -1398,9 +1405,9 @@ interface mixin CanvasDrawImage {
1398
1405
1399
1406
interface mixin CanvasImageData {
1400
1407
// pixel manipulation
1401
- ImageData createImageData([EnforceRange] long sw, [EnforceRange] long sh);
1408
+ ImageData createImageData([EnforceRange] long sw, [EnforceRange] long sh, optional ImageDataSettings settings = {} );
1402
1409
ImageData createImageData(ImageData imagedata);
1403
- ImageData getImageData([EnforceRange] long sx, [EnforceRange] long sy, [EnforceRange] long sw, [EnforceRange] long sh);
1410
+ ImageData getImageData([EnforceRange] long sx, [EnforceRange] long sy, [EnforceRange] long sw, [EnforceRange] long sh, optional ImageDataSettings settings = {} );
1404
1411
undefined putImageData(ImageData imagedata, [EnforceRange] long dx, [EnforceRange] long dy);
1405
1412
undefined putImageData(ImageData imagedata, [EnforceRange] long dx, [EnforceRange] long dy, [EnforceRange] long dirtyX, [EnforceRange] long dirtyY, [EnforceRange] long dirtyWidth, [EnforceRange] long dirtyHeight);
1406
1413
};
@@ -1410,6 +1417,10 @@ enum CanvasLineJoin { "round", "bevel", "miter" };
1410
1417
enum CanvasTextAlign { "start", "end", "left", "right", "center" };
1411
1418
enum CanvasTextBaseline { "top", "hanging", "middle", "alphabetic", "ideographic", "bottom" };
1412
1419
enum CanvasDirection { "ltr", "rtl", "inherit" };
1420
+ enum CanvasFontKerning { "auto", "normal", "none" };
1421
+ enum CanvasFontStretch { "ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded" };
1422
+ enum CanvasFontVariantCaps { "normal", "small-caps", "all-small-caps", "petite-caps", "all-petite-caps", "unicase", "titling-caps" };
1423
+ enum CanvasTextRendering { "auto", "optimizeSpeed", "optimizeLegibility", "geometricPrecision" };
1413
1424
1414
1425
interface mixin CanvasPathDrawingStyles {
1415
1426
// line caps/joins
@@ -1430,6 +1441,12 @@ interface mixin CanvasTextDrawingStyles {
1430
1441
attribute CanvasTextAlign textAlign; // (default: "start")
1431
1442
attribute CanvasTextBaseline textBaseline; // (default: "alphabetic")
1432
1443
attribute CanvasDirection direction; // (default: "inherit")
1444
+ attribute double textLetterSpacing; // (default: 0)
1445
+ attribute double textWordSpacing; // (default: 0)
1446
+ attribute CanvasFontKerning fontKerning; // (default: "auto")
1447
+ attribute CanvasFontStretch fontStretch; // (default: "normal")
1448
+ attribute CanvasFontVariantCaps fontVariantCaps; // (default: "normal")
1449
+ attribute CanvasTextRendering textRendering; // (default: "normal")
1433
1450
};
1434
1451
1435
1452
interface mixin CanvasPath {
@@ -1476,15 +1493,20 @@ interface TextMetrics {
1476
1493
readonly attribute double ideographicBaseline;
1477
1494
};
1478
1495
1496
+ dictionary ImageDataSettings {
1497
+ PredefinedColorSpace colorSpace;
1498
+ };
1499
+
1479
1500
[Exposed=(Window,Worker),
1480
1501
Serializable]
1481
1502
interface ImageData {
1482
- constructor(unsigned long sw, unsigned long sh);
1483
- constructor(Uint8ClampedArray data, unsigned long sw, optional unsigned long sh);
1503
+ constructor(unsigned long sw, unsigned long sh, optional ImageDataSettings settings = {} );
1504
+ constructor(Uint8ClampedArray data, unsigned long sw, optional unsigned long sh, optional ImageDataSettings settings = {} );
1484
1505
1485
1506
readonly attribute unsigned long width;
1486
1507
readonly attribute unsigned long height;
1487
1508
readonly attribute Uint8ClampedArray data;
1509
+ readonly attribute PredefinedColorSpace colorSpace;
1488
1510
};
1489
1511
1490
1512
[Exposed=(Window,Worker)]
@@ -1738,8 +1760,8 @@ interface History {
1738
1760
undefined go(optional long delta = 0);
1739
1761
undefined back();
1740
1762
undefined forward();
1741
- undefined pushState(any data, DOMString title , optional USVString? url = null);
1742
- undefined replaceState(any data, DOMString title , optional USVString? url = null);
1763
+ undefined pushState(any data, DOMString unused , optional USVString? url = null);
1764
+ undefined replaceState(any data, DOMString unused , optional USVString? url = null);
1743
1765
};
1744
1766
1745
1767
[Exposed=Window]
0 commit comments