Support boolean attributes for xul checked and disabled attributes

See bug 2008041
This commit is contained in:
MrOtherGuy
2026-01-07 19:05:48 +02:00
parent 1a3b86bff8
commit 021da269f0
5 changed files with 7 additions and 7 deletions

View File

@@ -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;
}

View File

@@ -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,

View File

@@ -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{

View File

@@ -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,

View File

@@ -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{