-
Notifications
You must be signed in to change notification settings - Fork 2k
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
css.properties.display - none not working on Safari for iOS #24247
Comments
This issue was automatically closed because the title was left as the default, and a summary was not added. If this is not a spam issue, please replace the |
title updated |
This PR adds the missing `none.option_is_hidden` member of the `display` CSS property. The data comes from manual testing, running test code through BrowserStack, SauceLabs, custom VMs and/or locally. Test Code: ```html <style id="test-style"> #hidden { display: none; } </style> <select> <option>One</option> <option id="hidden">Two</option> <option>Three</option> </select> ``` Additional Notes: This fixes mdn#24247.
Reproduced locally with Safari 18.0 and this example. |
) * Add missing css.properties.display.none.option_is_hidden feature This PR adds the missing `none.option_is_hidden` member of the `display` CSS property. The data comes from manual testing, running test code through BrowserStack, SauceLabs, custom VMs and/or locally. Test Code: ```html <style id="test-style"> #hidden { display: none; } </style> <select> <option>One</option> <option id="hidden">Two</option> <option>Three</option> </select> ``` Additional Notes: This fixes #24247. * Update css/properties/display.json Co-authored-by: Claas Augner <495429+caugner@users.noreply.github.com> --------- Co-authored-by: Claas Augner <495429+caugner@users.noreply.github.com>
What type of issue is this?
Missing compatibility data
What information was incorrect, unhelpful, or incomplete?
The CSS
display:none
is said fully supported on Safari for iOS while it doesn't work on<option>
HTML elementWhat browsers does this problem apply to, if applicable?
Safari
What did you expect to see?
With
<option style="display:none">
, I was expecting to not see the option.But the option is displayed on Safari for iOS.
Did you test this? If so, how?
I displayed an html page with a
<select>
with<option>
s, one having thestyle="display:none"
attribute.Can you link to any release notes, bugs, pull requests, or MDN pages related to this?
https://developer.mozilla.org/fr/docs/Web/CSS/display#compatibilit%C3%A9_des_navigateurs
https://stackoverflow.com/questions/4398966/how-can-i-hide-select-options-with-javascript-cross-browser
Do you have anything more you want to share?
No response
MDN URL
https://developer.mozilla.org/fr/docs/Web/CSS/display
MDN metadata
MDN page report details
css.properties.display
The text was updated successfully, but these errors were encountered: