Skip to content

Commit

Permalink
Add <img> element (#1425)
Browse files Browse the repository at this point in the history
Co-authored-by: Philip Jägenstedt <philip@foolip.org>
  • Loading branch information
petele and foolip authored Jul 19, 2024
1 parent 4c6d1e6 commit 5b36cfc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 78 deletions.
16 changes: 4 additions & 12 deletions features/draft/html-elements/img.yml → features/img.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,26 @@
draft_date: 2024-06-05
name: <img>
description: The `<img>` element TODO.
description: The `<img>` element adds an image into the document.
spec: https://html.spec.whatwg.org/multipage/embedded-content.html#the-img-element
group: html
group: html-elements
status:
compute_from: html.elements.img
compat_features:
- api.HTMLImageElement
- api.HTMLImageElement.Image
- api.HTMLImageElement.alt
- api.HTMLImageElement.complete
- api.HTMLImageElement.crossOrigin
- api.HTMLImageElement.currentSrc
- api.HTMLImageElement.decode
- api.HTMLImageElement.decoding
- api.HTMLImageElement.height
- api.HTMLImageElement.isMap
- api.HTMLImageElement.naturalHeight
- api.HTMLImageElement.naturalWidth
- api.HTMLImageElement.sizes
- api.HTMLImageElement.src
- api.HTMLImageElement.srcset
- api.HTMLImageElement.useMap
- api.HTMLImageElement.width
- html.elements.img
- html.elements.img.alt
- html.elements.img.crossorigin
- html.elements.img.decoding
- html.elements.img.height
- html.elements.img.ismap
- html.elements.img.sizes
- html.elements.img.src
- html.elements.img.srcset
- html.elements.img.usemap
- html.elements.img.width
76 changes: 10 additions & 66 deletions features/draft/html-elements/img.yml.dist → features/img.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,18 @@

status:
baseline: high
baseline_low_date: 2020-01-15
baseline_high_date: 2022-07-15
baseline_low_date: 2015-07-29
baseline_high_date: 2018-01-29
support:
chrome: "65"
chrome_android: "65"
edge: "79"
firefox: "68"
firefox_android: "68"
safari: "11.1"
safari_ios: "11.3"
chrome: "1"
chrome_android: "18"
edge: "12"
firefox: "1"
firefox_android: "4"
safari: "1"
safari_ios: "1"
compat_features:
# ⬇️ Same status as overall feature ⬇️
# baseline: high
# baseline_low_date: 2015-07-29
# baseline_high_date: 2018-01-29
Expand Down Expand Up @@ -44,11 +45,9 @@ compat_features:
- api.HTMLImageElement.alt
- api.HTMLImageElement.complete
- api.HTMLImageElement.height
- api.HTMLImageElement.isMap
- api.HTMLImageElement.naturalHeight
- api.HTMLImageElement.naturalWidth
- api.HTMLImageElement.src
- api.HTMLImageElement.useMap
- api.HTMLImageElement.width

# baseline: high
Expand All @@ -64,8 +63,6 @@ compat_features:
# safari_ios: "2"
- html.elements.img.alt
- html.elements.img.height
- html.elements.img.ismap
- html.elements.img.usemap
- html.elements.img.width

# baseline: high
Expand All @@ -82,59 +79,6 @@ compat_features:
- api.HTMLImageElement.crossOrigin
- html.elements.img.crossorigin

# baseline: high
# baseline_low_date: 2015-07-29
# baseline_high_date: 2018-01-29
# support:
# chrome: "34"
# chrome_android: "34"
# edge: "12"
# firefox: "38"
# firefox_android: "38"
# safari: "8"
# safari_ios: "8"
- api.HTMLImageElement.srcset

# baseline: high
# baseline_low_date: 2016-03-21
# baseline_high_date: 2018-09-21
# support:
# chrome: "38"
# chrome_android: "38"
# edge: "12"
# firefox: "38"
# firefox_android: "38"
# safari: "9.1"
# safari_ios: "9.3"
- html.elements.img.sizes

# baseline: high
# baseline_low_date: 2016-03-21
# baseline_high_date: 2018-09-21
# support:
# chrome: "38"
# chrome_android: "38"
# edge: "13"
# firefox: "38"
# firefox_android: "38"
# safari: "9.1"
# safari_ios: "9.3"
- api.HTMLImageElement.currentSrc
- api.HTMLImageElement.sizes

# baseline: high
# baseline_low_date: ≤2018-10-02
# baseline_high_date: ≤2021-04-02
# support:
# chrome: "34"
# chrome_android: "34"
# edge: ≤18
# firefox: "38"
# firefox_android: "38"
# safari: "8"
# safari_ios: "8"
- html.elements.img.srcset

# baseline: high
# baseline_low_date: 2020-01-15
# baseline_high_date: 2022-07-15
Expand Down

0 comments on commit 5b36cfc

Please sign in to comment.