summaryrefslogtreecommitdiffstats
path: root/layout/reftests/webcomponents/cross-tree-selection-1.html
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2020-04-17 07:43:40 -0400
committerMatt A. Tobin <email@mattatobin.com>2020-04-17 07:43:40 -0400
commit80c024779929d44397a8c03d2fa7808f97f2c21a (patch)
treee961240621bd07d87e8a45e3006da7c02c890306 /layout/reftests/webcomponents/cross-tree-selection-1.html
parent6d76ab9b6c19d0829c343e1bc3cd7865221d64ba (diff)
downloadUXP-80c024779929d44397a8c03d2fa7808f97f2c21a.tar
UXP-80c024779929d44397a8c03d2fa7808f97f2c21a.tar.gz
UXP-80c024779929d44397a8c03d2fa7808f97f2c21a.tar.lz
UXP-80c024779929d44397a8c03d2fa7808f97f2c21a.tar.xz
UXP-80c024779929d44397a8c03d2fa7808f97f2c21a.zip
Issue #1375 - Fix IsWebComponentsEnabled checks
Diffstat (limited to 'layout/reftests/webcomponents/cross-tree-selection-1.html')
-rw-r--r--layout/reftests/webcomponents/cross-tree-selection-1.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/layout/reftests/webcomponents/cross-tree-selection-1.html b/layout/reftests/webcomponents/cross-tree-selection-1.html
index 1e4f02747..01e7317f2 100644
--- a/layout/reftests/webcomponents/cross-tree-selection-1.html
+++ b/layout/reftests/webcomponents/cross-tree-selection-1.html
@@ -3,6 +3,11 @@
<head>
<script>
function tweak() {
+ if (!document.body.createShadowRoot) {
+ document.documentElement.className = "";
+ return;
+ }
+
var host = document.getElementById("host");
var shadow = host.createShadowRoot();