-
Notifications
You must be signed in to change notification settings - Fork 756
Open
Labels
css-color-adjust-1Current WorkCurrent Work
Description
CSS Color Adjustment Module Level 1
I recently worked on a component library to make it play nice with Windows High-Contrast Mode, and I noticed HCM left its border-image styles untouched, which rendered some components visually inaccessible. I added the following CSS to fix the problem:
@media (-ms-high-contrast: active) {
*, ::before, ::after {
border-image: none !important;
list-style-image: none !important; /* IE/Edge didn’t override this either at the time */
}
}Since border-image is specced to require a fallback border-style in order for the image to display at all (and I think Chromium patched their bug about that), it seems like it would be safe to include this as part of forced-color rendering.
I wrote some more about this at the time I encountered it:
- Writing CSS for High-Contrast Mode — what I thought when I encountered the problem
- High-Contrast Mode Styles tester pen — Reduced test case for properties I was suspicious of, like
border-image,content: url(), andfilter.
Metadata
Metadata
Assignees
Labels
css-color-adjust-1Current WorkCurrent Work