Skip to content

Commit

Permalink
fix: flaws in web/api/p* (#3801)
Browse files Browse the repository at this point in the history
  • Loading branch information
nschonni authored Apr 8, 2021
1 parent 5eab455 commit 86a69ae
Show file tree
Hide file tree
Showing 72 changed files with 366 additions and 366 deletions.
4 changes: 2 additions & 2 deletions files/en-us/web/api/page_visibility_api/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ <h3 id="Policies_in_place_to_aid_background_page_performance">Policies in place

<ul>
<li>Most browsers stop sending {{domxref("Window.requestAnimationFrame", "requestAnimationFrame()")}} callbacks to background tabs or hidden {{ HTMLElement("iframe") }}s in order to improve performance and battery life.</li>
<li>Timers such as {{domxref("WindowOrWorkerGlobalScope.setTimeout", "setTimeout()")}} are throttled in background/inactive tabs to help improve performance. See <a href="/en-US/docs/Web/API/WindowOrWorkerGlobalScope/setTimeout#Reasons_for_delays_longer_than_specified">Reasons for delays longer than specified</a> for more details.</li>
<li>Timers such as {{domxref("WindowOrWorkerGlobalScope.setTimeout", "setTimeout()")}} are throttled in background/inactive tabs to help improve performance. See <a href="/en-US/docs/Web/API/WindowOrWorkerGlobalScope/setTimeout#reasons_for_delays_longer_than_specified">Reasons for delays longer than specified</a> for more details.</li>
<li>Budget-based background timeout throttling is now available in modern browsers (Firefox 58+, Chrome 57+), placing an additional limit on background timer CPU usage. This operates in a similar way across modern browsers, with the details being as follows:
<ul>
<li>In Firefox, windows in background tabs each have their own time budget in milliseconds — a max and a min value of +50 ms and -150 ms, respectively. Chrome is very similar except that the budget is specified in seconds.</li>
<li>Windows are subjected to throttling after 30 seconds, with the same throttling delay rules as specified for window timers (again, see <a href="/en-US/docs/Web/API/WindowOrWorkerGlobalScope/setTimeout#Reasons_for_delays_longer_than_specified">Reasons for delays longer than specified</a>). In Chrome, this value is 10 seconds.</li>
<li>Windows are subjected to throttling after 30 seconds, with the same throttling delay rules as specified for window timers (again, see <a href="/en-US/docs/Web/API/WindowOrWorkerGlobalScope/setTimeout#reasons_for_delays_longer_than_specified">Reasons for delays longer than specified</a>). In Chrome, this value is 10 seconds.</li>
<li>Timer tasks are only permitted when the budget is non-negative.</li>
<li>Once a timer's code has finished running, the duration of time it took to execute is subtracted from its window's timeout budget.</li>
<li>The budget regenerates at a rate of 10 ms per second, in both Firefox and Chrome.</li>
Expand Down
22 changes: 11 additions & 11 deletions files/en-us/web/api/paintworklet/registerpaint/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
title: PaintWorkletGlobalScope.registerPaint
slug: Web/API/PaintWorklet/registerPaint
tags:
- API
- CSS
- CSS Paint API
- Houdini
- Painting
- Property
- Reference
- Worklet
- paintWorklet
- registerPaint
- API
- CSS
- CSS Paint API
- Houdini
- Painting
- Property
- Reference
- Worklet
- paintWorklet
- registerPaint
---
<div>{{draft}}{{APIRef("CSS Painting API")}}</div>

Expand Down Expand Up @@ -84,7 +84,7 @@ <h2 id="Examples">Examples</h2>
CSS.paintWorklet.addModule('checkboardWorklet.js');
&lt;/script&gt;</pre>

<p>You can then use the <code>{{cssxref('paint', 'paint()')}}</code> CSS function in your
<p>You can then use the <code>{{cssxref('paint()', 'paint()')}}</code> CSS function in your
CSS anywhere an <code>{{cssxref('&lt;image&gt;')}}</code> value is valid.</p>

<pre class="brush: css">li {
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/pannernode/coneinnerangle/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ <h2 id="Browser_compatibility">Browser compatibility</h2>
<h2 id="See_also">See also</h2>

<ul>
<li><a href="/en-US/docs/Web_Audio_API/Using_Web_Audio_API">Using the Web Audio API</a></li>
<li><a href="/en-US/docs/Web/API/Web_Audio_API/Using_Web_Audio_API">Using the Web Audio API</a></li>
<li><a href="/en-US/docs/Web/API/Web_Audio_API/Web_audio_spatialization_basics">Web Audio spatialisation basics</a></li>
</ul>
2 changes: 1 addition & 1 deletion files/en-us/web/api/pannernode/coneouterangle/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ <h2 id="Browser_compatibility">Browser compatibility</h2>
<h2 id="See_also">See also</h2>

<ul>
<li><a href="/en-US/docs/Web_Audio_API/Using_Web_Audio_API">Using the Web Audio API</a></li>
<li><a href="/en-US/docs/Web/API/Web_Audio_API/Using_Web_Audio_API">Using the Web Audio API</a></li>
<li><a href="/en-US/docs/Web/API/Web_Audio_API/Web_audio_spatialization_basics">Web Audio spatialisation basics</a></li>
</ul>
2 changes: 1 addition & 1 deletion files/en-us/web/api/pannernode/coneoutergain/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,6 @@ <h2 id="Browser_compatibility">Browser compatibility</h2>
<h2 id="See_also">See also</h2>

<ul>
<li><a href="/en-US/docs/Web_Audio_API/Using_Web_Audio_API">Using the Web Audio API</a></li>
<li><a href="/en-US/docs/Web/API/Web_Audio_API/Using_Web_Audio_API">Using the Web Audio API</a></li>
<li><a href="/en-US/docs/Web/API/Web_Audio_API/Web_audio_spatialization_basics">Web Audio spatialisation basics</a></li>
</ul>
2 changes: 1 addition & 1 deletion files/en-us/web/api/pannernode/distancemodel/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,6 @@ <h2 id="Browser_compatibility">Browser compatibility</h2>
<h2 id="See_also">See also</h2>

<ul>
<li><a href="/en-US/docs/Web_Audio_API/Using_Web_Audio_API">Using the Web Audio API</a></li>
<li><a href="/en-US/docs/Web/API/Web_Audio_API/Using_Web_Audio_API">Using the Web Audio API</a></li>
<li><a href="/en-US/docs/Web/API/Web_Audio_API/Web_audio_spatialization_basics">Web Audio spatialisation basics</a></li>
</ul>
2 changes: 1 addition & 1 deletion files/en-us/web/api/pannernode/maxdistance/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,5 @@ <h2 id="Browser_compatibility">Browser compatibility</h2>
<h2 id="See_also">See also</h2>

<ul>
<li><a href="/en-US/docs/Web_Audio_API/Using_Web_Audio_API">Using the Web Audio API</a></li>
<li><a href="/en-US/docs/Web/API/Web_Audio_API/Using_Web_Audio_API">Using the Web Audio API</a></li>
</ul>
14 changes: 7 additions & 7 deletions files/en-us/web/api/pannernode/orientationy/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
title: PannerNode.orientationY
slug: Web/API/PannerNode/orientationY
tags:
- API
- PannerNode
- Property
- Reference
- Web Audio API
- orientationY
- API
- PannerNode
- Property
- Reference
- Web Audio API
- orientationY
---
<p>{{ APIRef("Web Audio API") }}</p>

Expand Down Expand Up @@ -78,7 +78,7 @@ <h2 id="Browser_compatibility">Browser compatibility</h2>
<h2 id="See_also">See also</h2>

<ul>
<li><a href="/en-US/docs/Web_Audio_API/Using_Web_Audio_API">Using the Web Audio API</a>
<li><a href="/en-US/docs/Web/API/Web_Audio_API/Using_Web_Audio_API">Using the Web Audio API</a>
</li>
<li><a href="/en-US/docs/Web/API/Web_Audio_API/Web_audio_spatialization_basics">Web
Audio spatialisation basics</a></li>
Expand Down
10 changes: 5 additions & 5 deletions files/en-us/web/api/pannernode/orientationz/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
title: PannerNode.orientationZ
slug: Web/API/PannerNode/orientationZ
tags:
- Audio
- PannerNode
- Property
- Web Audio
- Audio
- PannerNode
- Property
- Web Audio
---
<p>{{ APIRef("Web Audio API") }}</p>

Expand Down Expand Up @@ -76,7 +76,7 @@ <h2 id="Browser_compatibility">Browser compatibility</h2>
<h2 id="See_also">See also</h2>

<ul>
<li><a href="/en-US/docs/Web_Audio_API/Using_Web_Audio_API">Using the Web Audio API</a>
<li><a href="/en-US/docs/Web/API/Web_Audio_API/Using_Web_Audio_API">Using the Web Audio API</a>
</li>
<li><a href="/en-US/docs/Web/API/Web_Audio_API/Web_audio_spatialization_basics">Web
Audio spatialisation basics</a></li>
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/pannernode/panningmodel/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,5 @@ <h2 id="Browser_compatibility">Browser compatibility</h2>
<h2 id="See_also">See also</h2>

<ul>
<li><a href="/en-US/docs/Web_Audio_API/Using_Web_Audio_API">Using the Web Audio API</a></li>
<li><a href="/en-US/docs/Web/API/Web_Audio_API/Using_Web_Audio_API">Using the Web Audio API</a></li>
</ul>
14 changes: 7 additions & 7 deletions files/en-us/web/api/pannernode/positionx/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
title: PannerNode.positionX
slug: Web/API/PannerNode/positionX
tags:
- API
- PannerNode
- Property
- Reference
- Web Audio API
- positionX
- API
- PannerNode
- Property
- Reference
- Web Audio API
- positionX
---
<p>{{ APIRef("Web Audio API") }}</p>

Expand Down Expand Up @@ -94,7 +94,7 @@ <h2 id="Browser_compatibility">Browser compatibility</h2>
<h2 id="See_also">See also</h2>

<ul>
<li><a href="/en-US/docs/Web_Audio_API/Using_Web_Audio_API">Using the Web Audio API</a>
<li><a href="/en-US/docs/Web/API/Web_Audio_API/Using_Web_Audio_API">Using the Web Audio API</a>
</li>
<li><a href="/en-US/docs/Web/API/Web_Audio_API/Web_audio_spatialization_basics">Web
Audio spatialisation basics</a></li>
Expand Down
14 changes: 7 additions & 7 deletions files/en-us/web/api/pannernode/positiony/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
title: PannerNode.positionY
slug: Web/API/PannerNode/positionY
tags:
- API
- PannerNode
- Property
- Reference
- Web Audio API
- positionY
- API
- PannerNode
- Property
- Reference
- Web Audio API
- positionY
---
<p>{{ APIRef("Web Audio API") }}</p>

Expand Down Expand Up @@ -96,7 +96,7 @@ <h2 id="Browser_compatibility">Browser compatibility</h2>
<h2 id="See_also">See also</h2>

<ul>
<li><a href="/en-US/docs/Web_Audio_API/Using_Web_Audio_API">Using the Web Audio API</a>
<li><a href="/en-US/docs/Web/API/Web_Audio_API/Using_Web_Audio_API">Using the Web Audio API</a>
</li>
<li><a href="/en-US/docs/Web/API/Web_Audio_API/Web_audio_spatialization_basics">Web
Audio spatialisation basics</a></li>
Expand Down
18 changes: 9 additions & 9 deletions files/en-us/web/api/pannernode/positionz/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
title: PannerNode.positionZ
slug: Web/API/PannerNode/positionZ
tags:
- API
- PannerNode
- Property
- Reference
- Web Audio API
- positionZ
- API
- PannerNode
- Property
- Reference
- Web Audio API
- positionZ
---
<p>{{ APIRef("Web Audio API") }}</p>

Expand Down Expand Up @@ -56,7 +56,7 @@ <h2 id="Example">Example</h2>
perceived volume of the sound.</p>


<pre class="brush: js"><code>const context = new AudioContext();
<pre class="brush: js">const context = new AudioContext();

const osc = new OscillatorNode(context);
const panner = new PannerNode(context);
Expand All @@ -69,7 +69,7 @@ <h2 id="Example">Example</h2>
osc.connect(panner)
.connect(context.destination);

osc.start(0);</code></pre>
osc.start(0);</pre>


<h2 id="Specifications">Specifications</h2>
Expand All @@ -96,7 +96,7 @@ <h2 id="Browser_compatibility">Browser compatibility</h2>
<h2 id="See_also">See also</h2>

<ul>
<li><a href="/en-US/docs/Web_Audio_API/Using_Web_Audio_API">Using the Web Audio API</a>
<li><a href="/en-US/docs/Web/API/Web_Audio_API/Using_Web_Audio_API">Using the Web Audio API</a>
</li>
<li><a href="/en-US/docs/Web/API/Web_Audio_API/Web_audio_spatialization_basics">Web
Audio spatialisation basics</a></li>
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/pannernode/setorientation/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,5 @@ <h2 id="Browser_compatibility">Browser compatibility</h2>
<h2 id="See_also">See also</h2>

<ul>
<li><a href="/en-US/docs/Web_Audio_API/Using_Web_Audio_API">Using the Web Audio API</a></li>
<li><a href="/en-US/docs/Web/API/Web_Audio_API/Using_Web_Audio_API">Using the Web Audio API</a></li>
</ul>
4 changes: 2 additions & 2 deletions files/en-us/web/api/pannernode/setposition/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<p>{{ APIRef("Web Audio API") }}</p>

<div>
<p>The <code>setPosition()</code> method of the {{ domxref("PannerNode") }} Interface defines the position of the audio source relative to the listener (represented by an {{domxref("AudioListener")}} object stored in the {{domxref("AudioContext.listener")}} attribute.) The three parameters <code>x</code>, <code>y</code> and <code>z</code> are unitless and describe the source's position in 3D space using the right-hand Cartesian coordinate system.</p>
<p>The <code>setPosition()</code> method of the {{ domxref("PannerNode") }} Interface defines the position of the audio source relative to the listener (represented by an {{domxref("AudioListener")}} object stored in the {{domxref("BaseAudioContext.listener")}} attribute.) The three parameters <code>x</code>, <code>y</code> and <code>z</code> are unitless and describe the source's position in 3D space using the right-hand Cartesian coordinate system.</p>

<p>The <code>setPosition()</code> method's default value of the position is <code>(0,</code> <code>0,</code> <code>0)</code>.</p>
</div>
Expand Down Expand Up @@ -66,5 +66,5 @@ <h2 id="Browser_compatibility">Browser compatibility</h2>
<h2 id="See_also">See also</h2>

<ul>
<li><a href="/en-US/docs/Web_Audio_API/Using_Web_Audio_API">Using the Web Audio API</a></li>
<li><a href="/en-US/docs/Web/API/Web_Audio_API/Using_Web_Audio_API">Using the Web Audio API</a></li>
</ul>
2 changes: 1 addition & 1 deletion files/en-us/web/api/pannernode/setvelocity/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@ <h2 id="Browser_compatibility">Browser compatibility</h2>
<h2 id="See_also">See also</h2>

<ul>
<li><a href="/en-US/docs/Web_Audio_API/Using_Web_Audio_API">Using the Web Audio API</a></li>
<li><a href="/en-US/docs/Web/API/Web_Audio_API/Using_Web_Audio_API">Using the Web Audio API</a></li>
</ul>
10 changes: 5 additions & 5 deletions files/en-us/web/api/parentnode/firstelementchild/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
title: ParentNode.firstElementChild
slug: Web/API/ParentNode/firstElementChild
tags:
- API
- DOM
- ParentNode
- Property
- API
- DOM
- ParentNode
- Property
---
<p>{{ APIRef("DOM") }}</p>

Expand Down Expand Up @@ -103,7 +103,7 @@ <h2 id="Browser_compatibility">Browser compatibility</h2>
<h2 id="See_also">See also</h2>

<ul>
<li>{{domxref("NonDocumentTypeChildNode.nextElementSibling")}}</li>
<li>{{domxref("Element.nextElementSibling")}}</li>
<li>{{domxref("ParentNode.lastElementChild")}}</li>
<li>The {{domxref("ParentNode")}} and {{domxref("ChildNode")}} pure interfaces.</li>
<li>
Expand Down
20 changes: 10 additions & 10 deletions files/en-us/web/api/parentnode/queryselector/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
title: ParentNode.querySelector()
slug: Web/API/ParentNode/querySelector
tags:
- API
- DOM
- Draft
- Method
- NeedsExample
- ParentNode
- Reference
- Selectors
- querySelector
- API
- DOM
- Draft
- Method
- NeedsExample
- ParentNode
- Reference
- Selectors
- querySelector
---
<p>{{APIRef("DOM")}}{{Draft}}</p>

Expand Down Expand Up @@ -125,7 +125,7 @@ <h2 id="See_also">See also</h2>
<code>querySelector()</code></a></li>
<li><a href="/en-US/docs/Web/CSS/Attribute_selectors">Attribute selectors</a> in the CSS
Guide</li>
<li><a href="/en-US/docs/Learn/CSS/Introduction_to_CSS/Attribute_selectors">Attribute
<li><a href="/en-US/docs/Learn/CSS/Building_blocks/Selectors/Attribute_selectors">Attribute
selectors</a> in the MDN Learning Area</li>
<li>This method is available as {{DOMxRef("Element.querySelector()")}},
{{DOMxRef("Document.querySelector()")}}, and
Expand Down
26 changes: 13 additions & 13 deletions files/en-us/web/api/parentnode/queryselectorall/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
title: ParentNode.querySelectorAll()
slug: Web/API/ParentNode/querySelectorAll
tags:
- API
- DOM
- Document
- Finding Elements
- Finding Nodes
- Method
- ParentNode
- Reference
- Searching Elements
- Searching Nodes
- Selectors
- querySelectorAll
- API
- DOM
- Document
- Finding Elements
- Finding Nodes
- Method
- ParentNode
- Reference
- Searching Elements
- Searching Nodes
- Selectors
- querySelectorAll
---
<div>{{ApiRef("DOM")}}</div>

Expand Down Expand Up @@ -196,7 +196,7 @@ <h2 id="See_also">See also</h2>
<code>querySelector()</code></a></li>
<li><a href="/en-US/docs/Web/CSS/Attribute_selectors">Attribute selectors</a> in the CSS
Guide</li>
<li><a href="/en-US/docs/Learn/CSS/Introduction_to_CSS/Attribute_selectors">Attribute
<li><a href="/en-US/docs/Learn/CSS/Building_blocks/Selectors/Attribute_selectors">Attribute
selectors</a> in the MDN Learning Area</li>
<li>This method is available as {{domxref("Element.querySelectorAll()")}},
{{domxref("Document.querySelectorAll()")}}, and
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/passwordcredential/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
---
<p>{{SeeCompatTable}}{{APIRef("Credential Management API")}}{{securecontext_header}}</p>

<p>The interface of the <a href="/en-US/docs/Web/API/Credential_Management_API">Credential Management API</a> provides information about a username/password pair. In supporting browsers an instance of this class may be passed in the <code>credential</code> member of the <code>init</code> object for global {{domxref('fetch')}}.</p>
<p>The interface of the <a href="/en-US/docs/Web/API/Credential_Management_API">Credential Management API</a> provides information about a username/password pair. In supporting browsers an instance of this class may be passed in the <code>credential</code> member of the <code>init</code> object for global {{domxref('WindowOrWorkerGlobalScope.fetch')}}.</p>

<div class="note">
<p><strong>Note:</strong> This interface is restricted to top-level contexts and cannot be used from an {{HTMLElement("iframe")}}.</p>
Expand Down
Loading

0 comments on commit 86a69ae

Please sign in to comment.