I guess the answer to this question is that this is not possible, but I still ask you to hope that someone knows about a smart workaround.
Let's say I have the following class .left-insetthat adds 1px white box-shadow to the left of an element to give it some depth:
.left-inset {
box-shadow: inset 1px 0 0 rgba(255,255,255,.25);
}
The problem is that if the element that I am adding for this class already has a specific shadow box, this shadow will override the existing one (or this shadow will not be applied depending on the cascade). I want to find a way to safely add this class without conflicts.
I hope there is some future browser support for something like the following:
.left-inset {
box-shadow: inherit, inherit, inherit, inset 1px 0 0 rgba(255,255,255,.25);
}
, inherit , .
, , , , . .
- , - , ?