Closed
Bug 607859
Opened 15 years ago
Closed 15 years ago
[spec issue] special-case 'transparent' in gradients?
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 591600
People
(Reporter: zwol, Unassigned)
References
()
Details
Consider the page drawn by the URL. It is likely that the author intended both gradients to be the same; however, because 'transparent' is just a nice name for 'rgba(0,0,0,0)', the top gradient transitions to black as well as to transparency. This is not overtly defined in css3-images but I think it *is* the standard-specified rendering, since color stops just contain <color>s. If we wanted to change this we'd need a special case in css3-images for the "transparent" keyword (or possibly for all ways of writing rgba(0,0,0,0)).
I think that such a special case would be a good change. gradient(green, transparent) *seems* like it ought to only affect the alpha channel, so the current behavior is surprising.
![]() |
||
Comment 1•15 years ago
|
||
See bug 591600.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•