| Summary: | Layout Test fast/forms/listbox-visible-size.html is failing | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Brent Fulgham <bfulgham> |
| Component: | Tools / Tests | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW --- | ||
| Severity: | Normal | CC: | chavarria1991, simon.fraser |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=143703 | ||
| Bug Depends on: | 143649 | ||
| Bug Blocks: | |||
|
Description
Brent Fulgham
2015-04-14 16:34:44 PDT
Test skipped on Windows in r182818. <https://trac.webkit.org/changeset/182818>. *** Bug 143703 has been marked as a duplicate of this bug. *** The reason is that WebKit (at least WebKitGtk) only renders complete rows so if you want to scroll to the middle of two rows it move to the next position.
In addition the JS code from this test is wrong IMHO:
const targetTop = 28;
var select;
function scrollSelect(newTop)
{
var select = document.getElementById('select');
select.scrollTop = newTop;
}
scrollSelect(targetTop);
shouldBe('select.scrollTop', 'targetTop');
The select that is declared on line 2 should be undefined on the last line (but it isn't) the select on line 5 is a local variable of scrollSelect function and it should not affect to the extern value (but it does). This is the behaviour of Firefox and Chrome.
|