Skip to content

Commit 1ca83c2

Browse files
itsdonnixtanhauhau
andauthored
[docs] Improve grammar (#7923)
* [docs] Improve grammar * revert spelling changes Co-authored-by: tanhauhau <[email protected]>
1 parent 739bfae commit 1ca83c2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

site/content/docs/03-template-syntax.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ You can use HTML comments inside components.
158158

159159
---
160160

161-
Comments beginning with `svelte-ignore` disable warnings for the next block of markup. Usually these are accessibility warnings; make sure that you're disabling them for a good reason.
161+
Comments beginning with `svelte-ignore` disable warnings for the next block of markup. Usually, these are accessibility warnings; make sure that you're disabling them for a good reason.
162162

163163
```sv
164164
<!-- svelte-ignore a11y-autofocus -->
@@ -593,7 +593,7 @@ The simplest bindings reflect the value of a property, such as `input.value`.
593593

594594
---
595595

596-
If the name matches the value, you can use a shorthand.
596+
If the name matches the value, you can use shorthand.
597597

598598
```sv
599599
<!-- These are equivalent -->
@@ -750,7 +750,7 @@ Videos additionally have readonly `videoWidth` and `videoHeight` bindings.
750750

751751
---
752752

753-
Block-level elements have 4 readonly bindings, measured using a technique similar to [this one](http://www.backalleycoder.com/2013/03/18/cross-browser-event-based-element-resize-detection/):
753+
Block-level elements have 4 read-only bindings, measured using a technique similar to [this one](http://www.backalleycoder.com/2013/03/18/cross-browser-event-based-element-resize-detection/):
754754

755755
* `clientWidth`
756756
* `clientHeight`
@@ -981,7 +981,7 @@ transition = (node: HTMLElement, params: any) => {
981981

982982
A transition is triggered by an element entering or leaving the DOM as a result of a state change.
983983

984-
When a block is transitioning out, all elements inside the block, including those that do not have their own transitions, are kept in the DOM until every transition in the block has completed.
984+
When a block is transitioning out, all elements inside the block, including those that do not have their own transitions, are kept in the DOM until every transition in the block has been completed.
985985

986986
The `transition:` directive indicates a *bidirectional* transition, which means it can be smoothly reversed while the transition is in progress.
987987

@@ -1241,7 +1241,7 @@ As with actions and transitions, animations can have parameters.
12411241

12421242
---
12431243

1244-
Animations can use custom functions that provide the `node`, an `animation` object and any `parameters` as arguments. The `animation` parameter is an object containing `from` and `to` properties each containing a [DOMRect](https://developer.mozilla.org/en-US/docs/Web/API/DOMRect#Properties) describing the geometry of the element in its `start` and `end` positions. The `from` property is the DOMRect of the element in its starting position, the `to` property is the DOMRect of the element in its final position after the list has been reordered and the DOM updated.
1244+
Animations can use custom functions that provide the `node`, an `animation` object and any `parameters` as arguments. The `animation` parameter is an object containing `from` and `to` properties each containing a [DOMRect](https://developer.mozilla.org/en-US/docs/Web/API/DOMRect#Properties) describing the geometry of the element in its `start` and `end` positions. The `from` property is the DOMRect of the element in its starting position, and the `to` property is the DOMRect of the element in its final position after the list has been reordered and the DOM updated.
12451245

12461246
If the returned object has a `css` method, Svelte will create a CSS animation that plays on the element.
12471247

@@ -1390,7 +1390,7 @@ For SVG namespace, the example above desugars into using `<g>` instead:
13901390

13911391
---
13921392

1393-
Svelte's CSS Variables support allows for easily themable components:
1393+
Svelte's CSS Variables support allows for easily themeable components:
13941394

13951395
```sv
13961396
<!-- Slider.svelte -->
@@ -1654,7 +1654,7 @@ If `this` is falsy, no component is rendered.
16541654

16551655
The `<svelte:element>` element lets you render an element of a dynamically specified type. This is useful for example when displaying rich text content from a CMS. Any properties and event listeners present will be applied to the element.
16561656

1657-
The only supported binding is `bind:this`, since the element type specific bindings that Svelte does at build time (e.g. `bind:value` for input elements) does not work with a dynamic tag type.
1657+
The only supported binding is `bind:this`, since the element type specific bindings that Svelte does at build time (e.g. `bind:value` for input elements) do not work with a dynamic tag type.
16581658

16591659
If `this` has a nullish value, the element and its children will not be rendered.
16601660

0 commit comments

Comments
 (0)