<?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>126167</bug_id>
          
          <creation_ts>2013-12-23 11:10:18 -0800</creation_ts>
          <short_desc>element width isn&apos;t calculated properly for text-indent values in percentages</short_desc>
          <delta_ts>2022-07-13 17:04:00 -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>525.x (Safari 3.2)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc>http://jsfiddle.net/8UQmN/2/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yair Even Or">vsync.design</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>962520</commentid>
    <comment_count>0</comment_count>
    <who name="Yair Even Or">vsync.design</who>
    <bug_when>2013-12-23 11:10:18 -0800</bug_when>
    <thetext>discussion in Stackoverflow: http://stackoverflow.com/q/20749396/104380
--------------

In the demo above, there should be 2 .wrap boxes, one red and below it a blue one. That should be the correct behavior.

The percentage of the text-indent are not relative to the .wrap containing element width (which is encapsulated by overflow:hidden) but it is relative to the clientWidth as it would seem. any suggestions?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>962532</commentid>
    <comment_count>1</comment_count>
    <who name="Yair Even Or">vsync.design</who>
    <bug_when>2013-12-23 11:42:36 -0800</bug_when>
    <thetext>apparently, this can be resolved using the strange `display: -webkit-box;`</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1883465</commentid>
    <comment_count>2</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-07-13 17:04:00 -0700</bug_when>
    <thetext>Safari, Chrome, and Firefox all agree on rendering for this test case. I don&apos;t believe there is any remaining compatibility issue.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>