18 background-color: lightblue;
22 background-color: blue;
26 background: rgba(255, 255, 255, 0);
62 <p>Manual test for <a href="https://bugs.webkit.org/show_bug.cgi?id=38129">bug 38129</a></p>
64 <p>Click the div below and press the context menu key on your keyboard (Shift+F10 also works)</p>
67 <div id=inner tabindex=0>
80 if (window.getComputedStyle)
81 return window.getComputedStyle(el, '');
82 return el.currentStyle;
85 document.addEventListener('contextmenu', function(e)
87 var inner = document.querySelector('#inner');
88 var outer = document.querySelector('#outer');
89 var h = document.querySelector('#h');
90 var h2 = document.querySelector('#h2');
93 result.push(e.target, document.querySelector('#inner'));
94 result.push(cs(inner, '').backgroundColor, 'rgb(0, 0, 255)');
95 result.push(cs(h, '').backgroundColor, 'rgba(255, 255, 255, 0)');
96 result.push(cs(h2, '').backgroundColor, 'rgba(255, 255, 255, 0)');
99 for (var i = 0; i < result.length; i += 2) {
100 s += result[i] + ' == ' + result[i + 1] + ' - ' +
101 (result[i] == result[i + 1] ? 'PASS' : 'FAIL') + '<br>';
104 document.querySelector('pre').innerHTML = s;