tizen beta release
[framework/web/webkit-efl.git] / LayoutTests / fast / css / opacity-float.html
1 <script>
2 if (window.layoutTestController) {
3     layoutTestController.dumpAsText();
4
5     // Put ourselves in a locale where 0.9 is written as "0,9".
6     layoutTestController.setPOSIXLocale("pl_PL.UTF-8");
7 }
8 </script>
9
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
13 it.</p>
14
15 <a id='test' style='opacity:.9'></a>
16
17 <script>
18 var opacity = document.getElementById('test').style.opacity.toString();
19 if (opacity == '0.9')
20     document.write('PASS');
21 else
22     document.write('FAIL: ' + opacity);
23 </script>