Bug 1918529 - fix some subpixel misalignment issues with gfx.webrender.svg-filter...
[gecko.git] / dom / canvas / test / webgl-conf / checkout / conformance / glsl / misc / shader-with-comma-assignment.html
blob70816d417307aed7336b62c92d461c3134b6e596
1 <!--
2 Copyright (c) 2019 The Khronos Group Inc.
3 Use of this source code is governed by an MIT-style license that can be
4 found in the LICENSE.txt file.
5 -->
7 <!DOCTYPE html>
8 <html>
9 <head>
10 <meta charset="utf-8">
11 <title>WebGL GLSL Conformance Tests</title>
12 <link rel="stylesheet" href="../../../resources/js-test-style.css"/>
13 <link rel="stylesheet" href="../../../resources/glsl-feature-tests.css"/>
14 <script src="../../../js/js-test-pre.js"></script>
15 <script src="../../../js/webgl-test-utils.js"></script>
16 <script src="../../../js/glsl-conformance-test.js"></script>
17 </head>
18 <body>
19 <div id="description"></div>
20 <div id="console"></div>
21 <script id="fragmentShader" type="text/something-not-javascript">
22 // fragment shader with comma assignment should succeed
23 precision mediump float;
24 void main() {
25 float a = 0.0;
26 float b = 0.0;
27 float c = 0.0;
28 float d = 0.0;
29 a = 1.1, b = 3.1;
30 c = 2.1, d = 4.1;
31 // Output green if successful, red if not.
32 gl_FragColor = ((a + b + c + d > 10.0) ? vec4(0,1,0,1) : vec4(1,0,0,1));
34 </script>
35 <script>
36 "use strict";
37 GLSLConformanceTester.runRenderTest();
38 var successfullyParsed = true;
39 </script>
40 </body>
41 </html>