<?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>42136</bug_id>
          
          <creation_ts>2010-07-12 21:19:55 -0700</creation_ts>
          <short_desc>Windows: crash with text-rendering: optimizeLegibility; and margin specified in &apos;ex&apos;.</short_desc>
          <delta_ts>2010-07-13 18:34:53 -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>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>41585</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Philippe Wittenbergh">phiw2</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>mitz</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>250280</commentid>
    <comment_count>0</comment_count>
      <attachid>61319</attachid>
    <who name="Philippe Wittenbergh">phiw2</who>
    <bug_when>2010-07-12 21:19:55 -0700</bug_when>
    <thetext>Created attachment 61319
test case that crashes

Specifying &apos;text-rendering: optimizeLegibility;&apos; on a block-level element (&lt;p&gt;) causes Safari 5 to crash when the block element has margins specified with the &apos;ex&apos; unit.

Like this:
p, dt, dd, li {text-rendering: optimizeLegibility;}
p {margin: .5ex 0 0;}

If &apos;text-rendering: optimizeLegibility;&apos; is specified on the root element or the parent block, the crash doesn&apos;t happen. This has been repro&apos;d on XP and Vista.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>250282</commentid>
    <comment_count>1</comment_count>
    <who name="Philippe Wittenbergh">phiw2</who>
    <bug_when>2010-07-12 21:24:03 -0700</bug_when>
    <thetext>Hmm, while attaching the test case (using OS X 10.6.4), QuickLook crashed while trying to preview the testcase (in the file selector dialog).

0   com.apple.WebCore             	0x00007fff83397248 WebCore::CSSPrimitiveValue::computeLengthDouble(WebCore::RenderStyle*, WebCore::RenderStyle*, double, bool) + 376
1   com.apple.WebCore             	0x00007fff8339707b WebCore::CSSPrimitiveValue::computeLengthIntForLength(WebCore::RenderStyle*, WebCore::RenderStyle*, double) + 11
2   com.apple.WebCore             	0x00007fff8331d4ab WebCore::CSSStyleSelector::applyProperty(int, WebCore::CSSValue*) + 34811
3   com.apple.WebCore             	0x00007fff8333118b void WebCore::CSSStyleSelector::applyDeclarations&lt;false&gt;(bool, int, int) + 171
4   com.apple.WebCore             	0x00007fff83313634 WebCore::CSSStyleSelector::styleForElement(WebCore::Element*, WebCore::RenderStyle*, bool, bool, bool) + 2644
5   com.apple.WebCore             	0x00007fff832ff902 WebCore::Node::styleForRenderer() + 82
6   com.apple.WebCore             	0x00007fff832ff77f WebCore::Node::createRendererIfNeeded() + 143
7   com.apple.WebCore             	0x00007fff832ff600 WebCore::Element::attach() + 32</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>250844</commentid>
    <comment_count>2</comment_count>
    <who name="Philippe Wittenbergh">phiw2</who>
    <bug_when>2010-07-13 17:20:14 -0700</bug_when>
    <thetext>1. I reported comment 1 as rdar://8183959

2. various people have commented to me that this also crashes Safari 5 on OS X and Chrome5 on Linux.

3. latest webkit builds appear imune to this crash (OS X 10.6.4 &amp; Win 7)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>250898</commentid>
    <comment_count>3</comment_count>
    <who name="">mitz</who>
    <bug_when>2010-07-13 18:34:53 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 41585 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>61319</attachid>
            <date>2010-07-12 21:19:55 -0700</date>
            <delta_ts>2010-07-12 21:19:55 -0700</delta_ts>
            <desc>test case that crashes</desc>
            <filename>c.html</filename>
            <type>text/html</type>
            <size>551</size>
            <attacher name="Philippe Wittenbergh">phiw2</attacher>
            
              <data encoding="base64">PCFkb2N0eXBlIGh0bWw+CjxodG1sIGxhbmc9ImVuIj4KPGhlYWQ+CjxtZXRhIGNoYXJzZXQ9InV0
Zi04Ij4KPHRpdGxlPnRlc3Q6IGNyYXNoIHdpdGggb3B0aW1pemVMZWdpYmlsaXR5PC90aXRsZT4K
CjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+Cmh0bWwgewoJY29sb3I6IHJnYigxMCwxMCwxMCk7Cglt
YXJnaW46IDA7CgliYWNrZ3JvdW5kOiByZ2IoMjMwLDIzMCwyMzApOwoJfQoKcCwgZHQsIGRkLCBs
aSB7dGV4dC1yZW5kZXJpbmc6IG9wdGltaXplTGVnaWJpbGl0eTt9CgpwIHttYXJnaW46IC41ZXgg
MCAwO30KCjwvc3R5bGU+Cgo8L2hlYWQ+Cgo8Ym9keT4KPHA+TG9yZW0gaXBzdW0gZG9sb3Igc2l0
IGFtZXQsIGNvbnNlY3RldHVlciBhZGlwaXNjaW5nIGVsaXQuIE51bGxhIGVnZXN0YXMuIEludGVn
ZXIgdWxsYW1jb3JwZXIuPC9wPgoKPGhyPgoKPHVsPjxsaT5bIDxzcGFuPmFib3V0IHNvbWV0aGlu
Zzwvc3Bhbj4gXTwvbGk+PGxpPlsgZGVzaWducG9ydGZvbGlvIOKAlCDjg5vjg7zjg6Djg5rjg7zj
grjliLbkvZwgXTwvbGk+PC91bD4KCgo8L2JvZHk+CjwvaHRtbD4=
</data>

          </attachment>
      

    </bug>

</bugzilla>