What's wrong with the dropdown menus? Topic is solved

For support with specific websites

Moderator: trava90

Forum rules
Please always mention the name/domain of the website in question in your topic title.
Please one website per topic thread (to help keep things organized). While behavior on different sites might at first glance seem similar, they are not necessarily caused by the same.

Please try to include any relevant output from the Toolkit Error Console or the Developer Tools Web Console using the following procedure:
  1. Clear any current output
  2. Navigate or refresh the page in question
  3. Copy and paste Errors or seemingly relevant Warnings into a single [ code ] block.
[ghost]

What's wrong with the dropdown menus?

Post by [ghost] » 2020-08-10, 00:22

The dropdown menus on this page look a little bit weird on Pale Moon vs Firefox. What's causing this issue?
dropdownonfirefox.png
dropdownpalemoon.png
You do not have the required permissions to view the files attached to this post.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 38398
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: What's wrong with the dropdown menus?

Post by Moonchild » 2020-08-10, 05:55

To quote someone:
"The select element is part of the operating system, not the browser chrome. Therefore, it is very unreliable to style, and it does not necessarily make sense to try anyway."
If you still want to try anyway, using just CSS, then you have to make sure you add specific CSS rules to disable the standard appearance:

Code: Select all

-moz-appearance: none;
-webkit-appearance:none;
appearance:none; 
which should work in all current versions of all browsers (except maybe MSIE?).

I don't know what WordPress uses to style these drop-downs but I'm guessing they are missing some of these rules.
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

[ghost]

Re: What's wrong with the dropdown menus?

Post by [ghost] » 2020-08-10, 18:17

Moonchild wrote:
2020-08-10, 05:55
To quote someone:
"The select element is part of the operating system, not the browser chrome. Therefore, it is very unreliable to style, and it does not necessarily make sense to try anyway."
If you still want to try anyway, using just CSS, then you have to make sure you add specific CSS rules to disable the standard appearance:

Code: Select all

-moz-appearance: none;
-webkit-appearance:none;
appearance:none; 
which should work in all current versions of all browsers (except maybe MSIE?).

I don't know what WordPress uses to style these drop-downs but I'm guessing they are missing some of these rules.
OK, thank you!

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 38398
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: What's wrong with the dropdown menus?

Post by Moonchild » 2020-08-10, 18:23

Off-topic:
Please don't quote the message if you are directly responding to it in the next post.
As a follow-up, it's likely that WordPress is only using the -webkit- prefixed one, because Edge and Firefox are accepting this Blink-specific keyword as aliases (so it would work on them only using -webkit-* and not stating -moz-*). I've made a change in UXP to follow suit for web compatibility reasons, although I personally think this kind of thing should never be done for vendor-prefixed keywords.
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite