Open
Bug 803454
Opened 13 years ago
Updated 3 years ago
multiple values of backgrounds, shadows aren't so "cascading"
Categories
(Core :: CSS Parsing and Computation, enhancement)
Core
CSS Parsing and Computation
Tracking
()
UNCONFIRMED
People
(Reporter: giorgio.liscio, Unassigned)
Details
hi,
there is something wrong about the multiple background and multiple shadows syntax
this is not a software change request but a discussion about the css spec
#mybutton
{
background:
url('bg1.png') left top no-repeat,
url('bg2.png') left bottom no-repeat,
url('bg3.png') right top no-repeat,
url('bg4.png') right bottom no-repeat,
url('bg5.png') center center no-repeat,
red
;
}
now, for an effect on this I have to completely rewrite the entire value
#mybutton:hover /* HOVER */
{
background:
url('bg1.png') left top no-repeat,
url('bg2.png') left bottom no-repeat,
url('bg3_HOVER.png') right top no-repeat, /* CHANGES ON HOVER */
url('bg4.png') right bottom no-repeat,
url('bg5.png') center center no-repeat,
red
;
}
then maybe, it would be better to study an alternative method of setting a single value of a stack of values:
#mybutton:hover /* HOVER */
{
background(3): url('bg3_HOVER.png') right top no-repeat;
/* this is ^ the background slot */
}
any syntax, even if more complex than this, would be better than completely rewrite the stack of backgrounds
this should be applied, also, on box-shadow and text-shadow properties
#mybutton
{
text-shadow:
0 0 20px red, 0 0 10px blue, 0 0 20px lime, 10px 10px 10px pink;
box-shadow:
0 0 20px red, 0 0 10px blue, 0 0 20px lime, 10px 10px 10px pink;
}
#mybutton:hover
{
text-shadow(2):0 0 20px purple;
box-shadow(2):0 0 20px purple;
}
Comment 1•13 years ago
|
||
> this is not a software change request but a discussion about the css spec
The right venue for that is probably www-style@w3.org, not here...
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•