Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / opacity-float.html
blobc6473d6a241125392b840e41a614ad420b0cdf4c
1 <script>
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");
8 </script>
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>
15 <a id='test' style='opacity:.9'></a>
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>