You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These logical properties are useful features. However, when used in combination with CSS written in traditional physical properties, it results in a mix of logical and physical properties, compromising code consistency.
If there were properties named in physical versions (such as margin-vertical, margin-horizontal, padding-vertical, padding-horizontal, border-vertical, border-horizontal), they could be more conveniently used in physically-based CSS.
The text was updated successfully, but these errors were encountered:
In large-scale projects or legacy codebases where a complete transition to logical properties is difficult, I believe that physical shorthand properties like margin-vertical and margin-horizontal would help maintain consistency in a codebase centered around physical properties.
margin-block
margin-inline
padding-block
padding-inline
border-block
border-inline
These logical properties are useful features. However, when used in combination with CSS written in traditional physical properties, it results in a mix of logical and physical properties, compromising code consistency.
If there were properties named in physical versions (such as
margin-vertical
,margin-horizontal
,padding-vertical
,padding-horizontal
,border-vertical
,border-horizontal
), they could be more conveniently used in physically-based CSS.The text was updated successfully, but these errors were encountered: