Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RenderListBox::setScrollTop should allow out-of-range values but clam…
…p them https://bugs.webkit.org/show_bug.cgi?id=248327 rdar://102656180 Reviewed by Cameron McCormack. The CSSOM View spec allows out-of-range values when scrolling, but it requires clamping: https://w3c.github.io/csswg-drafts/cssom-view/#scroll-an-element * LayoutTests/imported/w3c/web-platform-tests/css/css-writing-modes/forms/select-multiple-scrolling.optional-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/css-writing-modes/forms/select-size-scrolling-and-sizing.optional-expected.txt: * LayoutTests/platform/gtk/TestExpectations: * Source/WebCore/rendering/RenderListBox.cpp: (WebCore::RenderListBox::setScrollTop): Canonical link: https://commits.webkit.org/257012@main
- Loading branch information
Showing
4 changed files
with
5 additions
and
6 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...latform-tests/css/css-writing-modes/forms/select-multiple-scrolling.optional-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
|
||
|
||
FAIL select[multiple][style="writing-mode: horizontal-tb"] scrolls correctly assert_equals: Setting scrollTop to a negative value of the list does not work for writing-mode: horizontal-tb expected 0 but got 98 | ||
PASS select[multiple][style="writing-mode: horizontal-tb"] scrolls correctly | ||
FAIL select[multiple][style="writing-mode: vertical-lr"] scrolls correctly assert_true: select should be scrollable in block axis expected true got false | ||
FAIL select[multiple][style="writing-mode: vertical-rl"] scrolls correctly assert_true: select should be scrollable in block axis expected true got false | ||
|
2 changes: 1 addition & 1 deletion
2
...-tests/css/css-writing-modes/forms/select-size-scrolling-and-sizing.optional-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters