<?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>36084</bug_id>
          
          <creation_ts>2010-03-12 21:09:38 -0800</creation_ts>
          <short_desc>baseline of inline-block is not bottom margin edge for overflow other than visible</short_desc>
          <delta_ts>2016-06-08 11:44:12 -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>New Bugs</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>DUPLICATE</resolution>
          <dup_id>157293</dup_id>
          
          <bug_file_loc>https://bugs.webkit.org/attachment.cgi?id=50653</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BlinkMergeCandidate</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>mackyle</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>cbiesinger</cc>
    
    <cc>hyatt</cc>
    
    <cc>mackyle</cc>
    
    <cc>mmaxfield</cc>
    
    <cc>phiw2</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>199297</commentid>
    <comment_count>0</comment_count>
    <who name="">mackyle</who>
    <bug_when>2010-03-12 21:09:38 -0800</bug_when>
    <thetext>CSS2.1 Section 10.8.1

http://www.w3.org/TR/CSS21/visudet.html#propdef-vertical-align

# The baseline of an &apos;inline-block&apos; is the baseline of its last line box in
# the normal flow, unless it has either no in-flow line boxes or if its
# &apos;overflow&apos; property has a computed value other than &apos;visible&apos;, in which
# case the baseline is the bottom margin edge.

1. Nest two inline-block elements with borders in different colors (i.e.
border: 5px solid red and border: 5px solid blue).
2. The outside one should have padding:0
3. The inside one should have margin:0 and overflow:hidden (and use the default vertical-align setting of baseline)
4. Just click on the sample URL for a test case

Actual: The inner border touches the outer border on all four sides.

Expected:  The inner border should touch the outer border everywhere except along the bottom side.  Because the inner inline-block should have had its bottom margin placed on the text baseline of the outer inline-block leaving the space between the text baseline and the bottom border of the outer block empty producing a gap between the inner border and the outer border along the bottom side only.

Firefox and Opera render this correctly with the gap -- view it with one of these browsers to see the gap.

The problem seems to be that WebKit does not implement the quoted part of the specification above which says, &quot;if its &apos;overflow&apos; property has a computed value other than &apos;visible&apos;, in which case the baseline is the bottom margin edge.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>199298</commentid>
    <comment_count>1</comment_count>
      <attachid>50652</attachid>
    <who name="">mackyle</who>
    <bug_when>2010-03-12 21:11:28 -0800</bug_when>
    <thetext>Created attachment 50652
Simple HTML demonstrating bug

View in Firefox to see the correct rendering.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>199319</commentid>
    <comment_count>2</comment_count>
      <attachid>50653</attachid>
    <who name="">mackyle</who>
    <bug_when>2010-03-13 00:07:34 -0800</bug_when>
    <thetext>Created attachment 50653
Better example.  Shows bug and correct and incorrect samples.

This example shows the test displayed by the current browser along with browser independent examples of correct and incorrect rendering.
A &apos;passed&apos; or &apos;failed&apos; indication should also be shown indicating whether or not the test was correctly rendered.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>303730</commentid>
    <comment_count>3</comment_count>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2010-11-02 15:41:30 -0700</bug_when>
    <thetext>Not sure what to do with this bug, since it will be a compatibility issue if we try to fix it.  inline-block is used heavily on OS X with text-overflow/overflow-hidden text, and losing the ability to baseline-align those blocks seems like a flaw in the spec to me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>913765</commentid>
    <comment_count>4</comment_count>
    <who name="Christian Biesinger">cbiesinger</who>
    <bug_when>2013-08-01 09:42:40 -0700</bug_when>
    <thetext>https://codereview.chromium.org/21414002/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1200519</commentid>
    <comment_count>5</comment_count>
    <who name="Myles C. Maxfield">mmaxfield</who>
    <bug_when>2016-06-08 11:44:12 -0700</bug_when>
    <thetext>I wrote an exhaustive description of what is going on here in https://bugs.webkit.org/show_bug.cgi?id=157293#c4

*** This bug has been marked as a duplicate of bug 157293 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>50652</attachid>
            <date>2010-03-12 21:11:28 -0800</date>
            <delta_ts>2010-03-13 00:07:34 -0800</delta_ts>
            <desc>Simple HTML demonstrating bug</desc>
            <filename>simplebug.html</filename>
            <type>text/html</type>
            <size>233</size>
            <attacher>mackyle</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+PGh0bWw+PGJvZHk+CjxkaXYgc3R5bGU9ImRpc3BsYXk6aW5saW5lLWJs
b2NrOyBib3JkZXI6IDVweCBzb2xpZCByZWQ7IHBhZGRpbmc6IDAiPgo8ZGl2IHN0eWxlPSJkaXNw
bGF5OmlubGluZS1ibG9jazsgYm9yZGVyOiA1cHggc29saWQgYmx1ZTsgb3ZlcmZsb3c6IGhpZGRl
bjsgbWFyZ2luOiAwIj4KSSBuZWVkIGEgcGlnIGhlcmUhCjwvZGl2PjwvZGl2Pgo8L2JvZHk+PC9o
dG1sPgo=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>50653</attachid>
            <date>2010-03-13 00:07:34 -0800</date>
            <delta_ts>2010-03-13 00:07:34 -0800</delta_ts>
            <desc>Better example.  Shows bug and correct and incorrect samples.</desc>
            <filename>simplebug.html</filename>
            <type>text/html</type>
            <size>2791</size>
            <attacher>mackyle</attacher>
            
              <data encoding="base64">PCFET0NUWV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