|
14 | 14 | "html": "<p>Let <var>boundingRect</var> be the result of running the <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/cssom-view-1/#dom-element-getboundingclientrect\" id=\"ref-for-dom-element-getboundingclientrect\">getBoundingClientRect()</a></code> on <var>target</var>.</p>" |
15 | 15 | }, |
16 | 16 | { |
17 | | - "html": "<p>Clip <var>boundingRect</var> with the <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#concept-document\" id=\"ref-for-concept-document\">document</a>'s <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/cssom-view#scrolling-area\" id=\"ref-for-scrolling-area\">scrolling area</a>.</p>" |
| 17 | + "html": "<p>Clip <var>boundingRect</var> with the <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#clone-a-node-document\" id=\"ref-for-clone-a-node-document\">document</a>’s <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/cssom-view#scrolling-area\" id=\"ref-for-scrolling-area\">scrolling area</a>.</p>" |
18 | 18 | }, |
19 | 19 | { |
20 | 20 | "html": "<p>Return <var>boundingRect</var>.</p>" |
|
47 | 47 | { |
48 | 48 | "name": "Should report first contentful paint", |
49 | 49 | "href": "https://www.w3.org/TR/paint-timing/#should-report-first-contentful-paint", |
50 | | - "html": "To know whether <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#concept-document\" id=\"ref-for-concept-document②\">Document</a> <var>document</var> <dfn class=\"dfn-paneled has-dfn-panel\" data-dfn-type=\"dfn\" data-noexport=\"\" id=\"should-report-first-contentful-paint\" role=\"button\" aria-expanded=\"false\" tabindex=\"0\">should report first contentful paint</dfn>, perform the following steps:", |
| 50 | + "html": "To know whether <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#clone-a-node-document\" id=\"ref-for-clone-a-node-document②\">Document</a> <var>document</var> <dfn class=\"dfn-paneled has-dfn-panel\" data-dfn-type=\"dfn\" data-noexport=\"\" id=\"should-report-first-contentful-paint\" role=\"button\" aria-expanded=\"false\" tabindex=\"0\">should report first contentful paint</dfn>, perform the following steps:", |
51 | 51 | "rationale": ".algorithm", |
52 | 52 | "steps": [ |
53 | 53 | { |
|
63 | 63 | }, |
64 | 64 | { |
65 | 65 | "name": "Mark paint timing", |
66 | | - "html": "When asked to <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/paint-timing/#mark-paint-timing\" id=\"ref-for-mark-paint-timing①\">mark paint timing</a> given a <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#concept-document\" id=\"ref-for-concept-document③\">Document</a> <var>document</var> as input, perform the following steps:", |
| 66 | + "html": "When asked to <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/paint-timing/#mark-paint-timing\" id=\"ref-for-mark-paint-timing①\">mark paint timing</a> given a <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#clone-a-node-document\" id=\"ref-for-clone-a-node-document③\">Document</a> <var>document</var> as input, perform the following steps:", |
67 | 67 | "rationale": ".algorithm", |
68 | 68 | "steps": [ |
69 | 69 | { |
70 | | - "html": "<p>If the <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#concept-document\" id=\"ref-for-concept-document④\">document</a>'s <a data-link-type=\"dfn\" href=\"https://html.spec.whatwg.org/multipage/document-sequences.html#concept-document-bc\" id=\"ref-for-concept-document-bc\">browsing context</a> is not <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/paint-timing/#paint-timing-eligible\" id=\"ref-for-paint-timing-eligible①\">paint-timing eligible</a>, return.</p>" |
| 70 | + "html": "<p>If the <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#clone-a-node-document\" id=\"ref-for-clone-a-node-document④\">document</a>’s <a data-link-type=\"dfn\" href=\"https://html.spec.whatwg.org/multipage/document-sequences.html#concept-document-bc\" id=\"ref-for-concept-document-bc\">browsing context</a> is not <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/paint-timing/#paint-timing-eligible\" id=\"ref-for-paint-timing-eligible①\">paint-timing eligible</a>, return.</p>" |
71 | 71 | }, |
72 | 72 | { |
73 | 73 | "html": "<p>Let <var>paintTimingInfo</var> be a new <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/paint-timing/#paint-timing-info\" id=\"ref-for-paint-timing-info②\">paint timing info</a>, whose <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/paint-timing/#paint-timing-info-rendering-update-end-time\" id=\"ref-for-paint-timing-info-rendering-update-end-time②\">rendering update end time</a> is the <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/hr-time-3/#dfn-current-high-resolution-time\" id=\"ref-for-dfn-current-high-resolution-time①\">current high resolution time</a> given <var>document</var>’s <a data-link-type=\"dfn\" href=\"https://html.spec.whatwg.org/multipage/webappapis.html#concept-relevant-global\" id=\"ref-for-concept-relevant-global①\">relevant global object</a>.</p>" |
|
117 | 117 | { |
118 | 118 | "html": "<p>Let <var>reportedPaints</var> be the <var>document</var>’s <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/paint-timing/#set-of-previously-reported-paints\" id=\"ref-for-set-of-previously-reported-paints①\">set of previously reported paints</a>.</p>" |
119 | 119 | }, |
| 120 | + { |
| 121 | + "html": "<p>Let <var>frameTimingInfo</var> be <var>document</var>’s <a data-link-type=\"dfn\" href=\"https://w3c.github.io/long-animation-frames/#current-frame-timing-info\" id=\"ref-for-current-frame-timing-info\">current frame timing info</a>.</p>" |
| 122 | + }, |
| 123 | + { |
| 124 | + "html": "<p>Set <var>document</var>’s <a data-link-type=\"dfn\" href=\"https://w3c.github.io/long-animation-frames/#current-frame-timing-info\" id=\"ref-for-current-frame-timing-info①\">current frame timing info</a> to null.</p>" |
| 125 | + }, |
120 | 126 | { |
121 | 127 | "html": "Let <var>flushPaintTimings</var> be the following steps:", |
122 | 128 | "rationale": "if", |
|
138 | 144 | }, |
139 | 145 | { |
140 | 146 | "html": "<p><a data-link-type=\"dfn\" href=\"https://wicg.github.io/element-timing/#report-element-timing\" id=\"ref-for-report-element-timing\">Report element timing</a> given <var>document</var>, <var>paintTimingInfo</var>, <var>paintedImages</var> and <var>paintedTextNodes</var>.</p>" |
| 147 | + }, |
| 148 | + { |
| 149 | + "html": "<p>If <var>frameTimingInfo</var> is not null, then <a data-link-type=\"dfn\" href=\"https://w3c.github.io/long-animation-frames/#queue-a-long-animation-frame-entry\" id=\"ref-for-queue-a-long-animation-frame-entry\">queue a long animation frame entry</a> given <var>document</var>, <var>frameTimingInfo</var>, and <var>paintTimingInfo</var>.</p>" |
141 | 150 | } |
142 | 151 | ] |
143 | 152 | }, |
|
209 | 218 | }, |
210 | 219 | { |
211 | 220 | "name": "Exposed for paint timing", |
212 | | - "html": "To determine whether an <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#concept-element\" id=\"ref-for-concept-element⑧\">Element</a> <var>element</var> is <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/paint-timing/#exposed-for-paint-timing\" id=\"ref-for-exposed-for-paint-timing①\">exposed for paint timing</a>, given a <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#concept-document\" id=\"ref-for-concept-document⑧\">Document</a> or null <var>document</var>, perform the following steps:", |
| 221 | + "html": "To determine whether an <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#concept-element\" id=\"ref-for-concept-element⑧\">Element</a> <var>element</var> is <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/paint-timing/#exposed-for-paint-timing\" id=\"ref-for-exposed-for-paint-timing①\">exposed for paint timing</a>, given a <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#clone-a-node-document\" id=\"ref-for-clone-a-node-document⑧\">Document</a> or null <var>document</var>, perform the following steps:", |
213 | 222 | "rationale": ".algorithm", |
214 | 223 | "steps": [ |
215 | 224 | { |
216 | 225 | "html": "<p>If <var>element</var> is not <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#connected\" id=\"ref-for-connected\">connected</a>, return false.</p>" |
217 | 226 | }, |
218 | 227 | { |
219 | | - "html": "<p>If <var>document</var> is null, let <var>document</var> be <var>element</var>’s <a data-link-type=\"dfn\" href=\"https://html.spec.whatwg.org/multipage/webappapis.html#relevant-settings-object\" id=\"ref-for-relevant-settings-object\">relevant settings object</a>'s <a data-link-type=\"dfn\" href=\"https://html.spec.whatwg.org/multipage/webappapis.html#concept-relevant-global\" id=\"ref-for-concept-relevant-global④\">relevant global object</a>'s <a data-link-type=\"dfn\" href=\"https://html.spec.whatwg.org/multipage/nav-history-apis.html#concept-document-window\" id=\"ref-for-concept-document-window\">associated document</a>.</p>" |
| 228 | + "html": "<p>If <var>document</var> is null, let <var>document</var> be <var>element</var>’s <a data-link-type=\"dfn\" href=\"https://html.spec.whatwg.org/multipage/webappapis.html#relevant-settings-object\" id=\"ref-for-relevant-settings-object\">relevant settings object</a>’s <a data-link-type=\"dfn\" href=\"https://html.spec.whatwg.org/multipage/webappapis.html#concept-relevant-global\" id=\"ref-for-concept-relevant-global④\">relevant global object</a>’s <a data-link-type=\"dfn\" href=\"https://html.spec.whatwg.org/multipage/nav-history-apis.html#concept-document-window\" id=\"ref-for-concept-document-window\">associated document</a>.</p>" |
220 | 229 | }, |
221 | 230 | { |
222 | 231 | "html": "<p>If <var>document</var> is not <a data-link-type=\"dfn\" href=\"https://html.spec.whatwg.org/multipage/document-sequences.html#fully-active\" id=\"ref-for-fully-active\">fully active</a>, return false.</p>" |
|
0 commit comments