chromium/third_party/blink/web_tests/external/wpt/css/css-color/color-mix-percents-01.html

<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Color 5: color-mix</title>
<link rel="author" title="Chris Lilley" href="mailto:[email protected]">
<link rel="help" href="https://drafts.csswg.org/css-color-5/#color-mix">
<link rel="help" href="https://drafts.csswg.org/css-color-4/#interpolation-space">
<link rel="help" href="https://drafts.csswg.org/css-color-4/#hue-interpolation">
<link rel="match" href="./color-mix-percents-01-ref.html">
<meta name="assert" content="missing percentages, percent normalization">
<style>
    .test { background-color: red; width: 14em; height: 2em; margin-top: 0; margin-bottom: 0;}
    .t1 { background-color: rgb(68.4898% 36.015% 68.3102%); }
    .t2 { background-color: color-mix(in lch, purple 50%, plum 50%);}
    .t3 { background-color: color-mix(in lch, purple 50%, plum);}
    .t4 { background-color: color-mix(in lch, purple, plum 50%); }
    .t5 { background-color: color-mix(in lch, purple, plum);}
    .t6 { background-color: color-mix(in lch, plum, purple);}
    .t7 { background-color: color-mix(in lch, purple 80%, plum 80%);}
</style>
<body>
    <p>Test passes if you see a purple square, and no red.</p>
    <div class="test t1"></div>
    <div class="test t2"></div>
    <div class="test t3"></div>
    <div class="test t4"></div>
    <div class="test t5"></div>
    <div class="test t6"></div>
    <div class="test t7"></div>
</body>