<?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>54371</bug_id>
          
          <creation_ts>2011-02-13 17:36:10 -0800</creation_ts>
          <short_desc>Left Half of Flipped Element is not Interactive (3D Transforms)</short_desc>
          <delta_ts>2022-06-12 15:31:15 -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>Mac (Intel)</rep_platform>
          <op_sys>OS X 10.6</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc>http://hollow-wind-62.heroku.com/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter>mattga</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>djmadeira</cc>
    
    <cc>marbleman</cc>
    
    <cc>mattwoodrow</cc>
    
    <cc>rniwa</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>sims39</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>350494</commentid>
    <comment_count>0</comment_count>
    <who name="">mattga</who>
    <bug_when>2011-02-13 17:36:10 -0800</bug_when>
    <thetext>Background:
Based on Apple&apos;s card flip demo, I have developed a ui where you can click and drag cards around, and sometimes they can be flipped, revealing the other side.

Problem:
In this flipped state, a card&apos;s left half does not trigger any mouseover events or :hover CSS rules. It affects Mobile Safari, Safari, and Chrome.

Link to View Problem:
http://hollow-wind-62.heroku.com/
You can manually flip any card by clicking or touching any card for up to a second.

Source Code:
https://github.com/deleteme/mtg-play-tester-ui</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>350676</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2011-02-14 08:37:18 -0800</bug_when>
    <thetext>A small testcase would be useful.

The issue is that the flipped card is co-planer with its parent, in which case the hit-testing order is undefined. You have odd uses of -webkit-perspective and -webkit-transform-style in your content that would be easier to figure out in a simple testcase.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>350682</commentid>
    <comment_count>2</comment_count>
    <who name="">mattga</who>
    <bug_when>2011-02-14 08:42:50 -0800</bug_when>
    <thetext>Ok, I will reduce the code into a simple test case. I will either strip down the current ui as much as possible, or try to rebuild a page that exhibits the same bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>351072</commentid>
    <comment_count>3</comment_count>
    <who name="">mattga</who>
    <bug_when>2011-02-14 19:58:03 -0800</bug_when>
    <thetext>http://jsbin.com/aqipu6/11

This link demonstrates the vertical split in the hover state of the card face.

Basically, it&apos;s the Apple card flip demo, with a hover state. You can click either the button or the card to flip the element.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>351225</commentid>
    <comment_count>4</comment_count>
    <who name="">mattga</who>
    <bug_when>2011-02-15 06:50:46 -0800</bug_when>
    <thetext>I&apos;ve produced a version where the two card faces are not co-planar, by applying a transformZ of 1px to the back face.

Here&apos;s a link:
http://jsbin.com/ivezi4/5

I&apos;m not sure if this issue is a real bug after all.

I will say that it was confusing that the back face was visible and not completely interactive.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>833103</commentid>
    <comment_count>5</comment_count>
    <who name="Bernd">marbleman</who>
    <bug_when>2013-02-14 08:32:12 -0800</bug_when>
    <thetext>Sorry for posting on such an old issue, but after hours of search this was the only information that helped me to find a workaround for the problem:

So I think this was really a bug and it still is!!
 
I created three faces of the same size forming a 3D triangle. I can rotateY the triangle to 0deg, 120deg, 240deg to make each face visible to the user.

At 0deg I can interact with the content, e.g. mark text, hover, click links. At 120deg and 240deg I cannot interact with the content. It seems as if it is &quot;behind glas&quot; but there is really no overlaying content!

When I turn the triangle by 60deg it seems that the part of the face that comes out in z-direction (z &gt; 0 due to the perspective) is interactive while the part that goes in the depth of the screen (z &lt; 0) is not interactive anymore.

Hope you understand my poor description...

I cannot use a translateZ() on the triangle itself since the z-axis rotates with the object.

However, I could add a tranlateZ(1px) to the parent div  having no visual effect at all (even a 100px do not). But since I did, all sides of my triangle are interactive.

So it really seems as if there is a sort of glas screen at z=0 that blocks interaction with content behind it.

Tested with: 
Chrome Version 23.0.1271.64
Safari 5.1.7
Safari 6 on iOS

Same transformations work fine on all other browsers</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>922820</commentid>
    <comment_count>6</comment_count>
    <who name="simzy39">sims39</who>
    <bug_when>2013-08-29 23:22:56 -0700</bug_when>
    <thetext>I am experiencing this bug with file:///C:/Users/simzy/Desktop/testing%20aaryon/index.html
The links on the cards work in Firefox, but the top half of the card doesn&apos;t allow the link to work.

I am using:

.fadeineffect {
-webkit-transform: perspective(400px) rotateX(50deg) rotateY(0deg) rotateZ(0deg);
-moz-transform: perspective(400px) rotateX(50deg) rotateY(0deg) rotateZ(0deg);
-o-transform: perspective(400px) rotateX(50deg) rotateY(0deg) rotateZ(0deg);
-ms-transform: perspective(400px) rotateX(50deg) rotateY(0deg) rotateZ(0deg);
transform: perspective(400px) rotateX(50deg) rotateY(0deg) rotateZ(0deg);
}​

And then just 
 &lt;a href=&quot;img/model1.jpg&quot; data-lightbox=&quot;image-1&quot; title=&quot;&quot;&gt;&lt;img src=&quot;card1.jpg&quot; width=&quot;84&quot; height=&quot;127&quot; alt=&quot;&quot; class=&quot;fadeineffect&quot; /&gt;&lt;/a&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1035525</commentid>
    <comment_count>7</comment_count>
    <who name="DJ Madeira">djmadeira</who>
    <bug_when>2014-09-16 11:48:07 -0700</bug_when>
    <thetext>I am also running into this issue: http://codepen.io/djmadeira/pen/HJeLz

It seems to be fixed in webkit nightly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1875381</commentid>
    <comment_count>8</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-06-11 04:01:43 -0700</bug_when>
    <thetext>I am unable to reproduce this bug using CodePen in Comment 07 and JSBin in Comment 03 / Comment 04 using Safari 15.5 on macOS 12.4. I think it has been fixed down the line. It works similar to the browsers (Chrome Canary 104 and Firefox Nightly 103). I think it got fixed down the line and Comment 07 do mention that it was not happening in Webkit Nightly during 2014.

This can be marked as &quot;RESOLVED CONFIGURATION CHANGED&quot;. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1875452</commentid>
    <comment_count>9</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2022-06-12 15:31:15 -0700</bug_when>
    <thetext>Thank you for testing!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>