Skip to content

Commit

Permalink
Fix syntax section structure of various references
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-Cena committed Jun 21, 2024
1 parent 17d5b8a commit 4337ea0
Show file tree
Hide file tree
Showing 45 changed files with 68 additions and 90 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ To use this API you must have the `"scripting"` [permission](/en-US/docs/Mozilla

This is an asynchronous function that returns a [`Promise`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise).

### Syntax
## Syntax

```js-nolint
await browser.scripting.updateContentScripts(
Expand Down
26 changes: 13 additions & 13 deletions files/en-us/web/api/directoryentrysync/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,18 @@ Creates a new `DirectoryReaderSync` to read entries from this directory.

#### Syntax

```js
createReader();
```js-nolint
createReader()
```

##### Returns
##### Parameters

- [`DirectoryReaderSync`](/en-US/docs/Web/API/DirectoryReaderSync)
- : Represents a directory in a file system.
None

##### Parameter
##### Return value

None
- [`DirectoryReaderSync`](/en-US/docs/Web/API/DirectoryReaderSync)
- : Represents a directory in a file system.

##### Exceptions

Expand All @@ -81,7 +81,7 @@ getFile(path)
getFile(path, options)
```

##### Parameter
##### Parameters

- `path`
- : Either an absolute path or a relative path from the directory to the file to be looked up or created. You cannot create a file whose immediate parent does not exist. Create the parent directory first.
Expand Down Expand Up @@ -131,7 +131,7 @@ getFile(path, options)
</tbody>
</table>

##### Returns
##### Return value

- [`FileEntrySync`](/en-US/docs/Web/API/FileEntrySync)
- : Represents a file in a file system.
Expand Down Expand Up @@ -161,7 +161,7 @@ getDirectory(path)
getDirectory(path, options)
```

##### Parameter
##### Parameters

- `path`
- : Either an absolute path or a relative path from the directory to the file to be looked up or created. You cannot create a file whose immediate parent does not exist. Create the parent directory first.
Expand Down Expand Up @@ -213,7 +213,7 @@ getDirectory(path, options)
</tbody>
</table>

##### Returns
##### Return value

- [`DirectoryEntrySync`](/en-US/docs/Web/API/DirectoryReaderSync)
- : Represents a directory in a file system.
Expand Down Expand Up @@ -244,11 +244,11 @@ If you delete a directory that contains a file that cannot be removed or if an e
removeRecursively()
```

##### Parameter
##### Parameters

None

##### Returns
##### Return value

{{jsxref('undefined')}}

Expand Down
8 changes: 4 additions & 4 deletions files/en-us/web/api/directoryreadersync/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,13 @@ Returns a list of entries from a specific directory. Call this method until an e
readEntries()
```

##### Return value
##### Parameters

Array containing [`FileEntrySync`](/en-US/docs/Web/API/FileEntrySync) and [`DirectoryEntrySync`](/en-US/docs/Web/API/DirectoryEntrySync)
None.

##### Parameter
##### Return value

None
Array containing [`FileEntrySync`](/en-US/docs/Web/API/FileEntrySync) and [`DirectoryEntrySync`](/en-US/docs/Web/API/DirectoryEntrySync).

##### Exceptions

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/domtokenlist/supports/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ supports(token)
- `token`
- : A string containing the token to query for.

### Returns
### Return value

A boolean value indicating whether the token was found.

Expand Down
4 changes: 0 additions & 4 deletions files/en-us/web/api/element/clientwidth/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ A number.

{{Specifications}}

### Notes

`clientWidth` was first introduced in the MS IE DHTML object model.

## Browser compatibility

{{Compat}}
Expand Down
4 changes: 0 additions & 4 deletions files/en-us/web/api/element/getclientrects/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -259,10 +259,6 @@ function addClientRectsOverlay(elt) {

{{Specifications}}

### Notes

`getClientRects()` was first introduced in the MS IE DHTML object model.

## Browser compatibility

{{Compat}}
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/eventtarget/dispatchevent/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ handlers are called and return before `dispatchEvent()` returns.
dispatchEvent(event)
```

### Parameter
### Parameters

- `event`
- : The {{domxref("Event")}} object to dispatch. Its {{domxref("Event.target")}} property will be set to the current {{domxref("EventTarget")}}.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ method of the {{DOMxRef("FeaturePolicy")}} interface enables querying of the all
getAllowlistForFeature(feature)
```

### Parameter
### Parameters

- `feature`
- : The specific feature name to get its allowlist.
Expand Down
16 changes: 8 additions & 8 deletions files/en-us/web/api/fileentrysync/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ To write content to file, create a FileWriter object by calling [`createWriter()

Creates a new `FileWriter` associated with the file that the `FileEntry` represents.

```webidl
void createWriter();
```js-nolint
createWriter()
```

#### Parameter
#### Parameters

None.

#### Returns
#### Return value

A `FileWriterSync` object.

Expand All @@ -69,15 +69,15 @@ This method can raise a [DOMException](/en-US/docs/Web/API/DOMException) with th

Returns a File that represents the current state of the file that this `FileEntry` represents.

```webidl
void file();
```js-nolint
file()
```

#### Parameter
#### Parameters

None.

#### Returns
#### Return value

A `File` object.

Expand Down
6 changes: 0 additions & 6 deletions files/en-us/web/api/htmlelement/offsetheight/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,6 @@ scrollable container.

{{Specifications}}

### Notes

`offsetHeight` is a property of the DHTML object model which was first
introduced by MSIE. It is sometimes referred to as an element's physical/graphical
dimensions, or an element's border-box height.

## Browser compatibility

{{Compat}}
Expand Down
6 changes: 0 additions & 6 deletions files/en-us/web/api/htmlelement/offsetwidth/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,6 @@ An integer corresponding to the `offsetWidth` pixel value of the element. The `o

{{Specifications}}

### Notes

`offsetWidth` is a property of the DHTML object model which was first
introduced by MSIE. It is sometimes referred to as an element's physical/graphical
dimensions, or an element's border-box width.

## Browser compatibility

{{Compat}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ touch events on mobile browsers.
const boolean = InputDeviceCapabilities.firesTouchEvents
```

### Returns
### Return value

A {{jsxref('Boolean')}}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ new InputDeviceCapabilities()
new InputDeviceCapabilities(InputDeviceCapabilitiesInit)
```

### Returns

An instance of the {{domxref("InputDeviceCapabilities")}} interface.

### Parameters

- `InputDeviceCapabilitiesInit` {{optional_inline}}
Expand All @@ -35,6 +31,10 @@ An instance of the {{domxref("InputDeviceCapabilities")}} interface.
- `fireTouchEvents`: A boolean value that indicates
whether the device dispatches touch events.

### Return value

An instance of the {{domxref("InputDeviceCapabilities")}} interface.

## Specifications

{{Specifications}}
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/storagemanager/persisted/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ persisted()

None.

### Returns
### Return value

A {{jsxref('Promise')}} that resolves to a {{jsxref('Boolean')}}.

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/css/acos/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ transform: rotate(acos(pi / 5));
transform: rotate(acos(e / 3));
```

### Parameter
### Parameters

The `acos(number)` function accepts only one value as its parameter.

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/css/asin/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ transform: rotate(asin(pi / 5));
transform: rotate(asin(e / 3));
```

### Parameter
### Parameters

The `asin(number)` function accepts only one value as its parameter.

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/css/atan/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ transform: rotate(atan(pi / 2));
transform: rotate(atan(e * 3));
```

### Parameter
### Parameters

The `atan(number)` function accepts only one value as its parameter.

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/css/cos/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ width: calc(100px * cos(pi));
width: calc(100px * cos(e / 2));
```

### Parameter
### Parameters

The `cos(angle)` function accepts only one value as its parameter.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@ page-type: guide

## Reduced Motion

Blinking and flashing animation can be problematic for people with cognitive concerns such as Attention Deficit Hyperactivity Disorder (ADHD). Additionally, certain kinds of motion can be a trigger for Vestibular disorders, epilepsy, and migraine and Scotopic sensitivity. The [`prefers-reduced-motion`](/en-US/docs/Web/CSS/@media/prefers-reduced-motion) media query enables providing an experience with fewer animations and transitions to users who have set their operating system's accessibility preferences to reduce motion.
Blinking and flashing animation can be problematic for people with cognitive concerns such as Attention Deficit Hyperactivity Disorder (ADHD). Additionally, certain kinds of motion can be a trigger for Vestibular disorders, epilepsy, and migraine and Scotopic sensitivity. Reducing animations or switching animation off completely based on the user's preference can also benefit users with low battery or low-end devices.

Reducing animations or switching animation off completely based on the user's preference can also benefit users with low battery or low-end devices.

### Syntax
The [`prefers-reduced-motion`](/en-US/docs/Web/CSS/@media/prefers-reduced-motion) media query enables providing an experience with fewer animations and transitions to users who have set their operating system's accessibility preferences to reduce motion. It has two possible values:

- `no-preference`
- : Indicates that the user has made no preference known to the system.
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/css/exp/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ width: calc(100px * exp(0)); /* 100px * 1 = 100px */
width: calc(100px * exp(1)); /* 100px * 2.718281828459045 = 217px */
```

### Parameter
### Parameters

The `exp(number)` function accepts only one value as its parameter.

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/css/mod/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ rotate: mod(10turn, 18turn / 3); /* 4turn */
transition-duration: mod(20s / 2, 3000ms * 2); /* 4s */
```

### Parameter
### Parameters

The `mod(dividend, divisor)` function accepts two comma-separated values as its parameters. Both parameters must have the same type, [number](/en-US/docs/Web/CSS/number), [dimension](/en-US/docs/Web/CSS/dimension), or {{cssxref("percentage")}}, for the function to be valid. While the units in the two parameters don't need to be the same, they do need of the same dimension type, such as {{cssxref("length")}}, {{cssxref("angle")}}, {{cssxref("time")}}, or {{cssxref("frequency")}} to be valid.

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/css/rem/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ rotate: rem(10turn, 18turn / 3); /* 4turn */
transition-duration: rem(20s / 2, 3000ms * 2); /* 4s */
```

### Parameter
### Parameters

The `rem(dividend, divisor)` function accepts two comma-separated values as its parameters. Both parameters must have the same type, [number](/en-US/docs/Web/CSS/number), [dimension](/en-US/docs/Web/CSS/dimension), or {{cssxref("percentage")}}, for the function to be valid. While the units in the two parameters don't need to be the same, they do need of the same dimension type, such as {{cssxref("length")}}, {{cssxref("angle")}}, {{cssxref("time")}}, or {{cssxref("frequency")}} to be valid.

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/css/round/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ width: round(down, var(--height), var(--interval));
margin: round(to-zero, -105px, 10px);
```

### Parameter
### Parameters

The `round(<rounding-strategy>, valueToRound, roundingInterval)` function specifies an optional rounding strategy, a value (or mathematical expression) to be rounded and a rounding interval (or mathematical expression).
The `valueToRound` is rounded according to the rounding strategy, to the nearest integer multiple of `roundingInterval`.
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/css/sin/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ width: calc(100px * sin(pi / 2));
width: calc(100px * sin(e / 4));
```

### Parameter
### Parameters

The `sin(angle)` function accepts only one value as its parameter.

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/css/tan/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ width: calc(100px * tan(pi / 3));
width: calc(100px * tan(e));
```

### Parameter
### Parameters

The `tan(angle)` function accepts only one value as its parameter.

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/exslt/exsl/node-set/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ exsl:node-set(object)
- `object`
- : The object for which to return the corresponding node-set.

### Returns
### Return value

The node-set corresponding to the specified `object`.

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/exslt/exsl/object-type/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ exsl:object-type(object)
- `object`
- : The object whose type is to be returned.

### Returns
### Return value

The object's type, which will be one of the following:

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/exslt/math/highest/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ math:highest(nodeSet)
- `nodeSet`
- : The node-set whose highest value is to be returned.

### Returns
### Return value

A result tree fragment consisting of copies of the nodes returned by [`math:max()`](/en-US/docs/Web/EXSLT/math/max).

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/exslt/math/lowest/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ math:lowest(nodeSet)
- `nodeSet`
- : The node-set whose lowest value is to be returned.

### Returns
### Return value

A result tree fragment consisting of copies of the nodes returned by [`math:min()`](/en-US/docs/Web/EXSLT/math/min).

Expand Down
Loading

0 comments on commit 4337ea0

Please sign in to comment.