Re: [csswg-drafts] Shorthand: Writing multiple properties in one line with the same value (#6353)

Consider using variables:

```css
.box {
    --value:50px;
     width : var(--value) ;
     height : var(--value) ;
     padding : var(--value) ;
     margin : var(--value) ;
}
```

The file doesn't become smaller, but it becomes clear that you are deliberately setting the properties to the same value, and then if you want to change it into e.g. `60px`, you only have to update one place.

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


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

Received on Sunday, 6 June 2021 21:48:38 UTC