Unitless values not applying to all properties

So I just went through all CSS properties to test things out after we received the unitless option and the recent fix where “0” didn’t reflect inside the editor.

I realized that the following properties will still be assigned with the “px” unit, when selecting “–” inside the editor:

  • border-radius
  • border-width
  • outline-width
  • outline-offset

Screenshot 2022-06-15 194404

Just wanted to let you know, in case this is not intentional.
Tested with random (heading) block and div block.

Hi @Marius,

Wow, thanks for going through these! Indeed, past presets seem to have remained on those last properties.
Will be sure to get those fixed.

As a side note, I know that the lack of shorthand properties is apparent in this example. We will be reviewing the CSS generator in the near future so that things a processed faster and also use shorthands wherever possible.


Good to know this is still on the list, quite underestimated point in my opinion.
Thanks for the additional info, really can’t wait for clean CSS and HTML, the foundation of the also announced exporting code feature, which hopefully will be available during this year :smiling_face: :crossed_fingers:

1 Like