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
3 changes: 3 additions & 0 deletions .github/workflows/pr-check_cspell_lists.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ name: Check cSpell lists
on:
pull_request:
paths:
- .github/workflows/pr-check_cspell_lists.yml
- .nvmrc
- .vscode/dictionaries/*
- scripts/sort_and_unique_file_lines.js

# No GITHUB_TOKEN permissions, as we don't use it.
permissions: {}
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/pr-check_javascript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@ name: JavaScript lint
on:
pull_request:
paths:
- .github/workflows/pr-check_javascript.yml
- .nvmrc
- package.json
- package-lock.json
- "*.js"
- "*.mjs"
- "**/*.js"
- "**/*.mjs"
- .github/workflows/pr-check_javascript.yml

# No GITHUB_TOKEN permissions, as we only use it to increase API limit.
permissions: {}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/pr-check_json.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ name: JSON lint
on:
pull_request:
paths:
- .github/workflows/pr-check_json.yml
- .nvmrc
- "*.json"
- "*.jsonc"
- "**/*.json"
- "**/*.jsonc"
- .github/workflows/pr-check_json.yml

# No GITHUB_TOKEN permissions, as we only use it to increase API limit.
permissions: {}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-check_scripts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: Check scripts
on:
pull_request:
paths:
- .github/workflows/pr-check_scripts.yml
- .nvmrc
- package.json
- package-lock.json
- .github/workflows/pr-check_scripts.yml

# No GITHUB_TOKEN permissions, as we only use it to increase API limit.
permissions: {}
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/pr-check_url-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@ name: Check URL issues
on:
pull_request:
paths:
- .github/workflows/pr-check_url-issues.yml
- .nvmrc
- package.json
- package-lock.json
- "files/**/*.md"
- scripts/log-url-issues.js

# No GITHUB_TOKEN permissions, as we don't use it.
permissions: {}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/pr-check_yml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ name: Lint YAML
on:
pull_request:
paths:
- .github/workflows/pr-check_yml.yml
- .nvmrc
- package.json
- package-lock.json
- "*.yml"
- "**/*.yml"
- .github/workflows/pr-check_yml.yml

# No GITHUB_TOKEN permissions, as we only use it to increase API limit.
permissions: {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ function validate(e) {
> [!NOTE]
> In this example, we are hiding and showing the error message box using absolute positioning rather than another method such as visibility or display, because it doesn't interfere with the screen reader being able to read content from it.

Real form validation would be much more complex than this — you'd want to check that the entered name actually looks like a name, the entered age is actually a number and is realistic (e.g., nonnegative and less than 4 digits). Here we've just implemented a simple check that a value has been filled in to each input field (`if (testItem.input.value === '')`).
Real form validation would be much more complex than this — you'd want to check that the entered name actually looks like a name, the entered age is actually a number and is realistic (e.g., non-negative and less than 4 digits). Here we've just implemented a simple check that a value has been filled in to each input field (`if (testItem.input.value === '')`).

When the validation has been performed, if the tests pass then the form is submitted. If there are errors (`if (errorList.hasChildNodes())`) then we stop the form submitting (using [`preventDefault()`](/en-US/docs/Web/API/Event/preventDefault)), and display any error messages that have been created (see below). This mechanism means that the errors will only be shown if there are errors, which is better for usability.

Expand Down
2 changes: 2 additions & 0 deletions files/en-us/mozilla/firefox/releases/153/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ Firefox 153 is the current [Beta version of Firefox](https://www.firefox.com/en-
- HTML parsing rules for {{htmlelement("select")}} elements have been updated to allow all nested elements to be parsed into DOM rather than just `<option>`, `<optgroup>`, and `<hr>`.
This enables possible future support of [customizable select elements](/en-US/docs/Learn_web_development/Extensions/Forms/Customizable_select).
([Firefox bug 2019977](https://bugzil.la/2019977)).
- The `muted` attribute has now been updated for the {{htmlelement("audio", "", "#muted")}} and {{htmlelement("video", "", "#muted")}} elements to reflect when it is added to or removed from the DOM. This attribute now also matches the state of the {{cssxref(":muted")}} CSS pseudo-class.
([Firefox bug 2037015](https://bugzil.la/2037015)).

<!-- #### Removals -->

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ border-bottom-width: unset;
### Values

- `<line-width>`
- : Defines the width of the border, either as an explicit nonnegative {{cssxref("&lt;length&gt;")}} or a keyword. If it's a keyword, it must be one of the following values:
- : Defines the width of the border, either as an explicit non-negative {{cssxref("&lt;length&gt;")}} or a keyword. If it's a keyword, it must be one of the following values:
- `thin`
- Same as `1px`.
- `medium`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ border-left-width: unset;
### Values

- `<line-width>`
- : Defines the width of the border, either as an explicit nonnegative {{cssxref("&lt;length&gt;")}} or a keyword. If it's a keyword, it must be one of the following values:
- : Defines the width of the border, either as an explicit non-negative {{cssxref("&lt;length&gt;")}} or a keyword. If it's a keyword, it must be one of the following values:
- `thin`
- Same as `1px`.
- `medium`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ border-right-width: unset;
### Values

- `<line-width>`
- : Defines the width of the border, either as an explicit nonnegative {{cssxref("&lt;length&gt;")}} or a keyword. If it's a keyword, it must be one of the following values:
- : Defines the width of the border, either as an explicit non-negative {{cssxref("&lt;length&gt;")}} or a keyword. If it's a keyword, it must be one of the following values:
- `thin`
- Same as `1px`.
- `medium`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ border-top-width: unset;
### Values

- `<line-width>`
- : Defines the width of the border, either as an explicit nonnegative {{cssxref("&lt;length&gt;")}} or a keyword. If it's a keyword, it must be one of the following values:
- : Defines the width of the border, either as an explicit non-negative {{cssxref("&lt;length&gt;")}} or a keyword. If it's a keyword, it must be one of the following values:
- `thin`
- Same as `1px`.
- `medium`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ The `border-width` property may be specified using one, two, three, or four valu
### Values

- `<line-width>`
- : Defines the width of the border, either as an explicit nonnegative {{cssxref("&lt;length&gt;")}} or a keyword. If it's a keyword, it must be one of the following values:
- : Defines the width of the border, either as an explicit non-negative {{cssxref("&lt;length&gt;")}} or a keyword. If it's a keyword, it must be one of the following values:
- `thin`
- Same as `1px`.
- `medium`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ overflow-clip-margin: revert-layer;
overflow-clip-margin: unset;
```

The `<visual-box>` value, which defaults to `padding-box`, specifies the box edge to use as the overflow clip edge origin. The {{cssxref("&lt;length&gt;")}} value specified in `overflow-clip-margin` must be nonnegative.
The `<visual-box>` value, which defaults to `padding-box`, specifies the box edge to use as the overflow clip edge origin. The {{cssxref("&lt;length&gt;")}} value specified in `overflow-clip-margin` must be non-negative.

> [!NOTE]
> If the element does not have `overflow: clip` then this property will be ignored.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ padding-block-end: unset;
### Values

- {{cssxref("&lt;length&gt;")}}
- : The size of the padding as a fixed value. Must be nonnegative.
- : The size of the padding as a fixed value. Must be non-negative.
- {{cssxref("&lt;percentage&gt;")}}
- : The size of the padding as a percentage, relative to the inline size (_width_ in a horizontal language, defined by {{cssxref("writing-mode")}}) of the [containing block](/en-US/docs/Web/CSS/Guides/Display/Containing_block). Must be nonnegative.
- : The size of the padding as a percentage, relative to the inline size (_width_ in a horizontal language, defined by {{cssxref("writing-mode")}}) of the [containing block](/en-US/docs/Web/CSS/Guides/Display/Containing_block). Must be non-negative.

## Description

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ padding-block-start: unset;
### Values

- {{cssxref("&lt;length&gt;")}}
- : The size of the padding as a fixed value. Must be nonnegative.
- : The size of the padding as a fixed value. Must be non-negative.
- {{cssxref("&lt;percentage&gt;")}}
- : The size of the padding as a percentage, relative to the [inline-size](/en-US/docs/Web/CSS/Guides/Display/Block_and_inline_layout) (_width_ in a horizontal language) of the [containing block](/en-US/docs/Web/CSS/Guides/Display/Containing_block). Must be nonnegative.
- : The size of the padding as a percentage, relative to the [inline-size](/en-US/docs/Web/CSS/Guides/Display/Block_and_inline_layout) (_width_ in a horizontal language) of the [containing block](/en-US/docs/Web/CSS/Guides/Display/Containing_block). Must be non-negative.

## Description

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ The `padding-bottom` property is specified as a single value chosen from the lis
### Values

- {{cssxref("&lt;length&gt;")}}
- : The size of the padding as a fixed value. Must be nonnegative.
- : The size of the padding as a fixed value. Must be non-negative.
- {{cssxref("&lt;percentage&gt;")}}
- : The size of the padding as a percentage, relative to the inline size (_width_ in a horizontal language, defined by {{cssxref("writing-mode")}}) of the [containing block](/en-US/docs/Web/CSS/Guides/Display/Containing_block). Must be nonnegative.
- : The size of the padding as a percentage, relative to the inline size (_width_ in a horizontal language, defined by {{cssxref("writing-mode")}}) of the [containing block](/en-US/docs/Web/CSS/Guides/Display/Containing_block). Must be non-negative.

## Formal definition

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ padding-inline-end: unset;
### Values

- {{cssxref("&lt;length&gt;")}}
- : The size of the padding as a fixed value. Must be nonnegative.
- : The size of the padding as a fixed value. Must be non-negative.
- {{cssxref("&lt;percentage&gt;")}}
- : The size of the padding as a percentage, relative to the [inline-size](/en-US/docs/Web/CSS/Guides/Display/Block_and_inline_layout) (_width_ in a horizontal language) of the [containing block](/en-US/docs/Web/CSS/Guides/Display/Containing_block). Must be nonnegative.
- : The size of the padding as a percentage, relative to the [inline-size](/en-US/docs/Web/CSS/Guides/Display/Block_and_inline_layout) (_width_ in a horizontal language) of the [containing block](/en-US/docs/Web/CSS/Guides/Display/Containing_block). Must be non-negative.

## Description

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ padding-inline-start: unset;
### Values

- {{cssxref("&lt;length&gt;")}}
- : The size of the padding as a fixed value. Must be nonnegative.
- : The size of the padding as a fixed value. Must be non-negative.
- {{cssxref("&lt;percentage&gt;")}}
- : The size of the padding as a percentage, relative to the inline size (_width_ in a horizontal language, defined by {{cssxref("writing-mode")}}) of the [containing block](/en-US/docs/Web/CSS/Guides/Display/Containing_block). Must be nonnegative.
- : The size of the padding as a percentage, relative to the inline size (_width_ in a horizontal language, defined by {{cssxref("writing-mode")}}) of the [containing block](/en-US/docs/Web/CSS/Guides/Display/Containing_block). Must be non-negative.

## Description

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ The `padding-inline` property may be specified with one or two values. If one va
### Values

- {{cssxref("&lt;length&gt;")}}
- : The size of the padding as a fixed value. Must be nonnegative.
- : The size of the padding as a fixed value. Must be non-negative.
- {{cssxref("&lt;percentage&gt;")}}
- : The size of the padding as a percentage, relative to the inline size (_width_ in a horizontal language, defined by {{cssxref("writing-mode")}}) of the [containing block](/en-US/docs/Web/CSS/Guides/Display/Containing_block). Must be nonnegative.
- : The size of the padding as a percentage, relative to the inline size (_width_ in a horizontal language, defined by {{cssxref("writing-mode")}}) of the [containing block](/en-US/docs/Web/CSS/Guides/Display/Containing_block). Must be non-negative.

## Description

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ The `padding-left` property is specified as a single value chosen from the list
### Values

- {{cssxref("&lt;length&gt;")}}
- : The size of the padding as a fixed value. Must be nonnegative.
- : The size of the padding as a fixed value. Must be non-negative.
- {{cssxref("&lt;percentage&gt;")}}
- : The size of the padding as a percentage, relative to the inline size (_width_ in a horizontal language, defined by {{cssxref("writing-mode")}}) of the [containing block](/en-US/docs/Web/CSS/Guides/Display/Containing_block). Must be nonnegative.
- : The size of the padding as a percentage, relative to the inline size (_width_ in a horizontal language, defined by {{cssxref("writing-mode")}}) of the [containing block](/en-US/docs/Web/CSS/Guides/Display/Containing_block). Must be non-negative.

## Formal definition

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ The `padding-right` property is specified as a single value chosen from the list
### Values

- {{cssxref("&lt;length&gt;")}}
- : The size of the padding as a fixed value. Must be nonnegative.
- : The size of the padding as a fixed value. Must be non-negative.
- {{cssxref("&lt;percentage&gt;")}}
- : The size of the padding as a percentage, relative to the inline size (_width_ in a horizontal language, defined by {{cssxref("writing-mode")}}) of the [containing block](/en-US/docs/Web/CSS/Guides/Display/Containing_block). Must be nonnegative.
- : The size of the padding as a percentage, relative to the inline size (_width_ in a horizontal language, defined by {{cssxref("writing-mode")}}) of the [containing block](/en-US/docs/Web/CSS/Guides/Display/Containing_block). Must be non-negative.

## Formal definition

Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/css/reference/properties/padding-top/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ The `padding-top` property is specified as a single value chosen from the list b
### Values

- {{cssxref("&lt;length&gt;")}}
- : The size of the padding as a fixed value. Must be nonnegative.
- : The size of the padding as a fixed value. Must be non-negative.
- {{cssxref("&lt;percentage&gt;")}}
- : The size of the padding as a percentage, relative to the inline size (_width_ in a horizontal language, defined by {{cssxref("writing-mode")}}) of the [containing block](/en-US/docs/Web/CSS/Guides/Display/Containing_block). Must be nonnegative.
- : The size of the padding as a percentage, relative to the inline size (_width_ in a horizontal language, defined by {{cssxref("writing-mode")}}) of the [containing block](/en-US/docs/Web/CSS/Guides/Display/Containing_block). Must be non-negative.

## Formal definition

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ li:nth-child(even) {
- : Represents elements whose numeric position in a series of siblings matches the pattern `An+B`, for every positive integer or zero value of `n`, where:
- `A` is an integer step size,
- `B` is an integer offset,
- `n` is all nonnegative integers, starting from 0.
- `n` is all non-negative integers, starting from 0.

It can be read as the `An+B`-th element of a list. The `A` and `B` must both have {{cssxref("&lt;integer&gt;")}} values.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ The `:nth-last-child()` pseudo-class is specified with a single argument, which
- : Represents elements whose numeric position in a series of siblings matches the pattern `An+B`, for every positive integer or zero value of `n`, where:
- `A` is an integer step size,
- `B` is an integer offset,
- `n` is all nonnegative integers, starting from 0.
- `n` is all non-negative integers, starting from 0.

It can be read as the `An+B`-th element of a list. The index of the first element, counting from the end, is `1`. The `A` and `B` must both have {{cssxref("&lt;integer&gt;")}} values.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ value_type.min_u
- `input2`
- : The second input value.
- `output`
- : The output value. A new `v128` of the same type as the inputs, with each lane set to the greater of that lane index's value on the two inputs.
- : The output value. A new `v128` of the same type as the inputs, with each lane set to the lower of that lane index's value on the two inputs.

### Binary encoding

Expand Down