<?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>53695</bug_id>
          
          <creation_ts>2011-02-03 11:00:28 -0800</creation_ts>
          <short_desc>Style transform (-webkit-transform: scale3d) with 0-scale renders, but disables mouse events.</short_desc>
          <delta_ts>2024-05-27 10:39:27 -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>CSS</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=237470</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=274654</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="W. James MacLean">wjmaclean</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>bugs</cc>
    
    <cc>cmarrin</cc>
    
    <cc>dino</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>tetsuharu.ohzeki</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>344849</commentid>
    <comment_count>0</comment_count>
    <who name="W. James MacLean">wjmaclean</who>
    <bug_when>2011-02-03 11:00:28 -0800</bug_when>
    <thetext>Visit the attached HTML file scale0.html with Chromium/Safari, both with gpu enabled and not enabled.

The box labelled &quot;broken&quot; has a style element &quot;-webkit-transform: scale3d(0.8,0.8,0)&quot; that is applied when the box is clicked. Two different behaviours are seen, depending on whether GPU acceleration is enabled in the browser or not.

With GPU enabled, clicking on the box labelled &quot;broken&quot; changes the DIV&apos;s transform in a way that makes it non-invertible, causing it to be subsequently is removed from hit-testing. After the initial click this element no longer receives mouse events.

With GPU disabled, clicking on the same box appears to work normally, partially because in non-gpu mode WebKit calls makeRenderable() which overrides the element&apos;s transform by making it affine (and in the process invertible).

In both cases though the element is rendered.

According to the CSS specs (http://www.w3.org/TR/css3-2d-transforms/), elements with non-invertible transforms should not be rendered:

&quot;In some cases, an animation might cause a transformation matrix to be singular or non-invertible. For example, an animation in which scale moves from 1 to -1. At the time when the matrix is in such a state, the transformed element is not rendered.&quot;

This suggests that perhaps the correct behaviour would be to not render the element at all. In any case, it seems desirable that both code paths should produce the same result.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>344850</commentid>
    <comment_count>1</comment_count>
      <attachid>81087</attachid>
    <who name="W. James MacLean">wjmaclean</who>
    <bug_when>2011-02-03 11:01:21 -0800</bug_when>
    <thetext>Created attachment 81087
Test case with style containing 0-scale.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>344875</commentid>
    <comment_count>2</comment_count>
    <who name="Dean Jackson">dino</who>
    <bug_when>2011-02-03 11:31:20 -0800</bug_when>
    <thetext>Seems like we need to decide things like:

- does scale to 0 along any axis make something disappear?
- does scale to 0 along any axis make something invisible to events?
- should a Z scale do anything to a 2d-only scene?
- what should happen with rotateY(90deg) scale(0, 1) rotateY(-90deg)? ie. if you scale to 0 along an axis perpendicular to the plane you exist in, does that make you disappear?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>903412</commentid>
    <comment_count>3</comment_count>
    <who name="Jet Villegas">bugs</who>
    <bug_when>2013-06-25 12:59:25 -0700</bug_when>
    <thetext>Per spec, this should not be rendered at all:
http://www.w3.org/TR/css3-transforms/#transform-function-lists</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1882560</commentid>
    <comment_count>4</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-07-12 14:18:59 -0700</bug_when>
    <thetext>Firefox and Chrome agree on behavior. Safari fails.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1882561</commentid>
    <comment_count>5</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-07-12 14:19:10 -0700</bug_when>
    <thetext>&lt;rdar://problem/96910006&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>81087</attachid>
            <date>2011-02-03 11:01:21 -0800</date>
            <delta_ts>2011-02-03 11:01:21 -0800</delta_ts>
            <desc>Test case with style containing 0-scale.</desc>
            <filename>scale0.html</filename>
            <type>text/html</type>
            <size>1235</size>
            <attacher name="W. James MacLean">wjmaclean</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgo8aGVhZD4KICA8bWV0YSBjaGFyc2V0PSJ1dGYtOCI+CiAg
PHRpdGxlPlRlc3QgZm9yIG1vdXNldXAgaXNzdWU8L3RpdGxlPgogIDxzdHlsZSB0eXBlPSJ0ZXh0
L2NzcyI+CiAgICBkaXYgewogICAgICB3aWR0aDoyMDBweDsKICAgICAgaGVpZ2h0OjIwMHB4OyAg
ICAgIAogICAgICBiYWNrZ3JvdW5kLWNvbG9yOiBibHVlOwogICAgICBtYXJnaW46MjBweDsKICAg
ICAgdGV4dC1hbGlnbjpjZW50ZXI7CiAgICAgIGNvbG9yOiB3aGl0ZTsKICAgIH0KICAgICN3b3Jr
cy5kb3duIHsKICAgICAgYmFja2dyb3VuZC1jb2xvcjogcmVkOwogICAgICAtd2Via2l0LXRyYW5z
Zm9ybTogc2NhbGUzZCgwLjgsMC44LDEpOyAKICAgIH0KICAgICNicm9rZW4uZG93biB7CiAgICAg
IGJhY2tncm91bmQtY29sb3I6IHJlZDsKICAgICAgLXdlYm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