Expand Minimize

Avoid properties that don't work based with the display property being used in CSS

Even though you can define any group of properties together in a CSS rule, some of them will be ignored due to the display of the element. This leads to extra cruft in your CSS and misunderstandings around how a rule should work.

CheckId CSL308802
TypeName AvoidPropertiesThatDonTWorkBasedWithTheDisplayPropertyBeingUsedInCSS
Severity Warning
Type CSSFile
Disclaimer: The views and opinions expressed in this documentation and in SPCAF do not necessarily reflect the opinions and recommendations of Microsoft or any member of Microsoft. SPCAF and RENCORE are registered trademarks of Rencore. All other trademarks, service marks, collective marks, copyrights, registered names, and marks used or cited by this documentation are the property of their respective owners.