<!DOCTYPE HTML>
<html>
<body>
<style type="text/css">
#d {
height:300px;
position: relative;
background: yellow
}
#a {
position: relative;
bottom: 5px
}
#b {
position: absolute;
bottom: 250px;
right: 10px
}
</style>
<div id="d">
<img id="a" src="http://www.google.com/images/firefox/amo.png">
<img id="b" src="http://www.google.com/images/firefox/amo.png">
</div>
</body>
</html>
You examine its rules and see which ones are relevant?
> The only way I can think of is to iterate through all
> the styles that apply to this object from getCSSStyleRules() to find
> what the collapsed specified style is.
At the moment, yes.
> Is there a shorter/faster way to find the specified style?
No, but there have been repeated requests for one. It wouldn't actually
be that hard to do, I think.... And we definitely have a bug on it.
Helpwanted.
-Boris