1<!DOCTYPE html>
2<!--
3@license
4Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
5This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
6The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
7The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
8Code distributed by Google as part of the polymer project is also
9subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
10-->
11<html>
12
13<head>
14  <meta charset="utf-8">
15  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
16  <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1, user-scalable=yes">
17  <script>
18    WCT = { waitFor: function (cb) { HTMLImports.whenReady(cb) } }
19  </script>
20  <script src="./test-flags.js"></script>
21  <script src="../node_modules/wct-browser-legacy/browser.js"></script>
22  <script src="../node_modules/@webcomponents/webcomponents-platform/webcomponents-platform.js"></script>
23  <script src="../node_modules/es6-promise/dist/es6-promise.auto.min.js"></script>
24  <script src="../node_modules/@webcomponents/template/template.js"></script>
25  <script src="../node_modules/@webcomponents/html-imports/html-imports.min.js"></script>
26  <script src="../node_modules/@webcomponents/shadydom/shadydom.min.js"></script>
27  <script src="../node_modules/@webcomponents/custom-elements/custom-elements.min.js"></script>
28  <script src="../scoping-shim.min.js"></script>
29  <script src="../apply-shim.min.js"></script>
30  <script src="../custom-style-interface.min.js"></script>
31  <script src="module/generated/make-element.js"></script>
32</head>
33<body>
34  <template id="x-bug">
35    <style>
36      :host {
37        --bg: rgb(255, 0, 0);
38      }
39      div::after {
40        content: 'test';
41        background-color: var(--bg);
42      }
43    </style>
44    <div></div>
45  </template>
46  <script>
47    suite('Workarounds', function() {
48      test('Edge 15', function() {
49        makeElement('x-bug');
50        let el = document.createElement('x-bug');
51        document.body.appendChild(el);
52        let div = el.shadowRoot.querySelector('div');
53        assert.notEqual(getComputedStyle(div).getPropertyValue('background-color').trim(), 'rgb(255, 0, 0)');
54      })
55    });
56  </script>
57</body>
58</html>