Skip to content

Commit

Permalink
Fix typos and pseudo-typos 6 (mdn#36247)
Browse files Browse the repository at this point in the history
* Fix typos and pseudo-typos 6

* Apply suggestions from code review

Co-authored-by: Estelle Weyl <[email protected]>

* Update files/en-us/web/css/_colon_read-only/index.md

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

---------

Co-authored-by: Estelle Weyl <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Oct 22, 2024
1 parent c6165f0 commit 50c8e29
Show file tree
Hide file tree
Showing 56 changed files with 238 additions and 230 deletions.
6 changes: 3 additions & 3 deletions files/en-us/web/css/--_star_/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ Custom properties are scoped to the element(s) they are declared on, and partici
## Syntax

```css
--somekeyword: left;
--somecolor: #0000ff;
--somecomplexvalue: 3px 6px rgb(20 32 54);
--some-keyword: left;
--some-color: #0000ff;
--some-complex-value: 3px 6px rgb(20 32 54);
```

- `<declaration-value>`
Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/css/-webkit-mask-box-image/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,15 @@ Where:
### Setting an image

```css
.exampleone {
.example-one {
-webkit-mask-box-image: url("mask.png");
}
```

### Offsetting and filling an image

```css
.exampletwo {
.example-two {
-webkit-mask-box-image: url("logo.png") 100 100 0 0 round round;
}
```
Expand Down
6 changes: 3 additions & 3 deletions files/en-us/web/css/-webkit-mask-repeat-x/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ The `-webkit-mask-repeat-x` property specifies whether and how a mask image is r
### Using a repeating or non-repeating mask image

```css
.exampleone {
.example-one {
-webkit-mask-image: url("mask.png");
-webkit-mask-repeat-x: repeat;
}

.exampletwo {
.example-two {
-webkit-mask-image: url("mask.png");
-webkit-mask-repeat-x: no-repeat;
}
Expand All @@ -76,7 +76,7 @@ The `-webkit-mask-repeat-x` property specifies whether and how a mask image is r
You can specify a different `<repeat-style>` for each mask image, separated by commas:

```css
.examplethree {
.example-three {
-webkit-mask-image: url("mask1.png"), url("mask2.png");
-webkit-mask-repeat-x: repeat, space;
}
Expand Down
6 changes: 3 additions & 3 deletions files/en-us/web/css/-webkit-mask-repeat-y/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ The `-webkit-mask-repeat-y` property sets whether and how a mask image is repeat
### Using a repeating or non-repeating mask image

```css
.exampleone {
.example-one {
-webkit-mask-image: url("mask.png");
-webkit-mask-repeat-y: repeat;
}

.exampletwo {
.example-two {
-webkit-mask-image: url("mask.png");
-webkit-mask-repeat-y: no-repeat;
}
Expand All @@ -76,7 +76,7 @@ The `-webkit-mask-repeat-y` property sets whether and how a mask image is repeat
You can specify a different `<repeat-style>` for each mask image, separated by commas:

```css
.examplethree {
.example-three {
-webkit-mask-image: url("mask1.png"), url("mask2.png");
-webkit-mask-repeat-y: repeat, space;
}
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/css/-webkit-text-fill-color/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ p {

## See also

- [Surfin' Safari blog post announcing this feature](https://webkit.org/blog/85/introducing-text-stroke/)
- [Introducing Text-Stroke](https://webkit.org/blog/85/introducing-text-stroke/) on webkit.org (2006)
- [CSS-Tricks article explaining this feature](https://css-tricks.com/adding-stroke-to-web-text/)
- {{cssxref("-webkit-text-stroke-color")}}
- {{cssxref("-webkit-text-stroke-width")}}
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/css/-webkit-text-stroke-color/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ colorPicker.addEventListener("change", (evt) => {

## See also

- [Surfin' Safari blog post announcing this feature](https://webkit.org/blog/85/introducing-text-stroke/)
- [Introducing Text-Stroke](https://webkit.org/blog/85/introducing-text-stroke/) on webkit.org (2006)
- [CSS-Tricks article explaining this feature](https://css-tricks.com/adding-stroke-to-web-text/)
- {{cssxref("-webkit-text-fill-color")}}
- {{cssxref("-webkit-text-stroke-width")}}
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/css/-webkit-text-stroke-width/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ p {

## See also

- [Surfin' Safari blog post announcing this feature](https://webkit.org/blog/85/introducing-text-stroke/)
- [Introducing Text-Stroke](https://webkit.org/blog/85/introducing-text-stroke/) on webkit.org (2006)
- [CSS-Tricks article explaining this feature](https://css-tricks.com/adding-stroke-to-web-text/)
- {{cssxref("-webkit-text-stroke-color")}}
- {{cssxref("-webkit-text-stroke")}}
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/css/-webkit-text-stroke/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ This property is a shorthand for the following CSS properties:

## See also

- [Surfin' Safari blog post announcing this feature](https://webkit.org/blog/85/introducing-text-stroke/)
- [Introducing Text-Stroke](https://webkit.org/blog/85/introducing-text-stroke/) on webkit.org (2006)
- [CSS-Tricks article explaining this feature](https://css-tricks.com/adding-stroke-to-web-text/)
- {{cssxref("-webkit-text-stroke-width")}}
- {{cssxref("-webkit-text-stroke-color")}}
Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/css/@font-face/font-display/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ The font display timeline is based on a timer that begins the moment the user ag
@font-face {
font-family: ExampleFont;
src:
url(/path/to/fonts/examplefont.woff) format("woff"),
url(/path/to/fonts/examplefont.eot) format("eot");
url(/path/to/fonts/example-font.woff) format("woff"),
url(/path/to/fonts/example-font.eot) format("eot");
font-weight: 400;
font-style: normal;
font-display: fallback;
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/css/@font-face/font-family/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ font-family: "font family";
font-family: "another font family";

/* <custom-ident> value */
font-family: examplefont;
font-family: example-font;
```

### Values
Expand Down
8 changes: 4 additions & 4 deletions files/en-us/web/css/@font-face/font-feature-settings/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ In this example, the tag name `swsh` and a boolean value `1` are used as the val
#### HTML

```html
<p class="swashoff">Swash is off here</p>
<p class="swashon">Swash is on here</p>
<p class="swash-off">Swash is off here</p>
<p class="swash-on">Swash is on here</p>
```

#### CSS
Expand All @@ -74,10 +74,10 @@ p {
font-size: 3rem;
margin: 0.7rem 3rem;
}
.swashoff {
.swash-off {
font-family: MonteCarlo;
}
.swashon {
.swash-on {
font-family: MonteCarlo2;
}
```
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/css/@import/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ The two examples above show how to specify the _url_ as a `<string>` and as a `u
### Importing CSS rules conditional on media queries

```css
@import url("fineprint.css") print;
@import url("fine-print.css") print;
@import url("bluish.css") print, screen;
@import "common.css" screen;
@import url("landscape.css") screen and (orientation: landscape);
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/css/@keyframes/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The **`@keyframes`** CSS [at-rule](/en-US/docs/Web/CSS/At-rule) controls the int
## Syntax

```css
@keyframes slidein {
@keyframes slide-in {
from {
transform: translateX(0%);
}
Expand Down
6 changes: 3 additions & 3 deletions files/en-us/web/css/_colon_-moz-window-inactive/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,21 @@ This example alters the appearance of a box's background depending on whether it
### HTML

```html
<div id="mybox">
<div id="my-box">
<p>This is a box!</p>
</div>
```

### CSS

```css
#mybox {
#my-box {
background: linear-gradient(to bottom, yellow, cyan);
width: 200px;
height: 200px;
}

#mybox:-moz-window-inactive {
#my-box:-moz-window-inactive {
background: cyan;
}
```
Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/css/_colon_placeholder-shown/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ The following example highlights the Student ID field with a custom style.
pattern="[0-9]{8}"
title="8 digit ID"
id="sid"
class="studentid"
class="student-id"
placeholder="8 digit id" />
</p>
<input type="submit" />
Expand All @@ -111,7 +111,7 @@ input {
color: black;
}

input.studentid:placeholder-shown {
input.student-id:placeholder-shown {
background-color: yellow;
color: red;
font-style: italic;
Expand Down
9 changes: 7 additions & 2 deletions files/en-us/web/css/_colon_read-only/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,13 @@ CA
>
</div>
<div>
<label for="pcode">Zip/postal code: </label>
<input id="pcode" name="pcode" type="text" value="94708" readonly />
<label for="postal-code">Zip/postal code: </label>
<input
id="postal-code"
name="postal-code"
type="text"
value="94708"
readonly />
</div>
</fieldset>

Expand Down
10 changes: 5 additions & 5 deletions files/en-us/web/css/_doublecolon_-webkit-scrollbar/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ The following example shows how to apply colors to scrollbars using {{cssxref("s
#### HTML

```html
<div class="scrollbox">
<div class="scroll-box">
<h1>Yoshi</h1>
<p>
Yoshi is a fictional dinosaur who appears in video games published by
Expand All @@ -149,7 +149,7 @@ The following example shows how to apply colors to scrollbars using {{cssxref("s
#### CSS

```css hidden
.scrollbox {
.scroll-box {
overflow: auto;
width: 20rem;
height: 5rem;
Expand All @@ -162,17 +162,17 @@ The following example shows how to apply colors to scrollbars using {{cssxref("s
```css
/* For browsers that support `scrollbar-*` properties */
@supports (scrollbar-color: auto) {
.scrollbox {
.scroll-box {
scrollbar-color: aquamarine cornflowerblue;
}
}

/* Otherwise, use `::-webkit-scrollbar-*` pseudo-elements */
@supports selector(::-webkit-scrollbar) {
.scrollbox::-webkit-scrollbar {
.scroll-box::-webkit-scrollbar {
background: aquamarine;
}
.scrollbox::-webkit-scrollbar-thumb {
.scroll-box::-webkit-scrollbar-thumb {
background: cornflowerblue;
}
}
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/css/_doublecolon_part/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ custom-element::part(foo) {
}
```

## Descripton
## Description

The global [`part`](/en-US/docs/Web/HTML/Global_attributes/part) attribute makes a shadow tree element visible to its parent DOM. The part names declared using the `part` attribute are used as the parameter of the `::part()` pseudo-element. In this way, you can apply CSS styles to elements in the shadow tree from outside of it.

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/css/_doublecolon_slotted/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ Our markup includes three custom elements, including a custom element with an in

<person-details>
<span slot="person-age">44</span>
<span slot="not-a-slot-name">Time traveller</span>
<span slot="not-a-slot-name">Time traveler</span>
<p slot="person-name">Dr. Who</p>
</person-details>
```
Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/css/animation-fill-mode/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ You can see the effect of `animation-fill-mode` in the following example. It dem
```html
<p>Move your mouse over the gray box!</p>
<div class="demo">
<div class="growsandstays">This grows and stays big.</div>
<div class="grows-and-stays">This grows and stays big.</div>
<div class="grows">This just grows.</div>
</div>
```
Expand All @@ -116,7 +116,7 @@ You can see the effect of `animation-fill-mode` in the following example. It dem
animation-duration: 3s;
}

.demo:hover .growsandstays {
.demo:hover .grows-and-stays {
animation-name: grow;
animation-duration: 3s;
animation-fill-mode: forwards;
Expand Down
12 changes: 6 additions & 6 deletions files/en-us/web/css/animation-timing-function/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,9 +262,9 @@ The example demonstrates the effects of various bézier curve easing functions.
<div class="parent">
<div class="linear">linear</div>
<div class="ease">ease</div>
<div class="easein">ease-in</div>
<div class="easeout">ease-out</div>
<div class="easeinout">ease-in-out</div>
<div class="ease-in">ease-in</div>
<div class="ease-out">ease-out</div>
<div class="ease-in-out">ease-in-out</div>
<div class="cb">cubic-bezier(.5, -0.5, 1, 1.5)</div>
</div>
<div class="x-axis"><span>50%</span></div>
Expand Down Expand Up @@ -342,13 +342,13 @@ btn.addEventListener("click", () => {
.ease {
animation-timing-function: ease;
}
.easein {
.ease-in {
animation-timing-function: ease-in;
}
.easeout {
.ease-out {
animation-timing-function: ease-out;
}
.easeinout {
.ease-in-out {
animation-timing-function: ease-in-out;
}
.cb {
Expand Down
8 changes: 4 additions & 4 deletions files/en-us/web/css/animation/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ This property is a shorthand for the following CSS properties:
```css
/* @keyframes duration | easing-function | delay |
iteration-count | direction | fill-mode | play-state | name */
animation: 3s ease-in 1s 2 reverse both paused slidein;
animation: 3s ease-in 1s 2 reverse both paused slide-in;

/* @keyframes duration | easing-function | delay | name */
animation: 3s linear 1s slidein;
animation: 3s linear 1s slide-in;

/* two animations */
animation:
3s linear slidein,
3s ease-out 5s slideout;
3s linear slide-in,
3s ease-out 5s slide-out;
```

The `animation` property is specified as one or more single animations, separated by commas.
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/css/backdrop-filter/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The **`backdrop-filter`** [CSS](/en-US/docs/Web/CSS) property lets you apply gra
backdrop-filter: none;

/* URL to SVG filter */
backdrop-filter: url(commonfilters.svg#filter);
backdrop-filter: url(common-filters.svg#filter);

/* <filter-function> values */
backdrop-filter: blur(2px);
Expand Down
Loading

0 comments on commit 50c8e29

Please sign in to comment.