Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .vscode/dictionaries/code-entities.txt
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ Gloc
glossarysidebar
gonm
GPOS
grba
Grek
greklow
GSUB
Expand Down Expand Up @@ -553,6 +554,7 @@ orya
oscpu
osfile.jsm
osma
otpauth
otpcredential
outbound-rtpp
overlayinfo
Expand Down
1 change: 1 addition & 0 deletions .vscode/dictionaries/ignore-list.txt
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ mdnsidebar.yaml
megastore
meinheld
morethanwarm
MQCHJLS6FJXT2BGQJ6QMG3WCAVUC2HJZ
MYAGE
mybooks
myclass
Expand Down
2 changes: 2 additions & 0 deletions .vscode/dictionaries/proper-names.txt
Original file line number Diff line number Diff line change
Expand Up @@ -303,9 +303,11 @@ Kahlo
Kaku
Kang
Kaply
Karmadrome
Kaspersky
Katari
Kazam
Keegan
kenji-yamasaki
Kerckhoffs
Kersee
Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/credentialscontainer/create/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ This example creates a password credential from a {{domxref("PasswordCredentialI

```js
const credInit = {
id: "serp1234", // "username" in a typical username/password pair
id: "serpent1234", // "username" in a typical username/password pair
name: "Serpentina", // display name for credential
origin: "https://example.org",
password: "the last visible dog",
Expand All @@ -89,7 +89,7 @@ makeCredential.addEventListener("click", async () => {
console.log(cred.name);
// Serpentina
console.log(cred.id);
// serp1234
// serpent1234
console.log(cred.password);
// the last visible dog
});
Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/passwordcredentialinit/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ This example constructs an object literal to initialize a password credential.

```js
const credInit = {
id: "serp1234", // "username" in a typical username/password pair
id: "serpent1234", // "username" in a typical username/password pair
name: "Serpentina", // display name for credential
origin: "https://example.org",
password: "the last visible dog",
Expand All @@ -60,7 +60,7 @@ makeCredential.addEventListener("click", async () => {
console.log(cred.name);
// Serpentina
console.log(cred.id);
// serp1234
// serpent1234
console.log(cred.password);
// the last visible dog
});
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/css/guides/cascade/specificity/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,6 @@ A few things to remember about specificity:
- Values: [initial](/en-US/docs/Web/CSS/Guides/Cascade/Property_value_processing#initial_value), [computed](/en-US/docs/Web/CSS/Guides/Cascade/Property_value_processing#computed_value), [used](/en-US/docs/Web/CSS/Guides/Cascade/Property_value_processing#used_value), and [actual](/en-US/docs/Web/CSS/Guides/Cascade/Property_value_processing#actual_value)
- [Value definition syntax](/en-US/docs/Web/CSS/Guides/Values_and_units/Value_definition_syntax)
- [CSS nesting](/en-US/docs/Web/CSS/Guides/Nesting) module
- [Specificity Calculator](https://specificity.keegan.st/) on specificity.keegan.st: An interactive website to test and understand your own CSS rules
- [Specificity Calculator](https://specificity.keegan.st/) by Keegan Street: An interactive website to test and understand your own CSS rules
- [SpeciFISHity](https://specifishity.com/) on specifishity.com: A fun way to learn about CSS specificity
- [_ID-CLASS-TYPE_ exercise](https://estelle.github.io/CSS/selectors/exercises/specificity.html): A specificity quiz by Estelle Weyl
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ One or two {{cssxref("<length>")}} values, or the keyword `auto`.
- {{cssxref("<length>")}}
- : Specifies the amount to adjust the text decoration position by. Positive values inset the text decoration (make it shorter) while negative values outset the text decoration (make it longer). If one value is specified, it applies to both the text decoration start and end points. If two values are specified, the first one applies to the text decoration start point and the second one applies to the text decoration end point.
- `auto`
- : The browser chooses a start and end inset amount to ensure that, if two decorated text boxes appear side-by-side, the appearence of a gap is created between their text decorations so they do not appear to have a single text decoration.
- : The browser chooses a start and end inset amount to ensure that, if two decorated text boxes appear side-by-side, the appearance of a gap is created between their text decorations so they do not appear to have a single text decoration.

## Description

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ This function creates a file handle (as a Node.js [`FileHandle`](https://nodejs.
async function readFile(path) {
await using disposer = new AsyncDisposableStack();
const handle = disposer.adopt(
fs.open(path),
await fs.open(path),
async (handle) => await handle.close(),
);
const data = await handle.read();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ This function reads a file (as a Node.js [`FileHandle`](https://nodejs.org/api/f
```js
async function readFileContents(path) {
await using disposer = new AsyncDisposableStack();
const handle = disposer.use(fs.open(path));
const handle = disposer.use(await fs.open(path));
const data = await handle.read();
return data;
// The disposer is disposed here, which causes handle to be closed too
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ for await (using reader of asyncIterableOfSyncDisposables) {
```

```js
const syncIterableOfAsyncDisposables = fs
.globSync("*.txt")
.map((path) => fs.open(path, "r"));
const syncIterableOfAsyncDisposables = await Promise.all(
fs.globSync("*.txt").map((path) => fs.open(path, "r")),
);
for (await using file of syncIterableOfAsyncDisposables) {
console.log(await file.read());
}
Expand Down
6 changes: 3 additions & 3 deletions files/sidebars/cssref.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,8 @@ sidebar:
title: Scroll_anchoring
details: closed
- type: listSubPages
path: /Web/CSS/Guides/Scroll_driven_animations
title: Scroll_driven_animations
path: /Web/CSS/Guides/Scroll-driven_animations
title: Scroll-driven_animations
details: closed
- type: listSubPages
path: /Web/CSS/Guides/Scroll_snap
Expand Down Expand Up @@ -426,7 +426,7 @@ l10n:
Positioning: Positioning
Selectors: Selectors
Scroll_anchoring: Scroll anchoring
Scroll_driven_animations: Scroll-driven animations
Scroll-driven_animations: Scroll-driven animations
Scroll_snap: Scroll snap
Shapes: Shapes
Syntax: Syntax
Expand Down