2 if (window
.testRunner
) {
3 testRunner
.dumpAsText();
5 // Put ourselves in a locale where 0.9 is written as "0,9".
6 testRunner
.setPOSIXLocale("pl_PL.UTF-8");
10 <p>This test verifies that reading a floating-point opacity from CSS
11 attributes gets back a properly-formatted float. Improperly handling
12 locales that cause decimals to be written as commas might break
15 <a id='test' style='opacity:
.9'
></a>
18 var opacity
= document
.getElementById('test').style
.opacity
.toString();
20 document
.write('PASS');
22 document
.write('FAIL: ' + opacity
);