Set both the Alpha Transparency of Text and Backgrounds maintaining inheritance overrides
var element = document.getElementById("test");
element.style.backgroundColor = "#000"; /* you need to set the background color first*/
element.setBackgroundAlpha(50); /* 50% transparency */
You can set all backgrounds and text to a default color by a rule like this
*{
background-color: #FFF;
color: #000;
}
Any element nested can also be change to it's own alpha transparency which was not possible with opacity css rule