Hello,
I'm in a need of getting a value of another property in CSS. Say I have this in a CSS file:
.something {
width: 256px;
}
then in something2 I want to use the value:
.something2 {
width: .something.width;
}
how could I achieve this without JavaScript? The reason why I need this is because I'm using CSS 3 animation:
@-webkit-keyframes somethinghere {
0% {
background-position: -48px 0px;
}
100% {
background-position: .something.width 0px;
}
}
and the x value of the animation-end background I want to be the width of the "something". Is this possible to do in CSS (3)? Even if it's a draft spec or just one browser supporting it, I want to hear about it.
Thanks in advance.