<?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>38617</bug_id>
          
          <creation_ts>2010-05-05 17:51:28 -0700</creation_ts>
          <short_desc>Scientific Notation for z-index prints out different values for Mac and Windows</short_desc>
          <delta_ts>2010-05-05 22:34:14 -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>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Brian Weinstein">bweinstein</reporter>
          <assigned_to name="Steven Lai">s3lance</assigned_to>
          <cc>commit-queue</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>221391</commentid>
    <comment_count>0</comment_count>
    <who name="Brian Weinstein">bweinstein</who>
    <bug_when>2010-05-05 17:51:28 -0700</bug_when>
    <thetext>fast/dom/clone-node-z-index.html fails on Windows - due to differences in how Mac and WIndows print Scientific Notation.

http://build.webkit.org/results/Windows%20Debug%20(Tests)/r58840%20(13147)/fast/dom/clone-node-z-index-pretty-diff.html

On Mac:

zIndex = &quot;2.0002e+07&quot;

On Windows:

zIndex = &quot;2.0002e+007&quot;

There is one extra 0 in the scientific notation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>221404</commentid>
    <comment_count>1</comment_count>
    <who name="Steven Lai">s3lance</who>
    <bug_when>2010-05-05 18:08:51 -0700</bug_when>
    <thetext>
There are several places in existing code that uses &quot;%.6lg&quot; to format numbers in css string.
For example,

WebCore/css/CSSPrimitiveValue.cpp: CSSPrimitiveValue::cssText()
JavascriptCore/wtf/text/WTFString.cpp: WTFString::format(double)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>221416</commentid>
    <comment_count>2</comment_count>
    <who name="Steven Lai">s3lance</who>
    <bug_when>2010-05-05 18:22:11 -0700</bug_when>
    <thetext>
There was a general fix to this problem, the patch does manual number formatting.
1. It avoids cross-platform discrepancies
2. Avoid large integers being formatted as scientific notation. 

http://trac.webkit.org/changeset/49585

But it got rolled out because it broke a website

Please see:
http://trac.webkit.org/changeset/52071
https://bugs.webkit.org/show_bug.cgi?id=32078</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>221426</commentid>
    <comment_count>3</comment_count>
    <who name="Steven Lai">s3lance</who>
    <bug_when>2010-05-05 18:34:03 -0700</bug_when>
    <thetext>Also see:
https://bugs.webkit.org/show_bug.cgi?id=18994

It shows the number formatting could be different on the same platform with different locale. Now, I&apos;m not certain if that could possibly affect scientific notation as well, but from this point of view, we shouldn&apos;t be printing the formatted value in the particular test case because the purpose of the test case is to simply validate that the z-index won&apos;t be lost.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>221442</commentid>
    <comment_count>4</comment_count>
      <attachid>55195</attachid>
    <who name="Steven Lai">s3lance</who>
    <bug_when>2010-05-05 19:34:41 -0700</bug_when>
    <thetext>Created attachment 55195
Patch

Alternative patch to the offending layout test
(so that we don&apos;t risk breaking layout tests on every other platform)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>221509</commentid>
    <comment_count>5</comment_count>
      <attachid>55195</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-05-05 22:34:09 -0700</bug_when>
    <thetext>Comment on attachment 55195
Patch

Clearing flags on attachment: 55195

Committed r58861: &lt;http://trac.webkit.org/changeset/58861&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>221510</commentid>
    <comment_count>6</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-05-05 22:34:14 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>55195</attachid>
            <date>2010-05-05 19:34:41 -0700</date>
            <delta_ts>2010-05-05 22:34:09 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>z-index-layout-test.patch</filename>
            <type>text/plain</type>
            <size>2237</size>
            <attacher name="Steven Lai">s3lance</attacher>
            
              <data encoding="base64">SW5kZXg6IExheW91dFRlc3RzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBMYXlvdXRUZXN0cy9D
aGFuZ2VMb2cJKHJldmlzaW9uIDU4ODU1KQorKysgTGF5b3V0VGVzdHMvQ2hhbmdlTG9nCSh3b3Jr
aW5nIGNvcHkpCkBAIC0xLDMgKzEsMTYgQEAKKzIwMTAtMDUtMDUgIFN0ZXZlbiBMYWkgIDxzdGV2
ZW5fbGFpQGFzaWEuYXBwbGUuY29tPgorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09Q
UyEpLgorCisgICAgICAgIFJlbW92ZSBwbGF0Zm9ybSBzcGVjaWZpYyB0ZXN0IHJlc3VsdAorICAg
ICAgICBEb24ndCBwcmludCB0aGUgZm9ybWF0dGVkIHN0cmluZyBvZiB0aGUgei1pbmRleCBpbiB0
aGUgdGVzdCBjYXNlCisgICAgICAgIHNpbmNlIHRoZXJlJ3MgYSByaXNrIHRoYXQgdGhlIG91dHB1
dCBvbiBkaWZmZXJlbnQgYyBzdGRsaWIgaW1wbGVtZW50YXRpb25zL3BsYXRmb3Jtcy9sb2NhbGUg
Y291bGQgYm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Jl
c2VydmUgei1pbmRleCB3aXRoIG1vcmUgdGhhbiBzaXggZGlnaXQKLQotekluZGV4ID0gIjIuMDAw
MmUrMDA3IgotUEFTUwo=
</data>

          </attachment>
      

    </bug>

</bugzilla>