@@ -51,6 +51,20 @@ spec:css-color-4; type:value; text:srgb
5151 }
5252</style>
5353
54+ <script>
55+ document.addEventListener("DOMContentLoaded", ()=>{
56+ for (let e of document.querySelectorAll(".swatch")) {
57+ e.tabIndex = "0";
58+ const swatchColor = getComputedStyle(e).getPropertyValue("--color");
59+
60+ if (!CSS.supports('color' , swatchColor)) {
61+ e.style.background = "repeating-linear-gradient(135deg, red 0, red 4px, white 4px, white 8px)";
62+ e.setAttribute("title", "Your browser does not recognize this color value, so we can't preview it.");
63+ }
64+ }
65+ });
66+ </script>
67+
5468Introduction {#intro}
5569=====================
5670
@@ -238,10 +252,10 @@ and a percentage of 100% returns the same color converted to the specified color
238252
239253 <figure id="fig-LCH-peru-goldenrod">
240254 <object data="images/CH-mixing.svg" width=480 height=480>
241- <p> A mixture of two colours, and the mixed output.
242- We are looking down the CIE L axis onto the ab plane.
243- There are two axes, labelled <em> a</em> and <em> b</em>
244- which cross at the origin,
255+ <p> A mixture of two colours, and the mixed output.
256+ We are looking down the CIE L axis onto the ab plane.
257+ There are two axes, labelled <em> a</em> and <em> b</em>
258+ which cross at the origin,
245259 which is in the centre of the plot.</p>
246260 </object>
247261 <figcaption> Mixtures of peru and palegoldenrod in CIE LCH.
@@ -280,10 +294,10 @@ and a percentage of 100% returns the same color converted to the specified color
280294
281295 <figure id="fig-LCH-teal-olive">
282296 <object data="images/CH-mixing3.svg" width=500 height=500>
283- <p> A mixture of two colours, and the mixed output.
284- We are looking down the CIE L axis onto the ab plane.
285- There are two axes, labelled <em> a</em> and <em> b</em>
286- which cross at the origin,
297+ <p> A mixture of two colours, and the mixed output.
298+ We are looking down the CIE L axis onto the ab plane.
299+ There are two axes, labelled <em> a</em> and <em> b</em>
300+ which cross at the origin,
287301 which is in the centre of the plot.
288302 </p>
289303 </object>
0 commit comments