Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(631)

Side by Side Diff: third_party/WebKit/LayoutTests/css-parser/serialize-css-alpha-value.html

Issue 2606143002: Fix RGBA alpha parsing and serialization to adhere to W3 standard. (Closed)
Patch Set: fixes to address reviewer comments Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/css3/calc/color-hsl-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <title>Harness Test: Floating point alpha values of numbers to two decimial plac es are serialized and returned correctly.</title>
3 <body>
4 <script src="../resources/testharness.js"></script>
5 <script src="../resources/testharnessreport.js"></script>
6 <script>
7 test(function() {
8 for (var i = 0.0; i <= 1.0; i += 0.01) {
9 var rgba = 'rgba(0, 0, 0, ' + parseFloat(i.toFixed(2)) + ')';
10 document.body.style.color = rgba;
11 assert_equals(document.body.style.color, rgba);
12 assert_equals(getComputedStyle(document.body).color, rgba);
13 }
14 });
15 </script>
16
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/css3/calc/color-hsl-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698