-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ignore ::-webkit-scrollbar styles when scrollbar-width is not auto #14440
Ignore ::-webkit-scrollbar styles when scrollbar-width is not auto #14440
Conversation
WPT PR web-platform-tests/wpt#40276 |
LayoutTests/imported/w3c/web-platform-tests/css/css-scrollbars/scrollbar-color-001.html
Show resolved
Hide resolved
EWS run on previous version of this PR (hash 41d5013)
|
41d5013
to
d35e969
Compare
EWS run on previous version of this PR (hash d35e969) |
d35e969
to
611dbab
Compare
EWS run on previous version of this PR (hash 611dbab) |
EWS run on previous version of this PR (hash 8fa8319) |
Just putting what I put in slack here WRT this behaviour choice: This is the behaviour Chrome has gone for in its experimental implementation so I've matched that for interop reasons. Iirc the Without |
LayoutTests/imported/w3c/web-platform-tests/css/css-scrollbars/scrollbar-color-001-expected.txt
Outdated
Show resolved
Hide resolved
8fa8319
to
40ac705
Compare
EWS run on previous version of this PR (hash 40ac705) |
40ac705
to
3475ee2
Compare
EWS run on current version of this PR (hash 3475ee2) |
https://bugs.webkit.org/show_bug.cgi?id=257052 Reviewed by Tim Nguyen and Simon Fraser. RenderStyle::hasCustomScrollbarStyle() returns true if a custom style for the scrollbar has been set via ::-webkit-scrollbar and the value of scrollbar-width is auto (default). This replaces usages of hasPseudoStyle(PseudoId::Scrollbar) so the standard properties for styling scrollbars take precedence over the non-standard. WPT tests are included. * LayoutTests/imported/w3c/web-platform-tests/css/css-scrollbars/scrollbar-color-001-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-scrollbars/scrollbar-color-001.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-scrollbars/scrollbar-color-002-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-scrollbars/scrollbar-color-002.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-scrollbars/scrollbar-color-003-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-scrollbars/scrollbar-color-003.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-scrollbars/scrollbar-color-004-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-scrollbars/scrollbar-color-004.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-scrollbars/scrollbar-color-005-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-scrollbars/scrollbar-color-005.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-scrollbars/scrollbar-width-010-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-scrollbars/scrollbar-width-010.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-scrollbars/scrollbar-width-011-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-scrollbars/scrollbar-width-011.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-scrollbars/scrollbar-width-012-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-scrollbars/scrollbar-width-012.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-scrollbars/scrollbar-width-013-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-scrollbars/scrollbar-width-013.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-scrollbars/scrollbar-width-014-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-scrollbars/scrollbar-width-014.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-scrollbars/scrollbar-width-015-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-scrollbars/scrollbar-width-015.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-scrollbars/scrollbar-width-016-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-scrollbars/scrollbar-width-016.html: Added. * LayoutTests/platform/ios-wk2/TestExpectations: * LayoutTests/platform/mac-wk1/TestExpectations: * Source/WebCore/page/LocalFrameView.cpp: (WebCore::LocalFrameView::rootElementForCustomScrollbarPartStyle const): (WebCore::LocalFrameView::createScrollbar): (WebCore::LocalFrameView::canShowNonOverlayScrollbars const): (WebCore::LocalFrameView::styleHidesScrollbarWithOrientation const): * Source/WebCore/page/LocalFrameView.h: * Source/WebCore/rendering/RenderBox.cpp: (WebCore::RenderBox::canUseOverlayScrollbars const): * Source/WebCore/rendering/RenderLayerScrollableArea.cpp: (WebCore::RenderLayerScrollableArea::createScrollbar): * Source/WebCore/rendering/RenderListBox.cpp: (WebCore::RenderListBox::createScrollbar): * Source/WebCore/rendering/RenderMenuList.cpp: (RenderMenuList::createScrollbar): * Source/WebCore/rendering/RenderSearchField.cpp: (WebCore::RenderSearchField::createScrollbar): * Source/WebCore/rendering/style/RenderStyle.h: * Source/WebCore/rendering/style/RenderStyleInlines.h: (WebCore::RenderStyle::hasCustomScrollbarStyle const): Canonical link: https://commits.webkit.org/265129@main
3475ee2
to
9649486
Compare
Committed 265129@main (9649486): https://commits.webkit.org/265129@main Reviewed commits have been landed. Closing PR #14440 and removing active labels. |
9649486
3475ee2