The CSS spec does not require the new style formats for HSL and HWB to be forced to percentage output, they can also just take plain numbers for non-hue components. As a matter of fact, HWB does not even have a legacy, comma format.
Browsers do not currently follow the spec in this regard and still only recognize these colors with percentages for their non-hue components (excluding alpha).
Currently, we default to using percentages for these two spaces in the new style format. At some point, for consistency, we need to drop this behavior and match what we do with Lab, LCh, etc. For now, we are leaving them as is to avoid confusion for people coming from the browser world to ColorAide. Once browsers catch up to the current CSS specification, we can adjust behavior to match.
The CSS spec does not require the new style formats for HSL and HWB to be forced to percentage output, they can also just take plain numbers for non-hue components. As a matter of fact, HWB does not even have a legacy, comma format.
Browsers do not currently follow the spec in this regard and still only recognize these colors with percentages for their non-hue components (excluding alpha).
Currently, we default to using percentages for these two spaces in the new style format. At some point, for consistency, we need to drop this behavior and match what we do with Lab, LCh, etc. For now, we are leaving them as is to avoid confusion for people coming from the browser world to ColorAide. Once browsers catch up to the current CSS specification, we can adjust behavior to match.