[Webkit-unassigned] [Bug 70765] Default <select multiple> expands up to 10 items instead of showing 4

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Nov 1 23:51:03 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=70765





--- Comment #10 from Antaryami Pandia <xqb748 at motorola.com>  2011-11-01 23:51:03 PST ---
(In reply to comment #9)
> (From update of attachment 113152 [details])
> It would be easy to make a test that uses offsetHeight to figure out what size the list box is. That test could have plain text results and be cross-platform. New tests that require pixel test results are a lot more work.

I have added the pixel tests, since the change affects visually i.e earlier it used to display 10 option, now it will display options according to the prsence of multiple attr.

Also are you talking of test case which will look like:-
1. With multiple attr and number of options are greater then the default (4)
<select multiple id="sel" >
    <option value="1">One</option>
    ------- ------ ----- ------
</select>
<script>
    var sel = document.getElementById('sel');
    shouldBeTrue('sel.scrollHeight > sel.clientHeight');
</script>
2. With multiple attr and number of options are less then the default (4)
<select multiple id="sel">
    <option value="1">One</option>
    <option value="2">Two</option>
    <option value="3">Three</option>
</select>
<script>
    var sel = document.getElementById('sel');
    shouldBeTrue('sel.scrollHeight == sel.clientHeight');
</script>

I am using clientHeight since it excluded border width.

On some test cases, I have seen usage of value 17 (I think thats the default font size). So can I use it for checking the space when we have less elements than the default.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list