<?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>58965</bug_id>
          
          <creation_ts>2011-04-19 23:09:15 -0700</creation_ts>
          <short_desc>CSS transform doesn’t apply to inline elements</short_desc>
          <delta_ts>2022-09-30 08:50:23 -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>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://jsfiddle.net/boblet/HY47L/</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 name="Oli Studholme">webkit.org</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>anewpage.media</cc>
    
    <cc>dino</cc>
    
    <cc>eoconnor</cc>
    
    <cc>igor.oliveira</cc>
    
    <cc>phiw2</cc>
    
    <cc>shanestephens</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>thomas</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>389078</commentid>
    <comment_count>0</comment_count>
    <who name="Oli Studholme">webkit.org</who>
    <bug_when>2011-04-19 23:09:15 -0700</bug_when>
    <thetext>The spec says transform should apply to block-level and inline-level elements: http://www.w3.org/TR/css3-2d-transforms/#transform-property
applying a transform:rotate(18deg) to an element with display: inline doesn’t work

Webkit r84295, Chrome 10 and Safari 5.04 fail
Firefox 4 and Opera 11.10 work as expected</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>389086</commentid>
    <comment_count>1</comment_count>
    <who name="Thomas Fuchs">thomas</who>
    <bug_when>2011-04-19 23:42:30 -0700</bug_when>
    <thetext>Same results on iPad 2, iOS 4.3.2, inline star doesn&apos;t rotate.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>389436</commentid>
    <comment_count>2</comment_count>
    <who name="Dean Jackson">dino</who>
    <bug_when>2011-04-20 12:34:44 -0700</bug_when>
    <thetext>See http://www.w3.org/mid/m262qxbr9e.fsf@eoconnor.apple.com</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>389437</commentid>
    <comment_count>3</comment_count>
    <who name="Dean Jackson">dino</who>
    <bug_when>2011-04-20 12:35:14 -0700</bug_when>
    <thetext>duh, obviously that&apos;s the reason for filing this bug :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>389730</commentid>
    <comment_count>4</comment_count>
    <who name="Oli Studholme">webkit.org</who>
    <bug_when>2011-04-20 18:32:40 -0700</bug_when>
    <thetext>Thanks for the iOS check Thomas, and the link Dean! Following up from Dean, the relevant text in the link is:
“I propose that CSS Transforms be limited to block-level elements, and inline elements that are never split into multiple boxes (i.e. replaced elements, inline-block and inline-table)”

The spec change mentioned in the link is:
“Applies to: block-level and atomic inline-level elements”
http://dev.w3.org/csswg/css3-2d-transforms/#transform-property

As I should have mentioned the workaround for transforming inline elements is to use display: inline-block;. However, single characters would qualify as atomic, so even in the editor’s draft I still think this is a bug ;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>406233</commentid>
    <comment_count>5</comment_count>
    <who name="Shane Stephens">shanestephens</who>
    <bug_when>2011-05-18 20:54:31 -0700</bug_when>
    <thetext>From the CSS 2.1 spec (http://www.w3.org/TR/CSS2/visuren.html#inline-boxes):

&quot;An inline box is one that is both inline-level and whose contents participate in its containing inline formatting context. A non-replaced element with a &apos;display&apos; value of &apos;inline&apos; generates an inline box. Inline-level boxes that are not inline boxes (such as replaced inline-level elements, inline-block elements, and inline-table elements) are called atomic inline-level boxes because they participate in their inline formatting context as a single opaque box.&quot;

&lt;span&gt; is inline-level (display: inline), non-replaced (not an img or embedded document), and therefore an inline box (non-replaced + display: inline). Regardless of whether the content is a single character, &lt;span&gt; is therefore not atomic (it is an inline box). 

So this is not a bug in the editor&apos;s draft :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>413871</commentid>
    <comment_count>6</comment_count>
    <who name="BrianMB">anewpage.media</who>
    <bug_when>2011-06-01 20:32:03 -0700</bug_when>
    <thetext>If the spec says that inline elements should not be transformed, then the spec is wrong.

I need to be able to apply transforms to individual letters in the context of words which comply to line wrapping rules.

Setting inline-block on a single letter (or series of letters) screws that up entirely.

Please fix this ASAP (both the draft and Webkit).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>413873</commentid>
    <comment_count>7</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2011-06-01 20:35:57 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; If the spec says that inline elements should not be transformed, then the spec is wrong.

Please participate in the discussion on the www-style mailing list if you have feedback on the spec.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>413879</commentid>
    <comment_count>8</comment_count>
      <attachid>95714</attachid>
    <who name="Shane Stephens">shanestephens</who>
    <bug_when>2011-06-01 20:55:11 -0700</bug_when>
    <thetext>Created attachment 95714
Demonstration of isolating characters in inline-block so that transforms can be applied</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>413880</commentid>
    <comment_count>9</comment_count>
    <who name="Shane Stephens">shanestephens</who>
    <bug_when>2011-06-01 21:02:27 -0700</bug_when>
    <thetext>However, this doesn&apos;t work correctly with line wrapping.  There should be a way to make it work though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>413881</commentid>
    <comment_count>10</comment_count>
      <attachid>95715</attachid>
    <who name="Shane Stephens">shanestephens</who>
    <bug_when>2011-06-01 21:12:57 -0700</bug_when>
    <thetext>Created attachment 95715
Demonstration of isolating characters in inline-block so that transforms can be applied (2)

This version wraps the word itself in an inline-block span so that it doesn&apos;t break across lines.  I&apos;m pretty sure this is exactly the use case that Brian claims is broken - Brian does this do what you want it to?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1902369</commentid>
    <comment_count>11</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-09-30 08:50:23 -0700</bug_when>
    <thetext>I am not able to reproduce this bug in all test cases:

No-wrap example - work same in all browsers (Safari 16, Chrome Canary 108 and Firefox Nightly 107) and show &quot;lifted&quot; as twisted word.

Wrap example - work same in all browsers (Safari 16, Chrome Canary 108 and Firefox Nightly 107) and show &quot;lifted&quot; as twisted word.

JSFiddle - Same across all browsers as well and only one start (light pink) is tilted.

I am marking this as &quot;RESOLVED CONFIGURATION CHANGED&quot; since all browsers now render this same. Please reopen, if this is reproducible or my testing is flawed or I missed something. Thanks!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>95714</attachid>
            <date>2011-06-01 20:55:11 -0700</date>
            <delta_ts>2011-06-01 20:55:11 -0700</delta_ts>
            <desc>Demonstration of isolating characters in inline-block so that transforms can be applied</desc>
            <filename>inline_block_test.html</filename>
            <type>text/html</type>
            <size>364</size>
            <attacher name="Shane Stephens">shanestephens</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgo8aGVhZD4KICA8c3R5bGU+Ci5saWZ0ZWQgewogIC13ZWJr
aXQtdHJhbnNmb3JtOiB0cmFuc2xhdGUoMHB4LCAtMnB4KSByb3RhdGUoMTBkZWcpOwogIGRpc3Bs
YXk6IGlubGluZS1ibG9jazsKfQoKLmRyb3BwZWQgewogIC13ZWJraXQtdHJhbnNmb3JtOiB0cmFu
c2xhdGUoMHB4LCAycHgpIHJvdGF0ZSgtMTBkZWcpOwogIGRpc3BsYXk6IGlubGluZS1ibG9jazsK
fQoKICA8L3N0eWxlPgo8L2hlYWQ+Cjxib2R5PgogIDxwPkhlcmUgaXMgc29tZSA8c3BhbiBjbGFz
cz0ibGlmdGVkIj5sPC9zcGFuPmlmPHNwYW4gY2xhc3M9ImRyb3BwZWQiPnQ8L3NwYW4+ZWQgdGV4
dDwvcD4KPC9ib2R5Pgo8L2h0bWw+Cg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>95715</attachid>
            <date>2011-06-01 21:12:57 -0700</date>
            <delta_ts>2011-06-01 21:12:57 -0700</delta_ts>
            <desc>Demonstration of isolating characters in inline-block so that transforms can be applied (2)</desc>
            <filename>inline_block_test.html</filename>
            <type>text/html</type>
            <size>529</size>
            <attacher name="Shane Stephens">shanestephens</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgo8aGVhZD4KICA8c3R5bGU+Ci5saWZ0ZWQgewogIC13ZWJr
aXQtdHJhbnNmb3JtOiB0cmFuc2xhdGUoMHB4LCAtMnB4KSByb3RhdGUoMTBkZWcpOwogIGRpc3Bs
YXk6IGlubGluZS1ibG9jazsKfQoKLmRyb3BwZWQgewogIC13ZWJraXQtdHJhbnNmb3JtOiB0cmFu
c2xhdGUoMHB4LCAycHgpIHJvdGF0ZSgtMTBkZWcpOwogIGRpc3BsYXk6IGlubGluZS1ibG9jazsK
fQoKLndvcmQgewogIGRpc3BsYXk6IGlubGluZS1ibG9jazsKfQoKcCB7CiAgd2lkdGg6IDEwMHB4
Owp9CgogIDwvc3R5bGU+CjwvaGVhZD4KPGJvZHk+CiAgPHA+SGVyZSBpcyBzb21lIGxvbmcgdGV4
dCB3aGljaCBjb250YWlucyBzb21lIAogICAgPHNwYW4gY2xhc3M9IndvcmQiPgogICAgICA8c3Bh
biBjbGFzcz0ibGlmdGVkIj5sPC9zcGFuPmlmPHNwYW4gY2xhc3M9ImRyb3BwZWQiPnQ8L3NwYW4+
ZWQ8L3NwYW4+CiAgICA8L3NwYW4+CiAgdGV4dCBhcyBwYXJ0IG9mIHRoZSB3cmFwcGluZzwvcD4K
PC9ib2R5Pgo8L2h0bWw+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>