We could roll your example and mine together to produce a cross browser solution:
It is good to show that it is possible, but my solution is not that ideal, because I can't use sprites, unless I'm wrong.
As this decoration iss not that essential, I'd rather use css expressions for IE<8 and your code.
Code:
<!DOCTYPE html>
<html>
<head>
<title>Bla bla</title>
<style>
h1 {
overflow:hidden;
position:relative;
ruby-align: expression(
this.runtimeStyle.rubyAlign = "auto",
this.insertAdjacentHTML("beforeEnd","<b></b>")
);
width:100%;
}
h1 b, h1:after {
background-image:url(bg.png);
content:" ";
position:absolute;
width:100%;
zoom:1;
}
</style>
</head>
<body>
<h1>Bla bla</h1>
</body>
</html>
Bookmarks