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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>90717</bug_id>
          
          <creation_ts>2012-07-06 21:09:08 -0700</creation_ts>
          <short_desc>Inconsistent image map focus display with position:absolute</short_desc>
          <delta_ts>2012-09-12 05:59:43 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Layout and Rendering</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</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="wf">wf</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>bruno.abinader</cc>
    
    <cc>martin.leutelt</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>664332</commentid>
    <comment_count>0</comment_count>
    <who name="wf">wf</who>
    <bug_when>2012-07-06 21:09:08 -0700</bug_when>
    <thetext>if the img has style=position:absolute ,the focus on map doesn&apos;t display</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>664333</commentid>
    <comment_count>1</comment_count>
      <attachid>151130</attachid>
    <who name="wf">wf</who>
    <bug_when>2012-07-06 21:10:29 -0700</bug_when>
    <thetext>Created attachment 151130
the test page</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>664363</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2012-07-07 01:16:22 -0700</bug_when>
    <thetext>Could you please elaborate on what the bug is? On the attached test case, I cannot see any difference between Safari and Firefox.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>664370</commentid>
    <comment_count>3</comment_count>
    <who name="wf">wf</who>
    <bug_when>2012-07-07 01:32:33 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; Could you please elaborate on what the bug is? On the attached test case, I cannot see any difference between Safari and Firefox.

Using firefox or ie,the focus can be drawn when you press tab ,but Safari can&apos;t.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>664371</commentid>
    <comment_count>4</comment_count>
    <who name="wf">wf</who>
    <bug_when>2012-07-07 01:41:35 -0700</bug_when>
    <thetext>if change 
&lt;img src=&quot;blank.png&quot; width=&quot;200px;&quot; height=&quot;60px;&quot; border=&quot;0&quot; usemap=&quot;#Map&quot; style=&quot;position:absolute; z-index:3; top: 0px; left: 64px; height: 113px; width: 211px;&quot;&gt;

to

&lt;img src=&quot;blank.png&quot; width=&quot;200px;&quot; height=&quot;60px;&quot; border=&quot;0&quot; usemap=&quot;#Map&quot; style=&quot;z-index:3; top: 0px; left: 64px; height: 113px; width: 211px;&quot;&gt;

the focus can be drawn.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>664494</commentid>
    <comment_count>5</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2012-07-08 13:03:42 -0700</bug_when>
    <thetext>&gt; Using firefox or ie,the focus can be drawn when you press tab ,but Safari can&apos;t.

This doesn&apos;t happen for me in Firefox 13.0.1 for Mac.

I can reproduce that Safari changes behavior when position:absolute is removed, which does make it look like there is a bug somewhere (Firefox still doesn&apos;t draw focus).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>718278</commentid>
    <comment_count>6</comment_count>
    <who name="Bruno Abinader (history only)">bruno.abinader</who>
    <bug_when>2012-09-12 05:59:43 -0700</bug_when>
    <thetext>Please have a look at what w3schools says about absolute positioning:

&quot;Absolutely positioned elements are removed from the normal flow. The document and other elements behave like the absolutely positioned element does not exist.&quot;
http://www.w3schools.com/Css/css_positioning.asp

That said, the current behavior is correct (since elements with absolute positioning are removed from the normal flow). You can achieve the intended behavior by removing the &quot;position: absolute&quot; style and adding some JavaScript to fix the object on a specific spot of the screen, for example.

This is also valid for bug 94707, thus marking both as WONTFIX.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>151130</attachid>
            <date>2012-07-06 21:10:29 -0700</date>
            <delta_ts>2012-07-06 21:10:29 -0700</delta_ts>
            <desc>the test page</desc>
            <filename>login.html</filename>
            <type>text/html</type>
            <size>1110</size>
            <attacher name="wf">wf</attacher>
            
              <data encoding="base64">CjxodG1sPjxoZWFkPjxtZXRhIGh0dHAtZXF1aXY9IkNvbnRlbnQtVHlwZSIgY29udGVudD0idGV4
dC9odG1sOyI+Cjx0aXRsZT5sb2dpbjwvdGl0bGU+CjwvaGVhZD4KCjxib2R5Pgo8ZGl2IGlkPSJs
ZWZ0Ij4KPGltZyBzcmM9ImJsYW5rLnBuZyIgd2lkdGg9IjIwMHB4OyIgaGVpZ2h0PSI2MHB4OyIg
Ym9yZGVyPSIwIiB1c2VtYXA9IiNNYXAiIHN0eWxlPSJwb3NpdGlvbjphYnNvbHV0ZTsgei1pbmRl
eDozOyB0b3A6IDBweDsgbGVmdDogNjRweDsgaGVpZ2h0OiAxMTNweDsgd2lkdGg6IDIxMXB4OyI+
CjxtYXAgbmFtZT0iTWFwIj4KICA8YXJlYSBzaGFwZT0icmVjdCIgY29vcmRzPSIyNiwyNSwxOTEs
NDgiIGhyZWY9IjsiPgogIDxhcmVhIHNoYXBlPSJyZWN0IiBjb29yZHM9IjI4LDY4LDE5Myw5MiIg
aHJlZj0iOyI+CjwvbWFwPgo8ZGl2IGlkPSJsb2dpbiI+CjxkaXYgc3R5bGU9InBvc2l0aW9uOmFi
c29sdXRlOyB3aWR0aD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