pull/7857/head
Simon H 4 years ago committed by GitHub
parent 25e806f2e3
commit 9dea8a307f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -746,6 +746,22 @@ Videos additionally have readonly `videoWidth` and `videoHeight` bindings.
></video>
```
##### Image element bindings
---
Image elements (`<img>`) have two readonly bindings:
* `naturalWidth` (readonly) — the original width of the image
* `naturalHeight` (readonly) — the original height of the image
```sv
<img
bind:naturalWidth
bind:naturalHeight
></video>
```
##### Block-level element bindings
---

@ -133,7 +133,6 @@ const events = [
filter: (node: Element, _name: string) =>
node.name === 'details'
},
{
event_names: ['load'],
filter: (_: Element, name: string) => name === 'naturalHeight' || name === 'naturalWidth'

Loading…
Cancel
Save