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

clean up img/decoding #1411

Merged
merged 2 commits into from
Apr 25, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions includes/status.include
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ per [W3C Process - 6.4 Candidate Recommendation](https://www.w3.org/2017/Process
<li><a href="https://github.com/w3c/html/pull/1329">The <code>:defined</code> pseudo-class</a>;</li>
<li>Allowing multiple <{meta}> elements with <code>name="description"</code>;</li>
<li>the <{rtc}> element;</li>
<li>the <{img/decoding}> attribute for the <{img}> element.</li>
</ul>
6 changes: 6 additions & 0 deletions sections/attributes.include
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,12 @@
<a>valid duration string</a>
</td>
</tr>
<tr>
<th><{img/decoding}></th>
<td><{img}></td>
<td>A hint to request a/synchronous loading of images</td>
<td>"<code>sync</code>", "<code>async</code>", "<code>auto</code>"</td>
</tr>
<tr>
<th><code>default</code></th>
<td><{track}></td>
Expand Down
15 changes: 8 additions & 7 deletions sections/semantics-embedded-content.include
Original file line number Diff line number Diff line change
Expand Up @@ -713,6 +713,7 @@
(e.g., high-resolution displays, small monitors, etc) </dd>
<dd><code>sizes</code> - Image sizes between breakpoints</dd>
<dd><code>crossorigin</code> - How the element handles crossorigin requests</dd>
<dd><{img/decoding}> - Hint for requesting synchronous or asynchronous loading</dd>
<dd><code>usemap</code> - Name of <a>image map</a> to use </dd>
<dd><{img/ismap}> - Whether the image is a server-side image map</dd>
<dd><code>width</code> - Horizontal dimension</dd>
Expand Down Expand Up @@ -752,6 +753,7 @@
[CEReactions] attribute DOMString srcset;
[CEReactions] attribute DOMString sizes;
[CEReactions] attribute DOMString? crossOrigin;
[CEReactions] attribute DOMString decoding;
[CEReactions] attribute DOMString useMap;
attribute DOMString longDesc;
[CEReactions] attribute boolean isMap;
Expand All @@ -762,7 +764,6 @@
readonly attribute boolean complete;
readonly attribute DOMString currentSrc;
[CEReactions] attribute DOMString referrerPolicy;
[CEReactions] attribute DOMString decoding;
};
</pre>
</dd>
Expand Down Expand Up @@ -898,13 +899,13 @@
settings attribute</a>. Its purpose is to allow images from third-party sites that allow
cross-origin access to be used with <{canvas}>.

The <dfn element-attr for="img"><code>referrerpolicy</code></dfn> attribute is a <a>referrer policy attribute</a>. Its purpose is to
set the <a>referrer policy</a> used when <a>fetching</a> the image. [[!REFERRERPOLICY]]
The <dfn element-attr for="img"><code>decoding</code></dfn> attribute is an enumerated attribute.
It is an [=image decoding hint=] to request synchronous or asynchronous image loading.
Valid values are "<code>async</code>", "<code>async</code>", and "<code>auto</code>".
Copy link

@mtrootyy mtrootyy Apr 25, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'are "<code>async</code>", "<code>async</code>", and' is typo.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, sorry, didn't refresh the page before merging... will submit another commit to fix this.

Thanks for the review @mtrootyy .

The [=missing value default=] and [=invalid value default=] are both "<code>auto</code>".

The <dfn element-attr for="img"><code>decoding</code></dfn> attribute indicates
the preferred method to <a for="image">decode</a> this image. The attribute,
if present, must be an [=image decoding hint=]. This attribute's
[=missing value default=] and [=invalid value default=] are both the {{auto}} state.
The <dfn element-attr for="img"><code>referrerpolicy</code></dfn> attribute is a <a>referrer policy attribute</a>.
Its purpose is to set the <a>referrer policy</a> used when <a>fetching</a> the image. [[!REFERRERPOLICY]]

<hr />

Expand Down