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

Commit

Permalink
Added note as to picture element source order and that the img elemen…
Browse files Browse the repository at this point in the history
…t must always be present. (#1379)

Fix #1263, #1264

Thank you
  • Loading branch information
iandevlin authored and chaals committed Apr 22, 2018
1 parent fab4cbb commit b64c7aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
@@ -1 +1 @@
single-page.html
single-page.html
3 changes: 3 additions & 0 deletions sections/semantics-embedded-content.include
Expand Up @@ -462,6 +462,9 @@
which image resource to use, based on the screen pixel density, <a>viewport</a> size, image
format, and other factors. It <a>represents</a> its children.

The user agent first tries to match an image source contained within the <{source}> attribute and use that,
but if none is found, it falls back to what is contained within the <{img}> element, which must be present.

<div class="example">
The following example utilizes <a for="image">art direction</a> to provide the appropriate
image at a particular <a>viewport</a> for small and large screens.
Expand Down

0 comments on commit b64c7aa

Please sign in to comment.