Changeset 53820 in webkit


Ignore:
Timestamp:
Jan 25, 2010 3:52:43 PM (14 years ago)
Author:
eric@webkit.org
Message:

2010-01-25 Kent Tamura <tkent@chromium.org>

Reviewed by Darin Adler.

Improve portability of select-item-background-clip.html
https://bugs.webkit.org/show_bug.cgi?id=34072

  • fast/forms/select-item-background-clip.html: Calculate the pixel height at runtime.
Location:
trunk/LayoutTests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r53816 r53820  
     12010-01-25  Kent Tamura  <tkent@chromium.org>
     2
     3        Reviewed by Darin Adler.
     4
     5        Improve portability of select-item-background-clip.html
     6        https://bugs.webkit.org/show_bug.cgi?id=34072
     7
     8        * fast/forms/select-item-background-clip.html:
     9          Calculate the pixel height at runtime.
     10
    1112010-01-25  Dimitri Glazkov  <dglazkov@chromium.org>
    212
  • trunk/LayoutTests/fast/forms/select-item-background-clip.html

    r25788 r53820  
    88        REGRESSSION (NativeListBox): Selected option's background is not clipped to the list box</i>.
    99    </p>
    10     <select size="4" style="height: 58px; border: 3px solid blue; padding: 3px;">
     10    <select size="4" style="border: 3px solid blue; padding: 3px;" id="sel">
    1111        <option>one</option>
    1212        <option>two</option>
     
    1414        <option style="background-color: purple;">four</option>
    1515    </select>
    16 </body>
     16<script>
     17var sel = document.getElementById('sel');
     18var itemHeight = (sel.offsetHeight - 11) / sel.size;
     19sel.style.height = (11 + itemHeight * 3 + 5) + 'px';
     20</script></body>
    1721</html>
Note: See TracChangeset for help on using the changeset viewer.