data icon indicating copy to clipboard operation
data copied to clipboard

feat(css): Add appliesto definition for display:contents

Open kannanwisen opened this issue 9 months ago • 1 comments

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:

  1. Updating the schema to allow a new key.
  2. Adding the new key and its corresponding text definition.
  3. Updating the float property in properties.json to use this new, more accurate key.

Related issues and pull requests

kannanwisen avatar Jul 28 '25 18:07 kannanwisen

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.

pepelsbey avatar Aug 13 '25 12:08 pepelsbey