Bug 52937 - input[type=range] should render vertically or horizontally in response to specified dimensions, not -webkit-appearance property
Summary: input[type=range] should render vertically or horizontally in response to spe...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on: 44907
Blocks:
  Show dependency treegraph
 
Reported: 2011-01-21 16:27 PST by Dimitri Glazkov (Google)
Modified: 2011-09-06 14:39 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dimitri Glazkov (Google) 2011-01-21 16:27:41 PST
Today, we use -webkit-appearance: slider-horizonal to render a horizontal slider and -webkit-appearance: slider-vertical to render a vertical slider. HTML spec suggests we should just automatically pick the appropriate orientation based on specified dimensions: http://www.whatwg.org/specs/web-apps/current-work/multipage/number-state.html#range-state

This would also allow us to get rid of hard-coding the appearance cascade and an extra custom renderer we have in SliderThumbElement:

http://google.com/codesearch/p#OAMlx_jo-ck/src/third_party/WebKit/Source/WebCore/html/shadow/SliderThumbElement.cpp&l=61
Comment 1 Radar WebKit Bug Importer 2011-09-06 14:39:21 PDT
<rdar://problem/10081055>