Skip to content

Commit 9552dc3

Browse files
committed
spec/css4-color: [extensions to css3-color features] move 4/8 digit hex colors to impl extensions, since I have a pending patch for webkit for it
1 parent 20d8970 commit 9552dc3

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

spec/css4-color.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,18 @@ Implementations may have found it useful to extend existing CSS3-Color features,
1313

1414
As these are most likely to be practical and minimal (and supported by a second implementation), these are the first features we'll consider.
1515

16-
* ...
16+
* 4 and 8-digit hex colors, so you can specify alpha with the hex representation. It's non-trivial to translate hexadecimal to decimal for reformatting the color as rgba().
1717

1818
==== real world author extension needs ====
1919
Second, users and authors may have found that they wanted a CSS3-Color feature to work a certain way in their sites, and these real world needs are a second consideration.
2020

2121
* the opacity argument from rgba() and hsla() should accept a percentage as well, with the obvious meaning. It's confusing to be restricted to a number in [0,1], since that's effectively a percentage, especially since rgba() allows rgb to be specified in percentages, and hsl() *requires* them for s and l.
2222
* The rgb components of rgb/a() should accept <number> rather than <integer>, rounding to the nearest value the impl supports. It's pretty common to get confusing errors when working with colors in <canvas> because you forgot to round the components to the nearest integer, thus producing an invalid color.
23-
* 4 and 8-digit hex colors, so you can specify alpha with the hex representation. It's non-trivial to translate hexadecimal to decimal for reformatting the color as rgba().
23+
2424
==== theoretical extension requests ====
2525
Third, there are hypothetical requests for extensions to CSS3-Color features. As these are not real world proven (only theoretical) demands, they are purely tertiary. We may consider them optimistically and include them in working drafts to solicit feedback and additional interest.
2626

2727
* ...
28-
2928
===== new css4-color features =====
3029
Brand new features for CSS4-Color. We'll follow the same prioritization as above.
3130

0 commit comments

Comments
 (0)