|
16439 | 16439 | "html": "<p>If <var>settings</var>[\"<code id=\"pixel-manipulation:dom-imagedatasettings-colorspace-2\"><a href=\"https://html.spec.whatwg.org/multipage/canvas.html#dom-imagedatasettings-colorspace\">colorSpace</a></code>\"]\n <a href=\"https://infra.spec.whatwg.org/#map-exists\" id=\"pixel-manipulation:map-exists\" data-x-internal=\"map-exists\">exists</a>, then initialize the <dfn data-dfn-for=\"ImageData\" id=\"dom-imagedata-colorspace\" data-dfn-type=\"attribute\"><code>colorSpace</code></dfn> attribute of <var>imageData</var> to\n <var>settings</var>[\"<dfn data-dfn-for=\"ImageDataSettings\" id=\"dom-imagedatasettings-colorspace\" data-dfn-type=\"dict-member\"><code>colorSpace</code></dfn>\"].</p>" |
16440 | 16440 | }, |
16441 | 16441 | { |
16442 | | - "html": "<p>Otherwise, initialize the <code id=\"pixel-manipulation:dom-imagedata-colorspace-3\"><a href=\"https://html.spec.whatwg.org/multipage/canvas.html#dom-imagedata-colorspace\">colorSpace</a></code>\n attribute of <var>imageData</var> to \"<a href=\"https://html.spec.whatwg.org/multipage/canvas.html#dom-predefinedcolorspace-srgb\" id=\"pixel-manipulation:dom-predefinedcolorspace-srgb\">srgb</a>\".</p>" |
| 16442 | + "html": "<p>Otherwise, if <var>defaultColorSpace</var> was given, then initialize the <code id=\"pixel-manipulation:dom-imagedata-colorspace-3\"><a href=\"https://html.spec.whatwg.org/multipage/canvas.html#dom-imagedata-colorspace\">colorSpace</a></code> attribute of <var>imageData</var> to\n <var>defaultColorSpace</var>.</p>" |
| 16443 | + }, |
| 16444 | + { |
| 16445 | + "html": "<p>Otherwise, initialize the <code id=\"pixel-manipulation:dom-imagedata-colorspace-4\"><a href=\"https://html.spec.whatwg.org/multipage/canvas.html#dom-imagedata-colorspace\">colorSpace</a></code>\n attribute of <var>imageData</var> to \"<a href=\"https://html.spec.whatwg.org/multipage/canvas.html#dom-predefinedcolorspace-srgb\" id=\"pixel-manipulation:dom-predefinedcolorspace-srgb\">srgb</a>\".</p>" |
16443 | 16446 | } |
16444 | 16447 | ] |
16445 | 16448 | }, |
|
16457 | 16460 | "html": "<p>Set <var>serialized</var>.[[Height]] to the value of <var>value</var>'s <code id=\"pixel-manipulation:dom-imagedata-height-2\"><a href=\"https://html.spec.whatwg.org/multipage/canvas.html#dom-imagedata-height\">height</a></code> attribute.</p>" |
16458 | 16461 | }, |
16459 | 16462 | { |
16460 | | - "html": "<p>Set <var>serialized</var>.[[ColorSpace]] to the value of <var>value</var>'s <code id=\"pixel-manipulation:dom-imagedata-colorspace-4\"><a href=\"https://html.spec.whatwg.org/multipage/canvas.html#dom-imagedata-colorspace\">colorSpace</a></code> attribute.</p>" |
| 16463 | + "html": "<p>Set <var>serialized</var>.[[ColorSpace]] to the value of <var>value</var>'s <code id=\"pixel-manipulation:dom-imagedata-colorspace-5\"><a href=\"https://html.spec.whatwg.org/multipage/canvas.html#dom-imagedata-colorspace\">colorSpace</a></code> attribute.</p>" |
16461 | 16464 | }, |
16462 | 16465 | { |
16463 | 16466 | "html": "<p>Set <var>serialized</var>.[[PixelFormat]] to the value of <var>value</var>'s <code id=\"pixel-manipulation:dom-imagedata-pixelformat-2\"><a href=\"https://html.spec.whatwg.org/multipage/canvas.html#dom-imagedata-pixelformat\">pixelFormat</a></code> attribute.</p>" |
|
16478 | 16481 | "html": "<p>Initialize <var>value</var>'s <code id=\"pixel-manipulation:dom-imagedata-height-3\"><a href=\"https://html.spec.whatwg.org/multipage/canvas.html#dom-imagedata-height\">height</a></code> attribute\n to <var>serialized</var>.[[Height]].</p>" |
16479 | 16482 | }, |
16480 | 16483 | { |
16481 | | - "html": "<p>Initialize <var>value</var>'s <code id=\"pixel-manipulation:dom-imagedata-colorspace-5\"><a href=\"https://html.spec.whatwg.org/multipage/canvas.html#dom-imagedata-colorspace\">colorSpace</a></code>\n attribute to <var>serialized</var>.[[ColorSpace]].</p>" |
| 16484 | + "html": "<p>Initialize <var>value</var>'s <code id=\"pixel-manipulation:dom-imagedata-colorspace-6\"><a href=\"https://html.spec.whatwg.org/multipage/canvas.html#dom-imagedata-colorspace\">colorSpace</a></code>\n attribute to <var>serialized</var>.[[ColorSpace]].</p>" |
16482 | 16485 | }, |
16483 | 16486 | { |
16484 | 16487 | "html": "<p>Initialize <var>value</var>'s <code id=\"pixel-manipulation:dom-imagedata-pixelformat-3\"><a href=\"https://html.spec.whatwg.org/multipage/canvas.html#dom-imagedata-pixelformat\">pixelFormat</a></code>\n attribute to <var>serialized</var>.[[PixelFormat]].</p>" |
|
16510 | 16513 | "html": "<p>If, after those changes, either <var>dirtyWidth</var> or <var>dirtyHeight</var> are negative\n or zero, then return without affecting any bitmaps.</p>" |
16511 | 16514 | }, |
16512 | 16515 | { |
16513 | | - "html": "<p>For all integer values of <var>x</var> and <var>y</var> where <span><var>dirtyX</var> ≤ <var>x</var> < <span><var>dirtyX</var>+<var>dirtyWidth</var></span></span> and <span><var>dirtyY</var> ≤ <var>y</var> < <span><var>dirtyY</var>+<var>dirtyHeight</var></span></span>,\n set the pixel with coordinate (<span><var>dx</var>+<var>x</var></span>,\n <var>dy</var>+<var>y</var>) in <var>bitmap</var> to the color of the pixel at coordinate\n (<var>x</var>, <var>y</var>) in the <var>imageData</var> data structure's\n <a href=\"https://html.spec.whatwg.org/multipage/canvas.html#concept-imagedata-bitmap-representation\" id=\"pixel-manipulation:concept-imagedata-bitmap-representation\">bitmap</a>,\n converted from <var>imageData</var>'s <code id=\"pixel-manipulation:dom-imagedata-colorspace-7\"><a href=\"https://html.spec.whatwg.org/multipage/canvas.html#dom-imagedata-colorspace\">colorSpace</a></code>\n to the <a href=\"https://html.spec.whatwg.org/multipage/canvas.html#concept-canvas-color-space\" id=\"pixel-manipulation:concept-canvas-color-space-6\">color space</a> of <var>bitmap</var>\n using <a id=\"pixel-manipulation:'relative-colorimetric'-2\" href=\"https://drafts.csswg.org/css-color-5/#valdef-color-profile-rendering-intent-relative-colorimetric\" data-x-internal=\"'relative-colorimetric'\">'relative-colorimetric'</a> rendering intent.</p>" |
| 16516 | + "html": "<p>For all integer values of <var>x</var> and <var>y</var> where <span><var>dirtyX</var> ≤ <var>x</var> < <span><var>dirtyX</var>+<var>dirtyWidth</var></span></span> and <span><var>dirtyY</var> ≤ <var>y</var> < <span><var>dirtyY</var>+<var>dirtyHeight</var></span></span>,\n set the pixel with coordinate (<span><var>dx</var>+<var>x</var></span>,\n <var>dy</var>+<var>y</var>) in <var>bitmap</var> to the color of the pixel at coordinate\n (<var>x</var>, <var>y</var>) in the <var>imageData</var> data structure's\n <a href=\"https://html.spec.whatwg.org/multipage/canvas.html#concept-imagedata-bitmap-representation\" id=\"pixel-manipulation:concept-imagedata-bitmap-representation\">bitmap</a>,\n converted from <var>imageData</var>'s <code id=\"pixel-manipulation:dom-imagedata-colorspace-8\"><a href=\"https://html.spec.whatwg.org/multipage/canvas.html#dom-imagedata-colorspace\">colorSpace</a></code>\n to the <a href=\"https://html.spec.whatwg.org/multipage/canvas.html#concept-canvas-color-space\" id=\"pixel-manipulation:concept-canvas-color-space-6\">color space</a> of <var>bitmap</var>\n using <a id=\"pixel-manipulation:'relative-colorimetric'-2\" href=\"https://drafts.csswg.org/css-color-5/#valdef-color-profile-rendering-intent-relative-colorimetric\" data-x-internal=\"'relative-colorimetric'\">'relative-colorimetric'</a> rendering intent.</p>" |
16514 | 16517 | } |
16515 | 16518 | ] |
16516 | 16519 | }, |
|
24487 | 24490 | "rationale": "let", |
24488 | 24491 | "steps": [ |
24489 | 24492 | { |
24490 | | - "html": "<p>Let <var>document</var> be <var>history</var>'s associated <code id=\"the-history-interface:document-4\"><a href=\"https://html.spec.whatwg.org/multipage/dom.html#document\">Document</a></code>.</p>" |
| 24493 | + "html": "<p>Let <var>document</var> be <var>history</var>'s <a id=\"the-history-interface:concept-relevant-global-6\" href=\"https://html.spec.whatwg.org/multipage/webappapis.html#concept-relevant-global\">relevant global object</a>'s\n <a href=\"https://html.spec.whatwg.org/multipage/nav-history-apis.html#concept-document-window\" id=\"the-history-interface:concept-document-window-7\">associated <code>Document</code></a>.</p>" |
24491 | 24494 | }, |
24492 | 24495 | { |
24493 | 24496 | "html": "<p>If <var>document</var> is not <a id=\"the-history-interface:fully-active-6\" href=\"https://html.spec.whatwg.org/multipage/document-sequences.html#fully-active\">fully active</a>, then throw a\n <a id=\"the-history-interface:securityerror-8\" href=\"https://webidl.spec.whatwg.org/#securityerror\" data-x-internal=\"securityerror\">\"<code>SecurityError</code>\"</a> <code id=\"the-history-interface:domexception-8\"><a data-x-internal=\"domexception\" href=\"https://webidl.spec.whatwg.org/#dfn-DOMException\">DOMException</a></code>.</p>" |
|
24517 | 24520 | ] |
24518 | 24521 | }, |
24519 | 24522 | { |
24520 | | - "html": "<p>Let <var>navigation</var> be <var>history</var>'s <a id=\"the-history-interface:concept-relevant-global-6\" href=\"https://html.spec.whatwg.org/multipage/webappapis.html#concept-relevant-global\">relevant global object</a>'s\n <a href=\"https://html.spec.whatwg.org/multipage/nav-history-apis.html#window-navigation-api\" id=\"the-history-interface:window-navigation-api\">navigation API</a>.</p>" |
| 24523 | + "html": "<p>Let <var>navigation</var> be <var>history</var>'s <a id=\"the-history-interface:concept-relevant-global-7\" href=\"https://html.spec.whatwg.org/multipage/webappapis.html#concept-relevant-global\">relevant global object</a>'s\n <a href=\"https://html.spec.whatwg.org/multipage/nav-history-apis.html#window-navigation-api\" id=\"the-history-interface:window-navigation-api\">navigation API</a>.</p>" |
24521 | 24524 | }, |
24522 | 24525 | { |
24523 | 24526 | "html": "<p>Let <var>continue</var> be the result of <a href=\"https://html.spec.whatwg.org/multipage/nav-history-apis.html#fire-a-push/replace/reload-navigate-event\" id=\"the-history-interface:fire-a-push/replace/reload-navigate-event\">firing a push/replace/reload <code>navigate</code> event</a> at\n <var>navigation</var> with <i id=\"the-history-interface:fire-navigate-prr-navigationtype\"><a href=\"https://html.spec.whatwg.org/multipage/nav-history-apis.html#fire-navigate-prr-navigationtype\">navigationType</a></i> set to\n <var>historyHandling</var>, <i id=\"the-history-interface:fire-navigate-prr-issamedocument\"><a href=\"https://html.spec.whatwg.org/multipage/nav-history-apis.html#fire-navigate-prr-issamedocument\">isSameDocument</a></i> set\n to true, <i id=\"the-history-interface:fire-navigate-prr-destinationurl\"><a href=\"https://html.spec.whatwg.org/multipage/nav-history-apis.html#fire-navigate-prr-destinationurl\">destinationURL</a></i> set to\n <var>newURL</var>, and <i id=\"the-history-interface:fire-navigate-prr-classichistoryapistate\"><a href=\"https://html.spec.whatwg.org/multipage/nav-history-apis.html#fire-navigate-prr-classichistoryapistate\">classicHistoryAPIState</a></i> set to\n <var>serializedData</var>.</p>" |
|
24533 | 24536 | { |
24534 | 24537 | "name": "can have its URL rewritten", |
24535 | 24538 | "href": "https://html.spec.whatwg.org/multipage/nav-history-apis.html#can-have-its-url-rewritten", |
24536 | | - "html": "A <code id=\"the-history-interface:document-6\"><a href=\"https://html.spec.whatwg.org/multipage/dom.html#document\">Document</a></code> <var>document</var> <dfn id=\"can-have-its-url-rewritten\">can have its URL rewritten</dfn> to a\n <a id=\"the-history-interface:url\" href=\"https://url.spec.whatwg.org/#concept-url\" data-x-internal=\"url\">URL</a> <var>targetURL</var> if the following algorithm returns true:", |
| 24539 | + "html": "A <code id=\"the-history-interface:document-5\"><a href=\"https://html.spec.whatwg.org/multipage/dom.html#document\">Document</a></code> <var>document</var> <dfn id=\"can-have-its-url-rewritten\">can have its URL rewritten</dfn> to a\n <a id=\"the-history-interface:url\" href=\"https://url.spec.whatwg.org/#concept-url\" data-x-internal=\"url\">URL</a> <var>targetURL</var> if the following algorithm returns true:", |
24537 | 24540 | "rationale": "let", |
24538 | 24541 | "steps": [ |
24539 | 24542 | { |
|
25940 | 25943 | "rationale": "if", |
25941 | 25944 | "steps": [ |
25942 | 25945 | { |
25943 | | - "html": "<p>If <var>event</var>'s <a id=\"navigate-event-firing:concept-relevant-global-6\" href=\"https://html.spec.whatwg.org/multipage/webappapis.html#concept-relevant-global\">relevant global object</a> is not <a id=\"navigate-event-firing:fully-active\" href=\"https://html.spec.whatwg.org/multipage/document-sequences.html#fully-active\">fully\n active</a>, then abort these steps.</p>" |
| 25946 | + "html": "<p>If <var>event</var>'s <a id=\"navigate-event-firing:concept-relevant-global-6\" href=\"https://html.spec.whatwg.org/multipage/webappapis.html#concept-relevant-global\">relevant global object</a>'s <a href=\"https://html.spec.whatwg.org/multipage/nav-history-apis.html#concept-document-window\" id=\"navigate-event-firing:concept-document-window-3\">associated <code>Document</code></a> is not <a id=\"navigate-event-firing:fully-active\" href=\"https://html.spec.whatwg.org/multipage/document-sequences.html#fully-active\">fully\n active</a>, then abort these steps.</p>" |
25944 | 25947 | }, |
25945 | 25948 | { |
25946 | 25949 | "html": "<p>If <var>event</var>'s <a href=\"https://html.spec.whatwg.org/multipage/nav-history-apis.html#concept-navigateevent-abort-controller\" id=\"navigate-event-firing:concept-navigateevent-abort-controller-4\">abort\n controller</a>'s <a href=\"https://dom.spec.whatwg.org/#abortcontroller-signal\" id=\"navigate-event-firing:concept-abortcontroller-signal-3\" data-x-internal=\"concept-abortcontroller-signal\">signal</a> is <a href=\"https://dom.spec.whatwg.org/#abortsignal-aborted\" id=\"navigate-event-firing:abortsignal-aborted-2\" data-x-internal=\"abortsignal-aborted\">aborted</a>, then abort these steps.</p>" |
|
25973 | 25976 | "rationale": "if", |
25974 | 25977 | "steps": [ |
25975 | 25978 | { |
25976 | | - "html": "<p>If <var>event</var>'s <a id=\"navigate-event-firing:concept-relevant-global-7\" href=\"https://html.spec.whatwg.org/multipage/webappapis.html#concept-relevant-global\">relevant global object</a> is not <a id=\"navigate-event-firing:fully-active-2\" href=\"https://html.spec.whatwg.org/multipage/document-sequences.html#fully-active\">fully\n active</a>, then abort these steps.</p>" |
| 25979 | + "html": "<p>If <var>event</var>'s <a id=\"navigate-event-firing:concept-relevant-global-7\" href=\"https://html.spec.whatwg.org/multipage/webappapis.html#concept-relevant-global\">relevant global object</a>'s <a href=\"https://html.spec.whatwg.org/multipage/nav-history-apis.html#concept-document-window\" id=\"navigate-event-firing:concept-document-window-4\">associated <code>Document</code></a> is not <a id=\"navigate-event-firing:fully-active-2\" href=\"https://html.spec.whatwg.org/multipage/document-sequences.html#fully-active\">fully\n active</a>, then abort these steps.</p>" |
25977 | 25980 | }, |
25978 | 25981 | { |
25979 | 25982 | "html": "<p>If <var>event</var>'s <a href=\"https://html.spec.whatwg.org/multipage/nav-history-apis.html#concept-navigateevent-abort-controller\" id=\"navigate-event-firing:concept-navigateevent-abort-controller-5\">abort\n controller</a>'s <a href=\"https://dom.spec.whatwg.org/#abortcontroller-signal\" id=\"navigate-event-firing:concept-abortcontroller-signal-4\" data-x-internal=\"concept-abortcontroller-signal\">signal</a> is <a href=\"https://dom.spec.whatwg.org/#abortsignal-aborted\" id=\"navigate-event-firing:abortsignal-aborted-3\" data-x-internal=\"abortsignal-aborted\">aborted</a>, then abort these steps.</p>" |
|
0 commit comments