reftest.list (6910B)
1 # This pref enables high-contrast mode in the testcases here: 2 defaults test-pref(browser.display.document_color_use,2) test-pref(browser.display.permit_backplate,true) test-pref(browser.display.foreground_color,"#000000") test-pref(browser.display.background_color,"#FFFFFF") pref(ui.use_standins_for_native_colors,true) pref(widget.non-native-theme.always-high-contrast,true) 3 4 # There are several platform-specific fuzzy-if notations below due to 5 # anti-aliasing, extra ink overflow, and slightly inacurate reftest 6 # mocking. You can read more about the annotations and their specifics here: 7 # https://bugzilla.mozilla.org/show_bug.cgi?id=1539212#c25 8 9 == backplate-select-001.html backplate-select-001-ref.html 10 11 fuzzy-if(cocoaWidget,255-255,20-20) == backplate-bg-image-001.html backplate-bg-image-001-ref.html # bug 1577028 12 fuzzy-if(cocoaWidget,255-255,20-20) == backplate-bg-image-002.html backplate-bg-image-002-ref.html 13 fuzzy-if(cocoaWidget,255-255,4-4) == backplate-bg-image-003.html backplate-bg-image-003-ref.html 14 fuzzy-if(cocoaWidget,255-255,20-20) == backplate-bg-image-004.html backplate-bg-image-004-ref.html 15 fuzzy-if(cocoaWidget,255-255,80-80) == backplate-bg-image-005.html backplate-bg-image-005-ref.html 16 17 fuzzy-if(cocoaWidget,255-255,40-40) == backplate-bg-image-006.html backplate-bg-image-006-ref.html 18 19 fuzzy-if(cocoaWidget,255-255,40-40) == backplate-bg-image-007.html backplate-bg-image-007-ref.html 20 fuzzy-if(cocoaWidget,255-255,20-20) fuzzy-if(!cocoaWidget,0-21,0-6) == backplate-bg-image-008.html backplate-bg-image-008-ref.html 21 fuzzy-if(cocoaWidget,255-255,20-20) == backplate-bg-image-009.html backplate-bg-image-009-ref.html 22 fuzzy-if(cocoaWidget,255-255,1495-1495) fuzzy-if(winWidget,255-255,353-353) fuzzy-if(Android,255-255,700-700) == backplate-bg-image-010.html backplate-bg-image-010-ref.html 23 random-if(useDrawSnapshot) fuzzy-if(cocoaWidget,255-255,284-320) == backplate-bg-image-011.html backplate-bg-image-011-ref.html 24 fuzzy-if(cocoaWidget,255-255,16-16) fuzzy-if(winWidget,0-47,0-2) == backplate-bg-image-012.html backplate-bg-image-012-ref.html 25 == backplate-bg-image-013.html backplate-bg-image-013-ref.html 26 fuzzy-if(cocoaWidget,255-255,20-20) == backplate-bg-image-014.html backplate-bg-image-001-ref.html # bug 1577028 27 28 test-pref(browser.display.suppress_canvas_background_image_on_forced_colors,true) == bg-image-root-001.html bg-image-root-001-ref.html 29 test-pref(browser.display.suppress_canvas_background_image_on_forced_colors,false) != bg-image-root-001.html bg-image-root-001-ref.html 30 31 == bg-image-div-001.html bg-image-div-001-ref.html 32 == bg-image-div-002.html bg-image-div-002-ref.html 33 34 needs-focus == selection-001.html selection-001-ref.html 35 pref(browser.display.document_color_use,0) needs-focus != selection-001.html selection-001-ref.html 36 37 pref(dom.text_fragments.enabled,true) == target-text.html target-text-ref.html 38 39 == color-transparent-001.html about:blank 40 != color-transparent-002.html about:blank 41 != semi-transparent-overlay.html about:blank 42 != semi-transparent-overlay.html semi-transparent-background.html 43 44 == links.html links-ref.html 45 == links-2.html links-ref.html 46 47 pref(browser.display.document_color_use,2) == non-themed-button-001.html non-themed-button-001-ref.html 48 pref(browser.display.document_color_use,2) == non-themed-button-002.html non-themed-button-002-ref.html 49 50 != cascade-001.html about:blank 51 52 # prefers-contrast media query: 53 54 # Forced colors affects prefers-contrast. 55 == prefers-contrast-001.html prefers-contrast-black-ref.html 56 # high should match when an accessibility theme is used 57 test-pref(ui.windowForeground,"black") test-pref(ui.windowBackground,"white") test-pref(ui.useAccessibilityTheme,1) == prefers-contrast-001.html prefers-contrast-black-ref.html 58 59 # high should match when an accessibility theme is being used 60 test-pref(ui.windowForeground,"black") test-pref(ui.windowBackground,"white") test-pref(ui.useAccessibilityTheme,1) == prefers-contrast-002.html prefers-contrast-black-ref.html 61 62 # If RFP is on the media query stops evaluating contrast preferences and 63 # defaults to no-preference. 64 test-pref(privacy.resistFingerprinting,true) != prefers-contrast-001.html prefers-contrast-black-ref.html 65 # high should not match when RFP is enabled. 66 test-pref(ui.windowForeground,"black") test-pref(ui.windowBackground,"white") test-pref(privacy.resistFingerprinting,true) test-pref(ui.useAccessibilityTheme,1) != prefers-contrast-002.html prefers-contrast-black-ref.html 67 68 # a prefers-contrast value of no-preference should evaluate to false 69 # in the boolean context 70 test-pref(browser.display.document_color_use,0) != prefers-contrast-001.html prefers-contrast-black-ref.html 71 72 # a prefers-contrast value of no-preference should match no-preference 73 test-pref(browser.display.document_color_use,0) == prefers-contrast-005.html prefers-contrast-black-ref.html 74 75 # forced-colors media query 76 77 # active 78 == forced-colors-000.html prefers-contrast-black-ref.html 79 test-pref(browser.display.document_color_use,0) != forced-colors-000.html prefers-contrast-black-ref.html 80 81 # none 82 test-pref(browser.display.document_color_use,0) == forced-colors-002.html prefers-contrast-black-ref.html 83 != forced-colors-002.html prefers-contrast-black-ref.html 84 85 # boolean context 86 == forced-colors-001.html prefers-contrast-black-ref.html 87 test-pref(browser.display.document_color_use,0) != forced-colors-001.html prefers-contrast-black-ref.html 88 89 pref(browser.display.use_system_colors,true) pref(browser.display.document_color_use,0) test-pref(layout.css.prefers-color-scheme.content-override,0) != about:blank about:blank 90 91 != system-colors.html system-colors-notref.html 92 93 != border-color-transparent.html about:blank 94 == border-color-transparent.html border-color-transparent-ref.html 95 == currentColor.html currentColor-ref.html 96 97 != color-mix.html color-mix-notref.html 98 99 test-pref(browser.display.background_color,"black") test-pref(browser.display.foreground_color,"white") test-pref(ui.-moz-fieldtext,"black") test-pref(ui.-moz-fieldtext.dark,"white") pref(ui.use_standins_for_native_colors,false) pref(browser.display.use_system_colors,false) == no-system-colors-color-scheme.html no-system-colors-color-scheme-ref.html 100 pref(browser.display.document_color_use,2) pref(ui.use_standins_for_native_colors,false) pref(browser.display.use_system_colors,false) pref(browser.display.background_color,"black") pref(browser.display.foreground_color,"white") == prefers-color-scheme.html prefers-color-scheme-dark.html 101 pref(ui.use_standins_for_native_colors,false) pref(browser.display.use_system_colors,false) pref(browser.display.background_color,"white") pref(browser.display.foreground_color,"black") == prefers-color-scheme.html prefers-color-scheme-light.html 102 103 # Forced color adjust 104 == backplate-force-color-adjust.html backplate-force-color-adjust-ref.html 105 == transparent-textarea.html transparent-textarea-ref.html 106 107 == color-scheme.html color-scheme-ref.html