зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1867854 - Hide some macOS system colors from content. r=jwatt
Mostly drive-by. Hide macOS specific colors from content, and also the native hyperlinktext color, which isn't and shouldn't be used from CSS at all. Differential Revision: https://phabricator.services.mozilla.com/D195296
This commit is contained in:
Родитель
d31360a906
Коммит
3d97c216b7
|
@ -52,7 +52,6 @@ function runTest(testCanvasColors) {
|
|||
[ "-moz-MenuHover", 0x33, 0x99, 0xFF ],
|
||||
[ "-moz-MenuHoverText", 0x00, 0x00, 0x00 ],
|
||||
[ "-moz-MenubarHoverText", 0x00, 0x00, 0x00 ],
|
||||
[ "-moz-NativeHyperlinkText", 0x00, 0x66, 0xCC ],
|
||||
[ "-moz-OddTreeRow", 0xFF, 0xFF, 0xFF ],
|
||||
[ "-moz-mac-focusring", 0x60, 0x9D, 0xD7 ],
|
||||
[ "-moz-mac-DisabledToolbarText", 0x3F, 0x3F, 0x3F ],
|
||||
|
|
|
@ -5248,7 +5248,7 @@ var gCSSProperties = {
|
|||
"#fed292",
|
||||
"rgba(45,300,12,2)",
|
||||
"transparent",
|
||||
"-moz-nativehyperlinktext",
|
||||
"LinkText",
|
||||
"rgba(255,128,0,0.5)",
|
||||
"#e0fc",
|
||||
"#10fcee72",
|
||||
|
|
|
@ -302,10 +302,13 @@ pub enum SystemColor {
|
|||
MozHeaderbarinactivetext,
|
||||
|
||||
/// Foreground color of default buttons.
|
||||
#[parse(condition = "ParserContext::chrome_rules_enabled")]
|
||||
MozMacDefaultbuttontext,
|
||||
/// Ring color around text fields and lists.
|
||||
#[parse(condition = "ParserContext::chrome_rules_enabled")]
|
||||
MozMacFocusring,
|
||||
/// Text color of disabled text on toolbars.
|
||||
#[parse(condition = "ParserContext::chrome_rules_enabled")]
|
||||
MozMacDisabledtoolbartext,
|
||||
/// The background of a macOS sidebar.
|
||||
#[parse(condition = "ParserContext::chrome_rules_enabled")]
|
||||
|
@ -323,12 +326,12 @@ pub enum SystemColor {
|
|||
#[parse(condition = "ParserContext::chrome_rules_enabled")]
|
||||
MozAutofillBackground,
|
||||
|
||||
/// Hyperlink color extracted from the system, not affected by the
|
||||
/// browser.anchor_color user pref.
|
||||
/// Hyperlink color extracted from the system, not affected by the browser.anchor_color user
|
||||
/// pref.
|
||||
///
|
||||
/// There is no OS-specified safe background color for this text, but it is
|
||||
/// used regularly within Windows and the Gnome DE on Dialog and Window
|
||||
/// colors.
|
||||
/// There is no OS-specified safe background color for this text, but it is used regularly
|
||||
/// within Windows and the Gnome DE on Dialog and Window colors.
|
||||
#[css(skip)]
|
||||
MozNativehyperlinktext,
|
||||
|
||||
/// As above, but visited link color.
|
||||
|
|
|
@ -75,7 +75,6 @@ var colors = {
|
|||
"-moz-oddtreerow": ["rgb(236, 242, 254)", "rgb(240, 240, 240)", "rgb(243, 245, 250)", "rgb(243, 246, 250)", "rgb(245, 245, 245)"],
|
||||
"-moz-visitedhyperlinktext": ["rgb(85, 26, 139)"],
|
||||
"currentcolor": ["rgb(0, 0, 0)"],
|
||||
"-moz-nativehyperlinktext": ["rgb(20, 79, 174)"],
|
||||
"-moz-comboboxtext": ["rgb(0, 0, 0)"],
|
||||
"-moz-combobox": ["rgb(255, 255, 255)"]
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче