openstyles / stylus

Stylus - Userstyles Manager
https://add0n.com/stylus.html
GNU General Public License v3.0
5.32k stars 300 forks source link

[Bug] Colorpicker does not support modern rgb color syntax #1610

Open setyb opened 1 year ago

setyb commented 1 year ago

Bug Report

Bug Description

The Stylus colorpicker does not currently support modern rgb color syntax. It only supports the old legacy syntax.

For syntax details, please see:

CSS Color Module Level 4 https://drafts.csswg.org/css-color/#typedef-modern-rgb-syntax

and

rgb() - CSS: Cascading Style Sheets | MDN https://developer.mozilla.org/docs/Web/CSS/color_value/rgb

System Information

tophf commented 1 year ago

The modern syntax is supported, but only as an input. We should preserve it in the output as well and add an option to switch the output.