<?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>5160</bug_id>
          
          <creation_ts>2005-09-27 22:26:19 -0700</creation_ts>
          <short_desc>REGRESSION: text inside inline-block DIV changes the DIV&apos;s baseline for vertical-align:baseline</short_desc>
          <delta_ts>2006-12-15 11:26:01 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Layout and Rendering</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar, Regression</keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>mitz</reporter>
          <assigned_to name="Dave Hyatt">hyatt</assigned_to>
          <cc>alice.barraclough</cc>
    
    <cc>darin</cc>
    
    <cc>ian</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>20710</commentid>
    <comment_count>0</comment_count>
    <who name="">mitz</who>
    <bug_when>2005-09-27 22:26:19 -0700</bug_when>
    <thetext>Summary: When vertical-align:baseline is used, a DIV with display:inline-block containing text behaves 
like it has a baseline, which is the baseline of one of its contained inline boxes. It should behave like the 
DIV&apos;s bottom is its baseline.

To reproduce: open the testcase.

Expected: The red shapes to be identical to the green shape.

Actual: In the second case, the first lines of contained text are aligned with each other and with the 
bottom of the DIVs not containing text. In the third case, the last lines of contained text are aligned with 
each other and with the bottom of the DIVs not containing text.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20711</commentid>
    <comment_count>1</comment_count>
      <attachid>4075</attachid>
    <who name="">mitz</who>
    <bug_when>2005-09-27 22:26:58 -0700</bug_when>
    <thetext>Created attachment 4075
testcase</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20712</commentid>
    <comment_count>2</comment_count>
    <who name="">mitz</who>
    <bug_when>2005-09-27 23:04:19 -0700</bug_when>
    <thetext>This is a regression from the last released version.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20750</commentid>
    <comment_count>3</comment_count>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2005-09-28 11:17:30 -0700</bug_when>
    <thetext>See:

http://www.w3.org/TR/CSS21/visudet.html

Scroll to the very bottom of that document:

&quot;A UA should use the baseline of the last line box in the normal flow in the element as the baseline of 
an &apos;inline-block&apos;, or the element&apos;s bottom margin edge, if there is none.&quot;

I made this change deliberately to be compliant with this part of the spec (despite the spec being 
pathetically ambiguous and not addressing what to do if the inline block has overflow or the line is 
outside its bounds, etc.).
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20754</commentid>
    <comment_count>4</comment_count>
    <who name="">mitz</who>
    <bug_when>2005-09-28 11:33:16 -0700</bug_when>
    <thetext>Heh, I spent an hour staring at the part of the spec just above the last 2 paragraphs, wondering if this was 
a deliberate change or a regression, before opening this bug. I&apos;m not sure why you didn&apos;t close it (perhaps 
because in the middle case it uses the first line rather than the last?).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20850</commentid>
    <comment_count>5</comment_count>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2005-09-28 14:07:04 -0700</bug_when>
    <thetext>I didn&apos;t close it because it&apos;s kind of an issue.  For example, several Dashboard widgets have been broken 
by this change, despite being in strict mode.  We&apos;re going to have to figure something out.

Note this change was necessary for the new button controls, which are inline blocks that need to properly 
support baseline alignment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26960</commentid>
    <comment_count>6</comment_count>
      <attachid>4075</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2005-12-28 01:44:58 -0800</bug_when>
    <thetext>Comment on attachment 4075
testcase

I&apos;m marking this test case for review.	The bug seems to be already fixed. 
This test case might still be useful however.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27019</commentid>
    <comment_count>7</comment_count>
    <who name="Joost de Valk (AlthA)">joost</who>
    <bug_when>2005-12-28 07:11:24 -0800</bug_when>
    <thetext>The bug is definitly not fixed for me...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27037</commentid>
    <comment_count>8</comment_count>
      <attachid>4075</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2005-12-28 10:38:15 -0800</bug_when>
    <thetext>Comment on attachment 4075
testcase

It&apos;s fine to land this test case, but marking it as review+ is going to
misleadingly put this bug into the &quot;needs commit&quot; query.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27217</commentid>
    <comment_count>9</comment_count>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2005-12-30 00:25:31 -0800</bug_when>
    <thetext>The test case doesn&apos;t look the way it is describes itself in TOT. While landing a test that documents our 
inline block behavior seems good, we should probably have one that describes our current result as the 
correct one, if we think it is correct.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28170</commentid>
    <comment_count>10</comment_count>
    <who name="Alice Liu">alice.barraclough</who>
    <bug_when>2006-01-10 10:35:32 -0800</bug_when>
    <thetext>&lt;rdar://problem/4404322&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28364</commentid>
    <comment_count>11</comment_count>
      <attachid>4075</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2006-01-13 08:55:00 -0800</bug_when>
    <thetext>Comment on attachment 4075
testcase

Given Maciej&apos;s comments, I&apos;m setting the patch to review-.

We can land a test for this if we revise it to no longer be misleading.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29348</commentid>
    <comment_count>12</comment_count>
    <who name="Joost de Valk (AlthA)">joost</who>
    <bug_when>2006-01-22 04:35:22 -0800</bug_when>
    <thetext>Adding Regression keyword.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41971</commentid>
    <comment_count>13</comment_count>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2006-12-14 22:45:04 -0800</bug_when>
    <thetext>We&apos;re keeping this new behavior.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41928</commentid>
    <comment_count>14</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2006-12-15 11:25:36 -0800</bug_when>
    <thetext>Changing resolution from FIXED to more appropriate one.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>4075</attachid>
            <date>2005-09-27 22:26:58 -0700</date>
            <delta_ts>2006-01-13 08:55:00 -0800</delta_ts>
            <desc>testcase</desc>
            <filename>inlineBlocks.html</filename>
            <type>text/html</type>
            <size>1912</size>
            <attacher>mitz</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMDEgVHJhbnNpdGlvbmFs
Ly9FTiIgCiJodHRwOi8vd3d3LnczLm9yZy9UUi9odG1sNC9sb29zZS5kdGQiPgo8aHRtbD4NCjxo
ZWFkPg0KPFRJVExFPmlubGluZSBibG9ja3M8L1RJVExFPgo8L0hFQUQ+DQo8Qk9EWT4KPHA+VGhl
IHJlZCBzaGFwZXMgc2hvdWxkIGJlIGlkZW50aWNhbCB0byB0aGUgZ3JlZW4gc2hhcGUuPC9wPgo8
cD52ZXJ0aWNhbC1hbGlnbjpib3R0b208L3A+CjxkaXYgc3R5bGU9InZlcnRpY2FsLWFsaWduOmJv
dHRvbTsgZGlzcGxheTppbmxpbmUtYmxvY2s7IGhlaWdodDoxMDBweDsgYmFja2dyb3VuZDpncmVl
bjsgd2lkdGg6NTBweDsiPkp1c3QgYSBmZXcgd29yZHM8L2Rpdj48ZGl2IH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"
          setter="darin"
    />
          </attachment>
      

    </bug>

</bugzilla>