Closed Bug 1405085 Opened 7 years ago Closed 2 years ago

select elements lose native appearance under certain conditions

Categories

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

57 Branch
defect

Tracking

()

RESOLVED WORKSFORME
Tracking Status
firefox57 --- wontfix

People

(Reporter: staleydyla.n, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(4 files)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:57.0) Gecko/20100101 Firefox/57.0
Build ID: 20170925150345

Steps to reproduce:

Visit facebook.com while logged out.


Actual results:

<select> elements are rendered using a non-native appearance.


Expected results:

<select> elements should be rendered in a similar manner to Chrome and Safari
Component: Untriaged → Layout: Form Controls
Product: Firefox → Core
The <select> controls seem to be styled to look that way on Firefox. Compare to the same controls with default styling here:

http://media.junglecode.net/test/1405085/test.html
This site depends on -webkit-appearance:menulist-button;
Status: UNCONFIRMED → NEW
Depends on: 1368555
Ever confirmed: true
Priority: -- → P3
Probably something related 
https://webcompat/issues/10773

See https://codepen.io/webcompat/pen/dVZGxG

Select once styled is quite ugly compared to other platforms.
This also occurs when you apply a border-radius to a <select> element, so I'm not sure -webkit-appearance is the root cause.
So in Gecko we don't draw native theme border/background when there are author-level styles of border or background properties.   So there are potentially a few issues here:
 * do other browsers do similar, but then not do that if there's also an author-level appearance/-webkit-appearance declaration?
 * do we need to update our non-native-theme select styles to look more like those in other browsers?
 * do we need to add support for another -webkit-appearance value here?
About David Baron first question:

>  * do other browsers do similar, but then not do that 
>    if there's also an author-level appearance/-webkit-appearance 
>    declaration?


They do draw the widget and the content. Firefox behaves differently.
(This was tested in the latest version of each desktop browser on macos as of this date)

If someone could test Edge, that would be greatly appreciated.
https://codepen.io/webcompat/pen/rGQYae


> * do we need to update our non-native-theme select styles 
>   to look more like those in other browsers?

There are differences in between Chrome and Safari, but these differences are less striking than in Firefox. So probably yes, not necessary copy entirely but get closer.

> * do we need to add support for another -webkit-appearance value here?

This is probably Bug 1368555
Attached image edge.png
(In reply to Karl Dubost :karlcow from comment #7)
> If someone could test Edge, that would be greatly appreciated.
> https://codepen.io/webcompat/pen/rGQYae

Here's what they look like on Edge 15 on the Quantum reference hardware.
https://webcompat.com/issues/13311
is probably something related to this issue. 

And it creates a webcompat issue with Chrome. 

(footnote Pale Fire style: The rendering is also far to be nice in Safari too. They seem to have tested only in Chrome. Still the behavior of Chrome is more consistent with what someone could expect.)
Webcompat Priority: --- → ?

The linked webcompat bugs don't seem to be reproducible, so let's close this.

Status: NEW → RESOLVED
Closed: 2 years ago
Webcompat Priority: ? → ---
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: