You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
appearance: slider-vertical should only apply to range inputs
https://bugs.webkit.org/show_bug.cgi?id=250492
rdar://104147398
Reviewed by Tim Nguyen.
`slider-vertical` is a non-standard `appearance` value, maintained as legacy
`-webkit-appearance` behavior. It is not possible to paint `slider-vertical`
without an `<input type=range>`. However, there is currently logic that guards
against attempts to paint `slider-vertical` for non-range input elements, since
the effective appearance is not always adjusted.
Ensure that `slider-vertical` can only be an effective appearance for range
inputs, and replace checks for range inputs with assertions.
* LayoutTests/fast/forms/slider-track-not-input-element-expected.html: Added.
* LayoutTests/fast/forms/slider-track-not-input-element-expected.txt: Removed.
* LayoutTests/fast/forms/slider-track-not-input-element.html:
Updated crash test to be a reference test.
* Source/WebCore/rendering/RenderTheme.cpp:
(WebCore::RenderTheme::adjustAppearanceForElement const):
(WebCore::createSliderTrackPartForRenderer):
Canonical link: https://commits.webkit.org/258924@main
0 commit comments