1
0
mirror of https://github.com/roytam1/UXP.git synced 2026-05-26 13:58:49 +00:00

Issue #2847 - Update tests and toolkit CSS to account for windows-win11

This commit is contained in:
Moonchild
2025-10-25 17:46:17 +02:00
committed by roytam1
parent 103bd151c8
commit becf65d05a
5 changed files with 10 additions and 10 deletions
+1 -5
View File
@@ -58,18 +58,14 @@ var windows_versions = [
"windows-win7",
"windows-win8",
"windows-win10",
"windows-win11"
];
// Possible values for '-moz-windows-theme'
var windows_themes = [
"aero",
"aero-lite",
"luna-blue",
"luna-olive",
"luna-silver",
"royale",
"generic",
"zune"
];
// Read the current OS.
@@ -723,6 +723,7 @@ function run() {
expression_should_be_parseable("-moz-os-version: windows-win7");
expression_should_be_parseable("-moz-os-version: windows-win8");
expression_should_be_parseable("-moz-os-version: windows-win10");
expression_should_be_parseable("-moz-os-version: windows-win11");
expression_should_not_be_parseable("-moz-os-version: ");
// OpenType SVG media features
@@ -208,7 +208,8 @@ toolbar#ToolbarMode .toolbarbutton-text {
}
%ifdef XP_WIN
@media not all and (-moz-os-version: windows-win10) {
@media not all and (-moz-os-version: windows-win10),
not all and (-moz-os-version: windows-win11) {
#ToolbarMode {
-moz-appearance: -moz-win-browsertabbar-toolbox;
}
+3 -2
View File
@@ -17,9 +17,10 @@ toolbox {
-moz-border-top-colors: ThreeDShadow ThreeDHighlight;
}
@media (-moz-os-version: windows-win10) and (-moz-windows-theme: aero) {
@media (-moz-os-version: windows-win10) and (-moz-windows-theme: aero),
(-moz-os-version: windows-win11) and (-moz-windows-theme: aero) {
toolbox {
/* Windows 10's "aero" msstyle sourced toolbox background is pure white
/* Windows 10/11's "aero" msstyle sourced toolbox background is pure white
so don't use the widget toolbox styling and fallback to -moz-Dialog's
color which by default should be a non-blinding rgb(240, 240, 240) */
-moz-appearance: none;
+3 -2
View File
@@ -198,9 +198,10 @@ treechildren::-moz-tree-cell-text(progressmeter) {
/* ::::: tree columns ::::: */
@media (-moz-os-version: windows-win10) and (-moz-windows-theme: aero) {
@media (-moz-os-version: windows-win10) and (-moz-windows-theme: aero),
(-moz-os-version: windows-win11) and (-moz-windows-theme: aero) {
treecols {
/* Windows 10's "aero" msstyle does not provide a complete style for
/* Windows 10/11's "aero" msstyle does not provide a complete style for
the treecols header so we need to provide a bottom border */
border-bottom: 1px solid ThreeDLightShadow;
}