Media: Limit HDR brightness outside Media Viewer (#6533)

This commit is contained in:
zubiden 2025-12-22 22:53:40 +01:00 committed by Alexander Zinchuk
parent d51d57d838
commit ee78ee06b8
4 changed files with 11 additions and 1 deletions

View File

@ -41,4 +41,8 @@
.Spinner {
margin: auto;
}
img, video {
dynamic-range-limit: no-limit;
}
}

View File

@ -272,6 +272,8 @@
transition: opacity 300ms;
dynamic-range-limit: no-limit;
:global(body.ghost-animating) .activeSlide & {
visibility: hidden;
}

View File

@ -172,6 +172,10 @@ img {
vertical-align: middle;
}
img, video {
dynamic-range-limit: standard;
}
svg:not(:root) {
overflow: hidden;
}

View File

@ -113,7 +113,7 @@ export const IS_OPEN_IN_NEW_TAB_SUPPORTED = !(IS_PWA && IS_MOBILE);
export const IS_TRANSLATION_SUPPORTED = !IS_TEST;
export const IS_TRANSLATION_DETECTOR_SUPPORTED = 'LanguageDetector' in window;
export const IS_VIEW_TRANSITION_SUPPORTED = CSS.supports('view-transition-class: test')
&& !IS_FIREFOX; // Fix flashing elements before removing
&& !IS_FIREFOX; // https://bugzilla.mozilla.org/show_bug.cgi?id=1994547
export const MESSAGE_LIST_SENSITIVE_AREA = 750;