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