mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-17 14:25:49 +00:00
![Brian Grinstead](/assets/img/avatar_default.png)
This excludes dom/, otherwise the file size is too large for phabricator to handle. This is an autogenerated commit to handle scripts loading mochitest harness files, in the simple case where the script src is on the same line as the tag. This was generated with https://bug1544322.bmoattachments.org/attachment.cgi?id=9058170 using the `--part 2` argument. Differential Revision: https://phabricator.services.mozilla.com/D27456 --HG-- extra : moz-landing-system : lando
58 lines
1.8 KiB
HTML
58 lines
1.8 KiB
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
<head>
|
|
<title>Test for miscellaneous computed style issues</title>
|
|
<script src="/tests/SimpleTest/SimpleTest.js"></script>
|
|
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
|
|
</head>
|
|
<body>
|
|
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=">Mozilla Bug </a>
|
|
<p id="display"></p>
|
|
<div id="content" style="display: none">
|
|
|
|
</div>
|
|
<pre id="test">
|
|
<script type="application/javascript">
|
|
|
|
/** Test for miscellaneous computed style issues **/
|
|
|
|
var frame_container = document.getElementById("display");
|
|
var noframe_container = document.getElementById("content");
|
|
|
|
function test_bug_841601() {
|
|
// Test handling of background-blend-mode
|
|
var p = document.createElement("p");
|
|
var cs = getComputedStyle(p, "");
|
|
|
|
frame_container.appendChild(p);
|
|
is(cs.backgroundBlendMode, "normal",
|
|
"default value of background-blend-mode");
|
|
|
|
p.setAttribute("style", "background-blend-mode: normal, invalid");
|
|
cs = getComputedStyle(p, "");
|
|
is(cs.backgroundBlendMode, "normal",
|
|
"set invalid blendmode");
|
|
|
|
p.setAttribute("style", "background-blend-mode: normal, normal");
|
|
cs = getComputedStyle(p, "");
|
|
is(cs.backgroundBlendMode, "normal, normal",
|
|
"set normal blendmode twice");
|
|
|
|
p.setAttribute("style", "background-blend-mode: normal, multiply, screen, overlay, darken, lighten, color-dodge, color-burn, hard-light, soft-light, difference, exclusion, hue, saturation, color, luminosity");
|
|
cs = getComputedStyle(p, "");
|
|
is(cs.backgroundBlendMode, "normal, multiply, screen, overlay, darken, lighten, color-dodge, color-burn, hard-light, soft-light, difference, exclusion, hue, saturation, color, luminosity",
|
|
"set all blendmodes");
|
|
|
|
p.remove();
|
|
|
|
SimpleTest.finish();
|
|
}
|
|
|
|
SimpleTest.waitForExplicitFinish();
|
|
test_bug_841601();
|
|
|
|
</script>
|
|
</pre>
|
|
</body>
|
|
</html>
|