<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>19155</bug_id>
          
          <creation_ts>2012-10-01 01:43:42 +0000</creation_ts>
          <short_desc>Great Idea - CSS3 element(), image() and image-set() functions for &quot;content&quot; property</short_desc>
          <delta_ts>2012-10-01 16:56:12 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>CSS</product>
          <component>Image Values and Replaced Content</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexei03a">alexei03a</reporter>
          <assigned_to name="Tab Atkins Jr.">jackalmage</assigned_to>
          <cc>alexei03a</cc>
    
    <cc>fantasai.bugs</cc>
          
          <qa_contact>public-css-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>74904</commentid>
    <comment_count>0</comment_count>
    <who name="Alexei03a">alexei03a</who>
    <bug_when>2012-10-01 01:43:42 +0000</bug_when>
    <thetext>Using the CSS3 image () in the content can greatly enhance the ability of developers.

- Using fallbacks (if image does not support, then display next).
- Display, for example, first frame of GIF image.
- Fill element by solid color, if have width and height attribute.
- NOT JavaScript, pure CSS3.
- Images by CSS, not only HTML5.
- Visual custom elements (display canvas instead img, but this element is img).

Examples:

#img {
    content: image(&apos;cat_meme.gif#frame=5&apos;, &apos;lolcat.png&apos;);
}
Display 5&apos;th frame of GIF image. Visual element is static.

#img:after {
    content: image(&apos;cat_meme.gif#frame=5&apos;, &apos;lolcat.png&apos;);
}
Insert to container 5&apos;th frame of GIF image after content.

#img {
    content: element(#canvas);
}
Conversion simple image element to interactive canvas element. Size must correct working, like image element.

#img:after {
    content: element(#canvas);
}
Insert canvas element to after of content in container.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74933</commentid>
    <comment_count>1</comment_count>
    <who name="Tab Atkins Jr.">jackalmage</who>
    <bug_when>2012-10-01 16:56:12 +0000</bug_when>
    <thetext>The examples you provide already work per spec.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>