Skip to content
This repository has been archived by the owner on Jul 30, 2019. It is now read-only.

"Content attributes:" of <img> element #1388

Closed
mtrootyy opened this issue Apr 21, 2018 · 0 comments · Fixed by #1411
Closed

"Content attributes:" of <img> element #1388

mtrootyy opened this issue Apr 21, 2018 · 0 comments · Fixed by #1411
Assignees
Milestone

Comments

@mtrootyy
Copy link

mtrootyy commented Apr 21, 2018

https://w3c.github.io/html/semantics-embedded-content.html#the-img-element

Content attributes:

  • Global attributes
  • alt - Replacement text for use when images are not available
  • src - Address of the resource
  • srcset - Images to use in different situations (e.g., high-resolution displays, small monitors, etc)
  • sizes - Image sizes between breakpoints
  • crossorigin - How the element handles crossorigin requests
  • usemap - Name of image map to use
  • ismap - Whether the image is a server-side image map
  • width - Horizontal dimension
  • height - Vertical dimension
  • referrerpolicy - Referrer policy for fetches initiated by the element
  • longdesc - A url that provides a link to an expanded description of the image, defined in [html-longdesc]

decoding attribute should be added.

Ref: https://w3c.github.io/html/semantics-embedded-content.html#element-attrdef-img-decoding

@chaals chaals self-assigned this Apr 25, 2018
@chaals chaals added this to the HTML5.3 WD4 milestone Apr 25, 2018
chaals added a commit that referenced this issue Apr 25, 2018
fix #1388
* Note it is at risk (but it is likely to be OK)
* Add it to `img` attributes list
* Add it to attributes index
siusin pushed a commit that referenced this issue Apr 25, 2018
* clean up img/decoding

fix #1388
* Note it is at risk (but it is likely to be OK)
* Add it to `img` attributes list
* Add it to attributes index

* fix tyops

thanks to @prlbr
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants