Buscador

viernes, 31 de mayo de 2024

contrast-color(), una nueva función en CSS para controlar el contraste de color

En contrast-color() is a good thing, but also solving the problem at the wrong layercontrast-color() is a good thing, but also solving the problem at the wrong layer se explica:
This function is part of the level 5 color module for CSS. This module contains a lot of things I’m excited for, and is part of CSS’ current Renaissance moment.

contrast-color() unlocks the ability the browser to automatically intervene for color contrast-related considerations. It “automatically provides a color with guaranteed color contrast when used as a text color on a solid background of the specified color.”

No hay comentarios: