From 841af035d26aac6a3890fb6d4725695987d91874 Mon Sep 17 00:00:00 2001 From: Xiaoqian Wu Date: Wed, 25 Apr 2018 22:34:36 +0800 Subject: [PATCH] Revert "clean up img/decoding (#1411)" This reverts commit c9675bee8e769deef55e5511a63a793d0da9799d. --- includes/status.include | 1 - sections/attributes.include | 6 ------ sections/semantics-embedded-content.include | 15 +++++++-------- 3 files changed, 7 insertions(+), 15 deletions(-) diff --git a/includes/status.include b/includes/status.include index 0acdf91ac3..a0fc8c1226 100644 --- a/includes/status.include +++ b/includes/status.include @@ -19,5 +19,4 @@ per [W3C Process - 6.4 Candidate Recommendation](https://www.w3.org/2017/Process
  • The :defined pseudo-class;
  • Allowing multiple <{meta}> elements with name="description";
  • the <{rtc}> element;
  • -
  • the <{img/decoding}> attribute for the <{img}> element.
  • diff --git a/sections/attributes.include b/sections/attributes.include index a6efe8fafc..f270482bf2 100644 --- a/sections/attributes.include +++ b/sections/attributes.include @@ -225,12 +225,6 @@ valid duration string - - <{img/decoding}> - <{img}> - A hint to request a/synchronous loading of images - "sync", "async", "auto" - default <{track}> diff --git a/sections/semantics-embedded-content.include b/sections/semantics-embedded-content.include index f84abd4791..986552b85c 100644 --- a/sections/semantics-embedded-content.include +++ b/sections/semantics-embedded-content.include @@ -713,7 +713,6 @@ (e.g., high-resolution displays, small monitors, etc)
    sizes - Image sizes between breakpoints
    crossorigin - How the element handles crossorigin requests
    -
    <{img/decoding}> - Hint for requesting synchronous or asynchronous loading
    usemap - Name of image map to use
    <{img/ismap}> - Whether the image is a server-side image map
    width - Horizontal dimension
    @@ -753,7 +752,6 @@ [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; @@ -764,6 +762,7 @@ readonly attribute boolean complete; readonly attribute DOMString currentSrc; [CEReactions] attribute DOMString referrerPolicy; + [CEReactions] attribute DOMString decoding; }; @@ -899,13 +898,13 @@ settings attribute. Its purpose is to allow images from third-party sites that allow cross-origin access to be used with <{canvas}>. - The decoding attribute is an enumerated attribute. - It is an [=image decoding hint=] to request synchronous or asynchronous image loading. - Valid values are "async", "async", and "auto". - The [=missing value default=] and [=invalid value default=] are both "auto". + The referrerpolicy attribute is a referrer policy attribute. Its purpose is to + set the referrer policy used when fetching the image. [[!REFERRERPOLICY]] - The referrerpolicy attribute is a referrer policy attribute. - Its purpose is to set the referrer policy used when fetching the image. [[!REFERRERPOLICY]] + The decoding attribute indicates + the preferred method to decode 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.