Skip to content

Commit

Permalink
Add missing css.properties.display.none.option_is_hidden feature (#24392
Browse files Browse the repository at this point in the history
)

* 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>
  • Loading branch information
queengooborg and caugner authored Oct 14, 2024
1 parent 5d6438c commit 6a52973
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions css/properties/display.json
Original file line number Diff line number Diff line change
Expand Up @@ -807,6 +807,39 @@
"standard_track": true,
"deprecated": false
}
},
"option_is_hidden": {
"__compat": {
"description": "Setting <code>display: none</code> on an <code>&lt;option&gt;</code> element hides it from the dropdown.",
"support": {
"chrome": {
"version_added": "1"
},
"chrome_android": "mirror",
"edge": "mirror",
"firefox": {
"version_added": "1"
},
"firefox_android": "mirror",
"ie": {
"version_added": false
},
"oculus": "mirror",
"opera": "mirror",
"opera_android": "mirror",
"safari": {
"version_added": false
},
"safari_ios": "mirror",
"samsunginternet_android": "mirror",
"webview_android": "mirror"
},
"status": {
"experimental": false,
"standard_track": false,
"deprecated": false
}
}
}
},
"ruby": {
Expand Down

0 comments on commit 6a52973

Please sign in to comment.