Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-- to m-dash #17834

Merged
merged 1 commit into from
Jul 1, 2022
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
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,20 +79,20 @@ If you choose an option other than the GitHub UI, you want to install
These are some important things to keep in mind about the MDN content.

- **A document's main content is written in an `index.html` or an `index.md`
file** -- We're currently in the process of converting our content from HTML
file** We're currently in the process of converting our content from HTML
into Markdown. Pages that are in HTML have their content in a file called
"index.html". Pages that are in Markdown have their content in a file called
"index.md".
- **Documents are folders** -- Documents are always
- **Documents are folders** Documents are always
represented by a folder (e.g., [`files/en-us/web/javascript`](files/en-us/web/javascript)),
and that folder will contain the content of that specific document as an
`index.html` or `index.md` file (e.g., [`files/en-us/web/javascript/index.md`](files/en-us/web/javascript/index.md)).
- **Documents are hierarchical** - A document folder may contain other folders,
where those folders would represent child documents (e.g., [`files/en-us/web/javascript/closures/index.md`](files/en-us/web/javascript/closures/index.md)).
- **Document folders may contain image files** -- A document folder may also
- **Document folders may contain image files** A document folder may also
contain image files, which are referenced within that document's
`index.html` or `index.md` file.
- **All redirects are specified in a single file** -- All of the redirects
- **All redirects are specified in a single file** All of the redirects
are specified within [`files/en-us/_redirects.txt`](files/en-us/_redirects.txt),
one redirect per line. Each line specifies a `from` and `to` URI
separated by whitespace. When you move a document, you'll need to add a
Expand All @@ -102,7 +102,7 @@ Both of these tasks are done using the `yarn content move` tool — see
- **Don't edit the `_redirects.txt` file manually!**
If both an `index.html` or `index.md` file and a redirect exist for a document, the
document takes precedence and the redirect is ignored.
- **A document's `index.html` or `index.md` starts with "front-matter"** -- Each
- **A document's `index.html` or `index.md` starts with "front-matter"** Each
document's `index.html` or `index.md` file must begin with some [YAML](https://en.wikipedia.org/wiki/YAML)
called front-matter that defines some important information about the
document: `title`, `slug`, and [`tags`](https://developer.mozilla.org/en-US/docs/MDN/Contribute/Howto/Tag)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ function populateVoiceList() {
option.textContent = voices[i].name + ' (' + voices[i].lang + ')';

if(voices[i].default) {
option.textContent += ' -- DEFAULT';
option.textContent += ' DEFAULT';
}

option.setAttribute('data-lang', voices[i].lang);
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/window/speechsynthesis/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function populateVoiceList() {
option.textContent = voices[i].name + ' (' + voices[i].lang + ')';

if(voices[i].default) {
option.textContent += ' -- DEFAULT';
option.textContent += ' DEFAULT';
}

option.setAttribute('data-lang', voices[i].lang);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ if (request.status === 200) {

Line 3 sends the request. The `null` parameter indicates that no body content is needed for the `GET` request.

Line 5 checks the status code after the transaction is completed. If the result is 200 -- HTTP's "OK" result -- the document's text content is output to the console.
Line 5 checks the status code after the transaction is completed. If the result is 200 HTTP's "OK" result the document's text content is output to the console.

### Example: Synchronous HTTP request from a Worker

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ If you're more interested in following the Internet Explorer/Opera model, then:
ul {margin-left: 40px; padding-left: 0;}
```

Of course, you can fill in your preferred values. Set both to `1.25em`, if you like -- there's no reason why you have to stick with pixel-based indentation. If you want to reset lists to have no indentation, then you still have to zero out both padding and margin:
Of course, you can fill in your preferred values. Set both to `1.25em`, if you like there's no reason why you have to stick with pixel-based indentation. If you want to reset lists to have no indentation, then you still have to zero out both padding and margin:

```css
ul {margin-left: 0; padding-left: 0;}
Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/css/css_values_and_units/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ spec-urls:
---
{{CSSRef}}

Every CSS declaration includes a property / value pair. Depending on the property, the value can include a single integer or keyword, to a series of keywords and values with or without units. There are a common set of data types -- values and units -- that CSS properties accept. Below is an overview of most of these data types. Refer to the page for each value type for more detailed information.
Every CSS declaration includes a property / value pair. Depending on the property, the value can include a single integer or keyword, to a series of keywords and values with or without units. There are a common set of data types values and units that CSS properties accept. Below is an overview of most of these data types. Refer to the page for each value type for more detailed information.

## Textual data types

Expand Down Expand Up @@ -178,7 +178,7 @@ Angle values are represented by the type {{cssxref("<angle>")}} and accept

#### Time units

Time values are represented by the type {{cssxref("<time>")}}. When including a time value, the unit identifier -- the `s` or `ms` -- is required. It accepts the following values.
Time values are represented by the type {{cssxref("<time>")}}. When including a time value, the unit identifier the `s` or `ms` is required. It accepts the following values.

| Unit | Name | Description |
| ---- | ------------ | ----------------------------------------- |
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/css/gradient/conic-gradient/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ By default, colors transition smoothly from the color at one color stop to the c
conic-gradient(red 40grad, 80grad, blue 360grad);
```

If two or more color stops are at the same location, the transition will be a hard line between the first and last colors declared at that location. To use conic gradients to create pie charts --- which is NOT the correct way to create pie charts as background images are not accessible -- use hard color stops, where the color stop angles for two adjacent color stops are the same. The easiest way to do this is to use multiple position colors stops. The following two declarations are equivalent:
If two or more color stops are at the same location, the transition will be a hard line between the first and last colors declared at that location. To use conic gradients to create pie charts which is NOT the correct way to create pie charts as background images are not accessible use hard color stops, where the color stop angles for two adjacent color stops are the same. The easiest way to do this is to use multiple position colors stops. The following two declarations are equivalent:

```css
conic-gradient(#fff 0.09turn, #bbb 0.09turn, #bbb 0.27turn, #666 0.27turn, #666 0.54turn, #000 0.54turn);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ radial-gradient(red 33%, yellow 33% 66%, blue 66%);

For a repeating gradient to repeat we define the first and last color stops. Like in non-repeating gradients, the first and last color stops are assumed to be 0 and either 100% or 360deg if not explicitly declared. When defaulting to these values, the repeating arc is 360 degrees, and therefore doesn't repeat.

Like the non-repeating conic gradient, the color-stops are placed around a gradient arc -- the circumference of a circle, rather than on the gradient line emerging from the center of the gradient. The colors transition as if spun around the center of a circle, starting at the top if no `from <angle>` is declared, and going clockwise for the size of the angle that is the different between the largest and smallest color angle, then repeating.
Like the non-repeating conic gradient, the color-stops are placed around a gradient arc the circumference of a circle, rather than on the gradient line emerging from the center of the gradient. The colors transition as if spun around the center of a circle, starting at the top if no `from <angle>` is declared, and going clockwise for the size of the angle that is the different between the largest and smallest color angle, then repeating.

A repeating conic gradient is specified by indicating a rotation angle, the center of the gradient, and then specifying a list of color-stops. Like non-repeating conic gradients, the color-stops of a repeating conic gradient are specified with an {{cssxref('angle')}}. Units include `deg` for degrees, `grad` for gradients, `rad` for radians, and `turn` for turns. There are 360 degrees, 400 gradians, 2π radians, and 1 turn in a circle. Browsers supporting repeating conic gradients also accept percent values, with 100% equaling 360 degrees, but this is not in the specification.

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/css/offset-path/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ offset-path: unset;
- `ray()`
- : Taking up to three values, defines a path that is a line segment starting from the position of the box and proceeds in the direction defined by the specified angle similar to the CSS gradient angle where `0deg` is up, with positive angles increasing in the clockwise direction, with the size value being similar to the CSS radial gradient size values from `closest-side` to `farthest-corner`, and the keyterm `contain`.
- `url()`
- : References the ID of an SVG shape -- `circle`, `ellipse`, `line`, `path`, `polygon`, `polyline`, or `rect` -- using the shape's geometry as the path.
- : References the ID of an SVG shape `circle`, `ellipse`, `line`, `path`, `polygon`, `polyline`, or `rect` using the shape's geometry as the path.
- `<basic-shape>`

- : Specifies a [CSS shape](/en-US/docs/Web/CSS/CSS_Shapes/Basic_Shapes) including `circle()`, `ellipse()`, `inset()`, `polygon()`, or `path()`.
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/css/right/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ The effect of `right` depends on how the element is positioned (i.e., the value
- When `position` is set to `sticky`, the `right` property is used to compute the sticky-constraint rectangle.
- When `position` is set to `static`, the `right` property has _no effect_.

When both {{cssxref("left")}} and `right` are defined, if not prevented from doing so by other properties, the element will stretch to satisfy both. If the element cannot stretch to satisfy both -- for example, if a `width` is declared -- the position of the element is _over-constrained_. When this is the case, the `left` value has precedence when the container is left-to-right; the `right` value has precedence when the container is right-to-left.
When both {{cssxref("left")}} and `right` are defined, if not prevented from doing so by other properties, the element will stretch to satisfy both. If the element cannot stretch to satisfy both for example, if a `width` is declared the position of the element is _over-constrained_. When this is the case, the `left` value has precedence when the container is left-to-right; the `right` value has precedence when the container is right-to-left.

## Formal definition

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/css/scaling_of_svg_backgrounds/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ Since this image has an explicit 100 pixel height, the 3:4 ratio explicitly sets

#### Source: No fixed dimensions with intrinsic ratio

When an intrinsic ratio is specified, but no dimensions, rule 4 is applied -- except that rule 2 also applies. The image is therefore rendered just like for the `contain` case.
When an intrinsic ratio is specified, but no dimensions, rule 4 is applied except that rule 2 also applies. The image is therefore rendered just like for the `contain` case.

```css
background: url(no-dimensions-1x1-ratio.svg);
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/css/url/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ The **`url()`** function can be included as a value for
If you choose to write the URL without quotes, use a backslash (`\`) before any parentheses, whitespace characters, single quotes (`'`) and double quotes (`"`) that are part of the URL.

- path
- : References the ID of an [SVG shape](/en-US/docs/Web/SVG/Tutorial/Basic_Shapes) -- `circle`, `ellipse`, `line`, `path`, `polygon`, `polyline`, or `rect` -- using the shape's geometry as the path.
- : References the ID of an [SVG shape](/en-US/docs/Web/SVG/Tutorial/Basic_Shapes) `circle`, `ellipse`, `line`, `path`, `polygon`, `polyline`, or `rect` using the shape's geometry as the path.

- `<url-modifier>` {{Experimental_Inline}}
- : In the future, the `url()` function may support specifying a modifier, an identifier or a functional notation, which alters the meaning of the URL string. This is not supported and not fully defined in the specification.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,23 +43,23 @@ Rotation is described about any given axis in terms of the number of degrees of

### Alpha

Rotation around the z axis -- that is, twisting the device -- causes the **alpha** rotation angle to change:
Rotation around the z axis that is, twisting the device causes the **alpha** rotation angle to change:

![](alpha.png)

The alpha angle is 0° when top of the device is pointed directly toward the Earth's north pole, and increases as the device is rotated toward the left.

### Beta

Rotation around the x axis -- that is, tipping the device away from or toward the user -- causes the **beta** rotation angle to change:
Rotation around the x axis that is, tipping the device away from or toward the user causes the **beta** rotation angle to change:

![Positive beta pitches the device forward toward the user.](beta2.png)

The beta angle is 0° when the device's top and bottom are the same distance from the Earth's surface; it increases toward 180° as the device is tipped forward toward the user, and it decreases toward -180° as the device is tipped backward away from the user.

### Gamma

Rotation around the y axis -- that is, tilting the device toward the left or right -- causes the **gamma** rotation angle to change:
Rotation around the y axis that is, tilting the device toward the left or right causes the **gamma** rotation angle to change:

![](gamma.png)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ As always, we're open to questions and suggestions for changes in [community for
| Text inserted | text_changed::insert | IA2_EVENT_TEXT_INSERTED (use IAccessibleText::get_newText to retrieve the offsets and inserted text) |
| Text replaced | text_changed::delete followed immediately by text_changed::insert | IA2_EVENT_TEXT_REMOVED followed immediately by IA2_EVENT_TEXT_INSERTED |

\* We do not use MSAA's CREATE/DESTROY at the request of screen reader vendors, who avoid those events because they cause crashes on some important system -- SHOW/HIDE are the equivalent of those events.
\* We do not use MSAA's CREATE/DESTROY at the request of screen reader vendors, who avoid those events because they cause crashes on some important system SHOW/HIDE are the equivalent of those events.

## Retrieving author-supplied ARIA live region semantics from an event

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/html/attributes/required/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The `required` attribute is supported by `{{HTMLElement("input/text","text")}}`,

The attribute is not supported or relevant to {{HTMLElement("input/range","range")}} and {{HTMLElement("input/color","color")}}, as both have default values. It is also not supported on {{HTMLElement("input/hidden","hidden")}} as it can not be expected that a user to fill out a form that is hidden. Nor is it supported on any of the button types, including `image`.

Note `color` and `range` don't support `required`, but type `color` defaults to `#000000`, and `range` defaults to the midpoint between `min` and `max` -- with `min` and `max` defaulting to 0 and 100 respectively in most browsers if not declared -- so always has a value.
Note `color` and `range` don't support `required`, but type `color` defaults to `#000000`, and `range` defaults to the midpoint between `min` and `max` with `min` and `max` defaulting to 0 and 100 respectively in most browsers if not declared so always has a value.

In the case of a same named group of {{HTMLElement("input/radio","radio")}} buttons, if a single radio button in the group has the `required` attribute, a radio button in that group must be checked, although it doesn't have to be the one with the attribute is applied. So to improve code maintenance, it is recommended to either include the `required` attribute in every same-named radio button in the group, or else in none.

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/html/attributes/step/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ browser-compat: html.elements.input.attributes.step

The **`step`** attribute is a number that specifies the granularity that the value must adhere to or the keyword `any`. It is valid for the numeric input types, including the {{HTMLElement("input/date", "date")}}, {{HTMLElement("input/month", "month")}}, {{HTMLElement("input/week", "week")}}, {{HTMLElement("input/time", "time")}}, {{HTMLElement("input/datetime-local", "datetime-local")}}, {{HTMLElement("input/number", "number")}} and {{HTMLElement("input/range", "range")}} types.

The `step` sets the _stepping interval_ when clicking up and down spinner buttons, moving a slider left and right on a range, and validating the different date types. If not explicitly included, `step` defaults to 1 for `number` and `range`, and 1 unit type (minute, week, month, day) for the date/time input types. The value can must be a positive number - integer or float -- or the special value `any`, which means no stepping is implied, and any value is allowed (barring other constraints, such as [`min`](/en-US/docs/Web/HTML/Attributes/min) and [`max`](/en-US/docs/Web/HTML/Attributes/max)).
The `step` sets the _stepping interval_ when clicking up and down spinner buttons, moving a slider left and right on a range, and validating the different date types. If not explicitly included, `step` defaults to 1 for `number` and `range`, and 1 unit type (minute, week, month, day) for the date/time input types. The value can must be a positive number - integer or float or the special value `any`, which means no stepping is implied, and any value is allowed (barring other constraints, such as [`min`](/en-US/docs/Web/HTML/Attributes/min) and [`max`](/en-US/docs/Web/HTML/Attributes/max)).

The default stepping value for `number` inputs is 1, allowing only integers to be entered, _unless_ the stepping base is not an integer. The default stepping value for `time` is 1 second, with 900 being equal to 15 minutes.

Expand Down
Loading