Format rule - RGBA can be used for color picker

This might have been tweeted before, but let me post quickly although possible duplicates.

For the color picker of format rule (not theme color), we can use HEX, but rgba color code is also working. Meaning, we are able to set the “transparency” of the color as well. Nice.

This generates,

image

5 Likes

Is the value dropped verbatim into a STYLE tag or some such? Could this be used for code injection?

To test, I set color with RGBA like this.

Then…

Obviously the color code is passed to style sheet as is basis.

2 Likes

Thank’s for looking. I’ve also tinkered with it. There is some data validation done, too, as my code injection attempts failed. Unfortunately, invalid input doesn’t appear to generate an error; it’s just silently ignored.

1 Like

Hmmm…Transparency… Interesting.

1 Like

Thank you very much @tsuji_koichi I will link this to my post:

4 Likes