Support boolean attributes for xul checked and disabled attributes
See bug 2008041
This commit is contained in:
@@ -3,9 +3,9 @@ See the above repository for updates as well as full license text. */
|
||||
|
||||
/* Modifies appearance of menupopup check icons to more clearly show if the item is a radio or checkbox item */
|
||||
|
||||
menuitem[type="radio"][checked="true"] > .menu-icon{
|
||||
menuitem[type="radio"]:is([checked=""],[checked="true"]) > .menu-icon{
|
||||
content: radial-gradient(currentColor 30%, transparent 40%) !important;
|
||||
}
|
||||
menuitem[type="checkbox"][checked="true"] > .menu-icon{
|
||||
menuitem[type="checkbox"]:is([checked=""],[checked="true"]) > .menu-icon{
|
||||
content: url("chrome://global/skin/icons/check.svg") !important;
|
||||
}
|
||||
|
||||
@@ -39,8 +39,8 @@ spacer[part="overflow-end-indicator"]{
|
||||
order: 2;
|
||||
}
|
||||
|
||||
#scrollbutton-down[disabled="true"] > .toolbarbutton-icon,
|
||||
#scrollbutton-up[disabled="true"] > .toolbarbutton-icon{
|
||||
#scrollbutton-down:is([disabled=""],[disabled="true"]) > .toolbarbutton-icon,
|
||||
#scrollbutton-up:is([disabled=""],[disabled="true"]) > .toolbarbutton-icon{
|
||||
opacity: 0.4;
|
||||
}
|
||||
#scrollbutton-up,
|
||||
|
||||
@@ -29,7 +29,7 @@ See the above repository for updates as well as full license text. */
|
||||
display: none;
|
||||
}
|
||||
#contentAreaContextMenu > menuitem[type="checkbox"][_moz-menuactive]::before,
|
||||
#contentAreaContextMenu > menuitem[type="checkbox"][checked="true"]::before{
|
||||
#contentAreaContextMenu > menuitem[type="checkbox"]:is([checked=""],[checked="true"])::before{
|
||||
background: no-repeat center left url("chrome://global/skin/icons/check.svg");
|
||||
}
|
||||
#contentAreaContextMenu > :is(.menu-iconic,.menuitem-iconic)::before{
|
||||
|
||||
@@ -30,7 +30,7 @@ See the above repository for updates as well as full license text. */
|
||||
display: none;
|
||||
}
|
||||
#placesContext > menuitem[type="checkbox"][_moz-menuactive]::before,
|
||||
#placesContext > menuitem[type="checkbox"][checked="true"]::before{
|
||||
#placesContext > menuitem[type="checkbox"]:is([checked=""],[checked="true"])::before{
|
||||
background: no-repeat center left url("chrome://global/skin/icons/check.svg");
|
||||
}
|
||||
#placesContext_openBookmarkContainer\:tabs::before,
|
||||
|
||||
@@ -29,7 +29,7 @@ See the above repository for updates as well as full license text. */
|
||||
display: none;
|
||||
}
|
||||
#tabContextMenu > menuitem[type="checkbox"][_moz-menuactive]::before,
|
||||
#tabContextMenu > menuitem[type="checkbox"][checked="true"]::before{
|
||||
#tabContextMenu > menuitem[type="checkbox"]:is([checked=""],[checked="true"])::before{
|
||||
background: no-repeat center left url("chrome://global/skin/icons/check.svg");
|
||||
}
|
||||
#context_openANewTab::before{
|
||||
|
||||
Reference in New Issue
Block a user