Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mix-blend-mode #305

Closed
Malvoz opened this issue Feb 19, 2021 · 3 comments
Closed

mix-blend-mode #305

Malvoz opened this issue Feb 19, 2021 · 3 comments

Comments

@Malvoz
Copy link
Member

Malvoz commented Feb 19, 2021

Is mix-blend-mode useful? How does it compare to current use of opacity?

The following video showcases the different blend modes by applying the values to all .mapml-layer elements (I had to apply .leaflet-layer * {mix-blend-mode: inherit; } since it's not an inheritable property):

Static.Features.Test.-.mix-blend-mode.mp4

Other related CSS properties include: background-blend-mode and isolation.

Maybe options for changing blend modes could exist along with opacity in the UI, or otherwise we could have some documentation in web-map-docs for how to enable this.

@prushforth
Copy link
Member

prushforth commented Feb 19, 2021

I am pretty certain this will be / is useful for cartographers, but I'm not an expert, especially when combining features within a single layer. I think this might also be relevant for user preferences, but not sure how we would enable it in a user interface easily, at least.

@Malvoz
Copy link
Member Author

Malvoz commented Mar 2, 2021

How does it compare to current use of opacity?

While opacity is simpler to work with, it's usage - which I believe is mainly to "blend" (wink wink) layers - causes the layer with reduced opacity to essentially be less visible. Conforming to WCAG success criteria for contrast (1.4.3 Contrast (Minimum), 1.4.6 Contrast (Enhanced), 1.4.11 Non-text Contrast) can be hard or even impossible depending on the applied opacity.

@Malvoz Malvoz changed the title mix-blend-mode mix-blend-mode Apr 23, 2021
@Malvoz
Copy link
Member Author

Malvoz commented Apr 26, 2021

Opened an issue to discuss the Capability: Maps4HTML/HTML-Map-Element-UseCases-Requirements#247.

I'm closing this for now. We can revisit this at a later time if needed to satisfy user preferences, as suggested in #305 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants