Skip to content

Commit

Permalink
Merge branch 'main' into making-table-accurate
Browse files Browse the repository at this point in the history
  • Loading branch information
CBID2 committed Jul 27, 2023
2 parents 478f1c2 + 5767d8d commit 178f403
Show file tree
Hide file tree
Showing 16 changed files with 23 additions and 26 deletions.
2 changes: 1 addition & 1 deletion files/en-us/glossary/preflight_request/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ page-type: glossary-definition

A CORS preflight request is a {{Glossary("CORS")}} request that checks to see if the CORS protocol is understood and a server is aware using specific methods and headers.

It is an {{HTTPMethod("OPTIONS")}} request, using three HTTP request headers: {{HTTPHeader("Access-Control-Request-Method")}}, {{HTTPHeader("Access-Control-Request-Headers")}}, and the {{HTTPHeader("Origin")}} header.
It is an {{HTTPMethod("OPTIONS")}} request, using two or three HTTP request headers: {{HTTPHeader("Access-Control-Request-Method")}}, {{HTTPHeader("Origin")}}, and optionally {{HTTPHeader("Access-Control-Request-Headers")}}.

A preflight request is automatically issued by a browser and in normal cases, front-end developers don't need to craft such requests themselves. It appears when request is qualified as ["to be preflighted"](/en-US/docs/Web/HTTP/CORS#preflighted_requests) and omitted for [simple requests](/en-US/docs/Web/HTTP/CORS#simple_requests).

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/audio_output_devices_api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ The permission status can be queried using the [Permissions API](/en-US/docs/Web
Here's an example of using `selectAudioOutput()`, within a function that is triggered by a button click, and then setting the selected device as the audio output.

The code first checks if `selectAudioOutput()` is supported, and if it is, uses it to select an output and return a [device ID](/en-US/docs/Web/API/MediaDeviceInfo/deviceId).
We then play some some audio using the default output, and then call `setSinkId()` in order to switch to the selected output device.
We then play some audio using the default output, and then call `setSinkId()` in order to switch to the selected output device.

```js
document.querySelector("#myButton").addEventListener("click", async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ Here is a minimalistic template, which we'll be using as a starting point for la
const ctx = canvas.getContext("2d");
}
}
draw();
window.addEventListener("load", draw);
</script>
</body>
</html>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ A {{jsxref("Promise")}} that resolves to a string with the permission picked by

- `granted`
- `denied`
- `default`

## Examples

Expand Down
6 changes: 2 additions & 4 deletions files/en-us/web/api/response/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,9 @@ Here we call a PHP program file that generates a JSON string, displaying the res
const doAjax = async () => {
const response = await fetch("Ajax.php"); // Generate the Response object
if (response.ok) {
const jsonValue = await response.json(); // Get JSON value from the response body
return Promise.resolve(jsonValue);
} else {
return Promise.reject("*** PHP file not found");
return response.json(); // Get JSON value from the response body
}
throw new Error("*** PHP file not found");
};

// Call the function and output value or error message to console
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/css/column-fill/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ The `column-fill` property is specified as one of the keyword values listed belo

{{csssyntax}}

## Example
## Examples

### Balancing column content

Expand Down
6 changes: 3 additions & 3 deletions files/en-us/web/css/container-type/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ container-type: unset;

{{CSSSyntax}}

## Example
## Examples

### Establishing inline size containment

Given the following HTML example which is a card component with an image, a title, and some text:

Expand Down Expand Up @@ -84,8 +86,6 @@ Writing a container query via the {{Cssxref("@container")}} at-rule will apply s
}
```

For more information on container queries, see the [CSS Container Queries](/en-US/docs/Web/CSS/CSS_container_queries) page.

## Specifications

{{Specifications}}
Expand Down
6 changes: 3 additions & 3 deletions files/en-us/web/css/container/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ container: unset;

{{CSSSyntax}}

## Example
## Examples

### Establishing inline size containment

Given the following HTML example which is a card component with an image, a title, and some text:

Expand Down Expand Up @@ -88,8 +90,6 @@ You can then target that container by name using the {{cssxref("@container")}} a
}
```

For more information on container queries, see the [CSS Container Queries](/en-US/docs/Web/CSS/CSS_container_queries) page.

## Specifications

{{Specifications}}
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/css/css_pseudo-elements/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Pseudo-elements enable targeting entities not included in HTML and sections of c
- [CSS selectors](/en-US/docs/Web/CSS/CSS_selectors)

- [Attribute selectors](/en-US/docs/Web/CSS/Attribute_selectors)
- [Combinators](/en-US/docs/Web/CSS/CSS_Selectors/selectors_and_combinators#combinators)
- [Combinators](/en-US/docs/Web/CSS/CSS_selectors/Selectors_and_combinators#combinators)
- [Class selectors](/en-US/docs/Web/CSS/Class_selectors)
- [ID selectors](/en-US/docs/Web/CSS/ID_selectors)
- [Type selectors](/en-US/docs/Web/CSS/Type_selectors)
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/css/empty-cells/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ The `empty-cells` property is specified as one of the keyword values listed belo

{{csssyntax}}

## Example
## Examples

### Showing and hiding empty table cells

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/css/font-weight/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ span {

{{Compat}}

## See Also
## See also

- {{cssxref("font-family")}}
- {{cssxref("font-style")}}
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/css/margin-trim/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ margin-trim: revert-layer;
margin-trim: unset;
```

## Values
### Values

- `none`

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/css/math-depth/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ math-depth: revert-layer;
math-depth: unset;
```

## Values
### Values

- `auto-add`
- : Set to the inherited `math-depth` plus 1 when inherited [math-style](/en-US/docs/Web/CSS/math-style) is `compact`.
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/http/headers/user-agent/firefox/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,5 +184,5 @@ Firefox OS has a four-digit version number: `X.X.X.Y`. The first two digits are

## See also

- Recommendations on [sniffing the UA string for cross-browser support](/en-US/docs/Browser_detection_using_the_user_agent)
- Recommendations on [sniffing the UA string for cross-browser support](/en-US/docs/Web/HTTP/Browser_detection_using_the_user_agent)
- [window.navigator.userAgent](/en-US/docs/Web/API/Window/navigator)
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ browser-compat: javascript.builtins.Atomics.notify
The **`Atomics.notify()`** static
method notifies up some agents that are sleeping in the wait queue.

> **Note:** This operation works with a shared {{jsxref("Int32Array")}}
> only.
> **Note:** This operation only works with an {{jsxref("Int32Array")}} or {{jsxref("BigInt64Array")}} that views a {{jsxref("SharedArrayBuffer")}}.
> It will return `0` on non-shared `ArrayBuffer` objects.
## Syntax
Expand All @@ -23,7 +22,7 @@ Atomics.notify(typedArray, index, count)
### Parameters

- `typedArray`
- : A shared {{jsxref("Int32Array")}}.
- : An {{jsxref("Int32Array")}} or {{jsxref("BigInt64Array")}} that views a {{jsxref("SharedArrayBuffer")}}.
- `index`
- : The position in the `typedArray` to wake up on.
- `count` {{optional_inline}}
Expand All @@ -38,7 +37,7 @@ Atomics.notify(typedArray, index, count)
### Exceptions

- {{jsxref("TypeError")}}
- : Thrown if `typedArray` is not a {{jsxref("Int32Array")}}.
- : Thrown if `typedArray` is not an {{jsxref("Int32Array")}} or {{jsxref("BigInt64Array")}} that views a {{jsxref("SharedArrayBuffer")}}.
- {{jsxref("RangeError")}}
- : Thrown if `index` is out of bounds in the `typedArray`.

Expand Down Expand Up @@ -83,3 +82,4 @@ Atomics.notify(int32, 0, 1);

- {{jsxref("Atomics")}}
- {{jsxref("Atomics.wait()")}}
- {{jsxref("Atomics.waitAsync()")}}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The **`Atomics.waitAsync()`** static method waits asynchronously on a shared mem

Unlike {{jsxref("Atomics.wait()")}}, `waitAsync` is non-blocking and usable on the main thread.

> **Note:** This operation only works with a shared {{jsxref("Int32Array")}} or {{jsxref("BigInt64Array")}}.
> **Note:** This operation only works with an {{jsxref("Int32Array")}} or {{jsxref("BigInt64Array")}} that views a {{jsxref("SharedArrayBuffer")}}.
## Syntax

Expand Down

0 comments on commit 178f403

Please sign in to comment.