<?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>39306</bug_id>
          
          <creation_ts>2010-05-18 12:08:38 -0700</creation_ts>
          <short_desc>vertical-align is ignored for inline-blocks containing line-boxes</short_desc>
          <delta_ts>2022-07-11 17:14:38 -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>Mac (Intel)</rep_platform>
          <op_sys>OS X 10.6</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc>http://arther.net/lab/webkit-vertical-align-test.html#test</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter>sean-webkit</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>drew.covi</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>227416</commentid>
    <comment_count>0</comment_count>
    <who name="">sean-webkit</who>
    <bug_when>2010-05-18 12:08:38 -0700</bug_when>
    <thetext>When Webkit encounters an inline-block where...

   1. the line-height height is explicitly specified
   2. the content is rendered using multiple line-boxes

...the inline-block element ignores the specified vertical-align.  I&apos;ve linked to my test case to help illustrate the problem.
http://arther.net/lab/webkit-vertical-align-test.html#test



To Reproduce:

   1. Create a block-level element
   2. Create a inline-block element as a child of the block created in Step 1.
   3. Set the `vertical-align` of the inline-block to &quot;middle&quot;
   4. Fill the inline-block with enough content so that the inline-box for that content extends horizontally beyond bounds of the containing block-level element
   5. Set the `line-height` of the inline-block.  Use a value smaller than the `line-height` value of the containing block.



Actual Results:

   The vertical-align property of the inline-block is ignored.



Expected Results:

   The inline-block treats `vertical-align` in the same manner as other inline elements


Tested on 2010-05-18 in Mac OS 10.6 using Safari 4.0.5 (6531.22.7) and Google Chrome 5.0.375.38 beta</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>317060</commentid>
    <comment_count>1</comment_count>
    <who name="drew">drew.covi</who>
    <bug_when>2010-12-03 14:36:27 -0800</bug_when>
    <thetext>just ran into this bug, and can confirm that it does happen as described. ironically, adding a single non-breaking space as a sibling to the inline-block item will correct this behavior.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1882275</commentid>
    <comment_count>2</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-07-11 17:14:38 -0700</bug_when>
    <thetext>The relevant website no longer exists.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>