Skip to content

Commit

Permalink
Add same note as in tutorial to doc. (#14136)
Browse files Browse the repository at this point in the history
Co-authored-by: Rich Harris <[email protected]>
  • Loading branch information
christophsanz and Rich-Harris authored Nov 4, 2024
1 parent c6904e8 commit 87d83ff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions documentation/docs/03-template-syntax/11-bind.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,8 @@ All visible elements have the following readonly bindings, measured with a `Resi
</div>
```

> [!NOTE] `display: inline` elements do not have a width or height (except for elements with 'intrinsic' dimensions, like `<img>` and `<canvas>`), and cannot be observed with a `ResizeObserver`. You will need to change the `display` style of these elements to something else, such as `inline-block`.
## bind:this

```svelte
Expand Down

0 comments on commit 87d83ff

Please sign in to comment.