Open Bug 979455 Opened 10 years ago Updated 2 years ago

Appearance of input of type=range changes unexpectedly when styled with border

Categories

(Core :: Layout: Form Controls, defect, P5)

27 Branch
x86_64
All
defect

Tracking

()

UNCONFIRMED

People

(Reporter: bugzzilla, Unassigned)

Details

(Keywords: testcase, Whiteboard: DUPEME[bugday-20140310])

Attachments

(4 files)

Attached file Test case
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0 (Beta/Release)
Build ID: 20140212131424

Steps to reproduce:

Applied CSS style to input element of type=range. The only property that was changed is "border". The property value is "medium none", which is also the default value for the element according to forms.css. So nothing of the element's style was actually changed.


Actual results:

Appearance of element changes completely and unexpectedly. Without style it's a shadow'ed line with a pointed knob, with style it's a solid line with a rounded knob.


Expected results:

Only applied style should change.
Component: Untriaged → Layout: Form Controls
OS: Windows 7 → All
Product: Firefox → Core
Summary: Appearance of input of type=range changes unexpectedly when styled → Appearance of input of type=range changes unexpectedly when styled with border
Whiteboard: [bugday-20140310]
Isn't this the standard thing where once you change parts of the control that the OS theme engine draws we can no longer use the OS theme engine to paint the control and have to fall back to painting it ourselves?  How similar that looks to the OS theme rendering will then depend on the exact OS theme you use and whatnot.
Whiteboard: [bugday-20140310] → DUPEME[bugday-20140310]
Yes. Although since the native themes don't draw a border for range controls, we could probably make an exception for range.
The border was just an example. For other properties, e.g. the background color, I would expect the same, i.e. only the background color should change, and not everything else, too.
Severity: normal → minor
Keywords: testcase
Priority: -- → P5
Attached file Test case 2
This test case is applying background-color property to input type=range.
This is a screenshot of test case 2 (Firefox/42.0 on Windows 10 x86-64).
Severity: minor → S4
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: