Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misleading or old information about the styling of the <option> element across different browsers  #26182

Closed
Junaid-1993 opened this issue Apr 13, 2023 · 1 comment
Labels
Content:Learn:Forms Learning area Forms docs

Comments

@Junaid-1993
Copy link

MDN URL

https://developer.mozilla.org/en-US/docs/Learn/Forms/Advanced_form_styling

What specific section or headline is this issue about?

Selects and datalists

What information was incorrect, unhelpful, or incomplete?

In this section the article explains two problems relating to styling the <select> and <datalists> elements. In the second problem, the article says:

The second, slightly more major issue is that you don't have control over the box that appears containing the options when you click on the <select> box to open it. You'll notice that the options don't inherit the font set on the parent.

The last line says the <option> element doesn't inherit the font set from the parent. Maybe this happens on older browsers but when I checked both on Firefox and Chrome <option> is inheriting the font from its parent so this line is not correct anymore in the paragraph. On the next line, it says:

You also can't consistently set things like spacing and colors. For example, Firefox will apply color and background-color when set on the <option> elements, but Chrome won't.

I checked on Chrome it also applies the color and background color properties so this statement that Chrome won't apply these properties does not make any sense because Chrome also applies these properties as well.

What did you expect to see?

Maybe change this paragraph so that it does not create confusion between the old and modern browser's capabilities.

Do you have any supporting links, references, or citations?

No response

Do you have anything more you want to share?

No response

MDN metadata

Page report details
@Junaid-1993 Junaid-1993 added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Apr 13, 2023
@github-actions github-actions bot added Content:CSS Cascading Style Sheets docs Content:Learn:Forms Learning area Forms docs and removed Content:CSS Cascading Style Sheets docs Content:Learn:Forms Learning area Forms docs labels Apr 13, 2023
@Junaid-1993 Junaid-1993 changed the title Misleading or old information about styling the <option> element on different browsers Misleading or old information about the styling of the <option> element across different browsers  Apr 13, 2023
@Josh-Cena
Copy link
Member

Should be fixed by #26538

@Josh-Cena Josh-Cena added Content:Learn:Forms Learning area Forms docs and removed needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels May 20, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Content:Learn:Forms Learning area Forms docs
Projects
None yet
Development

No branches or pull requests

2 participants