CSS Logical Shorthands

Table of Contents

The CSS Working Group recently resolved to add a size shorthand for setting both the width and height of an element. Many people asked about using it to set the ‘logical’ inline-size and block-size properties instead. But ‘logical shorthands’ have been stalled in the working group for years. Can we get them unstuck?

You can support our efforts

Next steps

  1. Research what properties would be impacted
  2. Choose syntax for individual properties
  3. Develop lexical toggle to allow default-logical styles

CSS Working Group discussion

Fantasai opened the original issue in 2017, when publishing the First Public Working Draft of CSS Logical Properties: [css-logical] Flow-relative syntax for margin-like shorthands. Here are some key comments:

Other resources

Related Notes