Стань PHP-разработчиком с нуля с трудоустройством в IT-компании

Дерево навыков/Цвет и цветовые значения/ Relative и conditional colors

  1. Базовый уровень

    • Origin color

      Использует `from <color>` как источник relative color.

    • Relative channels

      Получает channels origin через component keywords.

    • Relative alpha

      Сохраняет или изменяет alpha origin color.

    • Light/dark pair

      Выбирает color из двух branches через `light-dark()`.

    • Contrast color

      Получает `white` или `black` через `contrast-color()`.

  2. Продвинутый уровень

    • Relative RGB

      Строит `rgb(from …)` из converted RGB channels origin.

    • Relative HSL и HWB

      Строит relative polar sRGB representations.

    • Relative Lab и LCH

      Строит relative Lab, LCH, Oklab или OkLCh color.

    • Relative `color()`

      Использует component keywords predefined `color()` space.

    • Channel calculations

      Изменяет channels через `calc()` и другие math functions.

    • Relative out-of-range values

      Сохраняет unclamped color channels и отдельно ограничивает alpha.

    • Alpha inheritance

      Получает omitted или explicit alpha из origin по нормативным правилам.

    • Relative `currentColor`

      Разрешает context-dependent origin без преждевременной потери inheritance behavior.

  3. Экспертный уровень

    • Relative processing space

      Определяет пространство, в котором доступны component keywords.

    • Origin conversion

      Преобразует origin в processing space до channel calculations.

    • Relative missing components

      Сохраняет `none` и analogous-component semantics relative origin.

    • Used color scheme

      Выбирает branch по used color scheme, не присваивая ветви его negotiation.

    • Contrast resolution

      Выбирает white или black с максимальным contrast и сохраняет UA-defined границу алгоритма.