Skip to content

Commit d195d35

Browse files
committed
[css-color-4][editorial] html validity
1 parent 0304e8a commit d195d35

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

css-color-4/Overview.bs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6796,7 +6796,7 @@ Serializing sRGB values</h3>
67966796
<div class="example" id="ex-canvas-srgb">
67976797
For example, fill style is set to <span class="swatch" style="--color: rgb(255, 0, 255)"></span> magenta:
67986798

6799-
<pre lang-js>
6799+
<pre class="lang-js">
68006800
context.fillStyle = "rgb(255, 0, 255)"
68016801
console.log(context.fillStyle); // "#ff00ff"
68026802
</pre>
@@ -6813,7 +6813,7 @@ Serializing sRGB values</h3>
68136813
<div class="example" id="ex-canvas-p3">
68146814
For example, fill style is set to <span class="swatch" style="--color: rgb(48.63% 13.85% 15.73%)"></span> a dark brown, in CIE Lab:
68156815

6816-
<pre lang-js>
6816+
<pre class="lang-js">
68176817
context.fillStyle = "lab(29% 39 20)";
68186818
console.log(context.fillStyle); // "lab(29 39 20)"
68196819
</pre>
@@ -6824,7 +6824,7 @@ Serializing sRGB values</h3>
68246824
<div class="example" id="ex-srgb-alpha">
68256825
For example, fill style is set to <span class="swatch" style="--color: #ff00ffed"></span> semi-transparent magenta:
68266826

6827-
<pre lang-js>
6827+
<pre class="lang-js">
68286828
context.fillStyle = "#ff00ffed";
68296829
console.log(context.fillStyle); // "rgba(255, 0, 255, 0.93)"
68306830
</pre>
@@ -6837,7 +6837,7 @@ Serializing sRGB values</h3>
68376837
For example, a color picker has returned the following values,
68386838
in the sRGB color space:
68396839

6840-
<pre lang-js>
6840+
<pre class="lang-js">
68416841
[37, 164, 87, 237]
68426842
</pre>
68436843

0 commit comments

Comments
 (0)