Re: [csswg-drafts] [css-all] expand all property sintax for non-inherited props (#11123)

Thank you for the suggestion of using two separate all properties for inherited and non-inherited properties. However, I'd like to emphasize the importance of maintaining backward compatibility with the current behavior of all, as this supports stability and predictability in CSS for many existing projects.

Proposing a modification to the all property to accept two values (one for inherited and another for non-inherited properties) provides a more intuitive alternative for authors while preserving compatibility with the existing behavior.

This added flexibility would allow for single-line CSS resets, simplifying stylesheets without the need for additional properties. It would be a highly valuable development tool, as it would enable both global style resets and granular customization while also reducing cognitive load by avoiding multiple, complementary properties.

Allowing this option within all promotes cleaner and more manageable CSS, ensuring any code already relying on all: inherit continues to work as expected. Additionally, this approach would serve as a practical and flexible way to implement CSS resets, a benefit for designers and developers seeking simplicity in their stylesheets.

The case of variables, as mentioned in issue #11105, is different because it addresses resetting variables, which may indeed warrant a complementary property. However, for the broader goal here, expanding all in this way meets the requirements effectively.

-- 
GitHub Notification of comment by codermapuche
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11123#issuecomment-2451073544 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 1 November 2024 00:34:22 UTC