data
data copied to clipboard
feat(css): Add appliesto definition for display:contents
Description
This pull request adds a new key, "allElementsNoEffectIfDisplayNoneOrContents", to the properties.schema.json to more accurately describe the applicability of certain CSS properties.
The existing key "allElementsNoEffectIfDisplayNone" is insufficient for properties like float, which also have no effect on elements with display: contents.
This change allows for more precise documentation by providing a key that covers both none and contents.
Motivation
Additional details
This is achieved in three steps:
- Updating the schema to allow a new key.
- Adding the new key and its corresponding text definition.
- Updating the float property in properties.json to use this new, more accurate key.
Related issues and pull requests
Thank you for the suggestion. Do you have any references to that change and examples of how it might be used or what use cases it improves?
@skyclouds2001 could you please have a look? Thank you.