Skip to content

Commit 7931965

Browse files
authored
[fill-stroke-3][editorial] Fixed display of figure 8 (#13223)
The paths incorrectly split the data points with commas instead of the x and y coordinates _within_ the data points. And the change also fixes the display for dark themes.
1 parent e92ed20 commit 7931965

File tree

1 file changed

+19
-13
lines changed

1 file changed

+19
-13
lines changed

fill-stroke/Overview.bs

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -825,24 +825,30 @@ Stroke Geometry {#stroke-geometry}
825825
</figure>
826826

827827
<figure>
828-
<svg style=" width: 600px; height: 180px;">
828+
<svg style=" width: 600px; height: 180px; color-scheme: light dark;">
829+
<style>
830+
@media (prefers-color-scheme: dark) {
831+
path[stroke="black"] { stroke: white; }
832+
path[stroke="white"] { stroke: black; }
833+
}
834+
</style>
829835
<g transform="translate(0, 0)">
830-
<path fill=none stroke=black stroke-width=100 d="M 10 50, h 100" />
831-
<path fill=none stroke=black stroke-width=100 d="M 110 50, l -50 100" />
832-
<path fill=none stroke=white stroke-dasharray="5 3" stroke-width=1 d="M 10 50, h 100, l -100 200" />
833-
<path fill="hsla(0, 50%, 70%, 1)" d="M 110 50, v -50, l 44.72 72.36, z" />
836+
<path fill=none stroke=black stroke-width=100 d="M 10 50 h 100" />
837+
<path fill=none stroke=black stroke-width=100 d="M 110 50 l -50 100" />
838+
<path fill=none stroke=white stroke-dasharray="5 3" stroke-width=1 d="M 10 50 h 100 l -100 200" />
839+
<path fill="hsla(0, 50%, 70%, 1)" d="M 110 50 v -50 l 44.72 72.36 z" />
834840
</g>
835841
<g transform="translate(200,0)">
836-
<path fill=none stroke=black stroke-width=100 d="M 10 50, h 100" />
837-
<path fill=none stroke=black stroke-width=100 d="M 110 50, l -50 100" />
838-
<path fill=none stroke=white stroke-dasharray="5 3" stroke-width=1 d="M 10 50, h 100, l -100 200" />
839-
<path fill="hsla(0, 50%, 70%, 1)" d="M 110 50, v -50, a 50 50 0 0 1 44.72 72.36, z" />
842+
<path fill=none stroke=black stroke-width=100 d="M 10 50 h 100" />
843+
<path fill=none stroke=black stroke-width=100 d="M 110 50 l -50 100" />
844+
<path fill=none stroke=white stroke-dasharray="5 3" stroke-width=1 d="M 10 50 h 100 l -100 200" />
845+
<path fill="hsla(0, 50%, 70%, 1)" d="M 110 50 v -50 a 50 50 0 0 1 44.72 72.36 z" />
840846
</g>
841847
<g transform="translate(400, 0)">
842-
<path fill=none stroke=black stroke-width=100 d="M 10 50, h 100" />
843-
<path fill=none stroke=black stroke-width=100 d="M 110 50, l -50 100" />
844-
<path fill=none stroke=white stroke-dasharray="5 3" stroke-width=1 d="M 10 50, h 100, l -100 200" />
845-
<path fill="hsla(0, 50%, 70%, 1)" d="M 110 50, v -50, h 80, L 154.72 72.36, z" />
848+
<path fill=none stroke=black stroke-width=100 d="M 10 50 h 100" />
849+
<path fill=none stroke=black stroke-width=100 d="M 110 50 l -50 100" />
850+
<path fill=none stroke=white stroke-dasharray="5 3" stroke-width=1 d="M 10 50 h 100 l -100 200" />
851+
<path fill="hsla(0, 50%, 70%, 1)" d="M 110 50 v -50 h 80 L 154.72 72.36 z" />
846852
</g>
847853
</svg>
848854
<figcaption>

0 commit comments

Comments
 (0)