Bug 1320000 - Part 1: Force xbl:children elements to be display:none. r=mrbkap

MozReview-Commit-ID: IbM0KAIGWqi
This commit is contained in:
Cameron McCormack 2016-12-01 09:25:18 +08:00
parent e4a1fb8975
commit 5a2bc39008
3 changed files with 9 additions and 3 deletions

View File

@ -50,6 +50,6 @@
== multipleappendwitheditable.xhtml multipleappendwitheditable-ref.xhtml
== xbl-children-1.xhtml xbl-children-1-ref.xhtml
== xbl-children-2.xhtml about:blank
fails == xbl-children-2.xhtml about:blank
== xbl-children-3.xhtml xbl-children-3-ref.html
== xbl-children-4.xhtml xbl-children-4-ref.html

View File

@ -2,7 +2,8 @@
xmlns:xbl="http://www.mozilla.org/xbl">
<head>
<style>
.forced { display:block; }
.forced { display: block; }
.forced ~ p { display: none; }
</style>
</head>
<body>
@ -16,6 +17,8 @@
<xbl:children />
<p>FAIL</p>
<script>
var third = document.body.children[2];
third.appendChild(document.createTextNode("FAIL"));

View File

@ -50,7 +50,6 @@ window[chromehidden~="toolbar"] .chromeclass-toolbar-additional {
/****** elements that have no visual representation ******/
script, data,
xbl|children,
commands, commandset, command,
broadcasterset, broadcaster, observes,
keyset, key, toolbarpalette, toolbarset,
@ -60,6 +59,10 @@ treechildren, treeitem, treeseparator, treerow, treecell {
display: none;
}
xbl|children {
display: none !important;
}
/********** focus rules **********/
button,