<?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>12933</bug_id>
          
          <creation_ts>2011-06-10 16:41:40 +0000</creation_ts>
          <short_desc>Other tags should be allowed inside an img tag</short_desc>
          <delta_ts>2013-01-11 13:30:21 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML.next</product>
          <component>default</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc>a11y</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="Bernhard Rosenkraenzer">bero</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          <cc>laura.lee.carlson</cc>
    
    <cc>mike</cc>
    
    <cc>plh</cc>
    
    <cc>public-html-a11y</cc>
    
    <cc>robin</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>49419</commentid>
    <comment_count>0</comment_count>
    <who name="Bernhard Rosenkraenzer">bero</who>
    <bug_when>2011-06-10 16:41:40 +0000</bug_when>
    <thetext>Currently, it is hard to position an element relative to an image of unknown width/height without using JavaScript.

If you wish to have an element on top of an image (e.g. an icon to trigger an activity), it would be nice to do something along the lines of

&lt;img src=&quot;whatever.png&quot; alt=&quot;something&quot;&gt;
  &lt;div style=&quot;position: relative; left: 5%; top: 5%; width: 45%; height: 45%; background-color: green; opacity: 0.8;&quot;&gt;something&lt;/div&gt;
&lt;/img&gt;

(Replacing the img with a div with the image set as background-image works for placing the inner div, but there doesn&apos;t seem to be a way to force the div to have the exact size of the image without JavaScript.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81238</commentid>
    <comment_count>1</comment_count>
    <who name="Robin Berjon">robin</who>
    <bug_when>2013-01-11 13:30:21 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are
satisfied with this response, please change the state of this bug to CLOSED. If
you have additional information and would like the Editor to reconsider, please
reopen this bug. If you would like to escalate the issue to the full HTML
Working Group, please add the TrackerRequest keyword to this bug, and suggest
title and text for the Tracker Issue; or you may create a Tracker Issue
yourself, if you are able to do so. For more details, see this document:

   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Rejected
Change Description: none
Rationale: It&apos;s likely impossible to achieve that in that manner. Using script in order to solve this does not strike me as a major problem, but at any rate a better solution would come from CSS.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>