Skip to content

Commit cb3d714

Browse files
committed
fix tests
1 parent 4bec5b5 commit cb3d714

12 files changed

+1539
-162
lines changed

test/output/aaplCloseAxisMargins.svg

Lines changed: 7 additions & 7 deletions
Loading

test/output/aaplCloseLabel.svg

Lines changed: 6 additions & 6 deletions
Loading

test/output/aaplCloseLabelTop.svg

Lines changed: 6 additions & 6 deletions
Loading

test/output/aspectRatioMargins.svg

Lines changed: 0 additions & 52 deletions
This file was deleted.

test/output/marginAspectRatio.html

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
<span><svg class="plot" fill="currentColor" font-family="system-ui, sans-serif" font-size="10" text-anchor="middle" width="109" height="99" viewBox="0 0 109 99" style="border: 1px solid steelblue; margin-bottom: 1em;" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
22
<style>
3-
.plot {
3+
:where(.plot) {
4+
--plot-background: white;
45
display: block;
5-
background: white;
66
height: auto;
77
height: intrinsic;
88
max-width: 100%;
99
}
1010

11-
.plot text,
12-
.plot tspan {
11+
:where(.plot text),
12+
:where(.plot tspan) {
1313
white-space: pre;
1414
}
1515
</style>
16-
<g aria-label="y-grid" stroke="currentColor" stroke-opacity="0.1" transform="translate(0,0.5)">
16+
<g aria-label="y-grid" aria-hidden="true" stroke="currentColor" stroke-opacity="0.1" transform="translate(0,0.5)">
1717
<line x1="40" x2="89" y1="69" y2="69"></line>
1818
<line x1="40" x2="89" y1="20" y2="20"></line>
1919
</g>
20-
<g aria-label="y-axis tick" fill="none" stroke="currentColor" transform="translate(0,0.5)">
20+
<g aria-label="y-axis tick" aria-hidden="true" fill="none" stroke="currentColor" transform="translate(0,0.5)">
2121
<path transform="translate(40,69)" d="M0,0L-6,0"></path>
2222
<path transform="translate(40,20)" d="M0,0L-6,0"></path>
2323
</g>
2424
<g aria-label="y-axis tick label" text-anchor="end" font-variant="tabular-nums" transform="translate(-8.5,0.5)">
2525
<text y="0.32em" transform="translate(40,69)">1,000</text>
2626
<text y="0.32em" transform="translate(40,20)">1,001</text>
2727
</g>
28-
<g aria-label="x-grid" stroke="currentColor" stroke-opacity="0.1" transform="translate(0.5,0)">
28+
<g aria-label="x-grid" aria-hidden="true" stroke="currentColor" stroke-opacity="0.1" transform="translate(0.5,0)">
2929
<line x1="40" x2="40" y1="20" y2="69"></line>
3030
<line x1="89" x2="89" y1="20" y2="69"></line>
3131
</g>
32-
<g aria-label="x-axis tick" fill="none" stroke="currentColor" transform="translate(0.5,0)">
32+
<g aria-label="x-axis tick" aria-hidden="true" fill="none" stroke="currentColor" transform="translate(0.5,0)">
3333
<path transform="translate(40,69)" d="M0,0L0,6"></path>
3434
<path transform="translate(89,69)" d="M0,0L0,6"></path>
3535
</g>
@@ -40,36 +40,36 @@
4040
</svg>
4141
<svg class="plot" fill="currentColor" font-family="system-ui, sans-serif" font-size="10" text-anchor="middle" width="110" height="80" viewBox="0 0 110 80" style="border: 1px solid steelblue; margin-bottom: 1em;" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
4242
<style>
43-
.plot {
43+
:where(.plot) {
44+
--plot-background: white;
4445
display: block;
45-
background: white;
4646
height: auto;
4747
height: intrinsic;
4848
max-width: 100%;
4949
}
5050

51-
.plot text,
52-
.plot tspan {
51+
:where(.plot text),
52+
:where(.plot tspan) {
5353
white-space: pre;
5454
}
5555
</style>
56-
<g aria-label="y-grid" stroke="currentColor" stroke-opacity="0.1" transform="translate(0,0.5)">
56+
<g aria-label="y-grid" aria-hidden="true" stroke="currentColor" stroke-opacity="0.1" transform="translate(0,0.5)">
5757
<line x1="60" x2="90" y1="50" y2="50"></line>
5858
<line x1="60" x2="90" y1="20" y2="20"></line>
5959
</g>
60-
<g aria-label="y-axis tick" fill="none" stroke="currentColor" transform="translate(0,0.5)">
60+
<g aria-label="y-axis tick" aria-hidden="true" fill="none" stroke="currentColor" transform="translate(0,0.5)">
6161
<path transform="translate(60,50)" d="M0,0L-6,0"></path>
6262
<path transform="translate(60,20)" d="M0,0L-6,0"></path>
6363
</g>
6464
<g aria-label="y-axis tick label" text-anchor="end" font-variant="tabular-nums" transform="translate(-8.5,0.5)">
6565
<text y="0.32em" transform="translate(60,50)">1,000</text>
6666
<text y="0.32em" transform="translate(60,20)">1,001</text>
6767
</g>
68-
<g aria-label="x-grid" stroke="currentColor" stroke-opacity="0.1" transform="translate(0.5,0)">
68+
<g aria-label="x-grid" aria-hidden="true" stroke="currentColor" stroke-opacity="0.1" transform="translate(0.5,0)">
6969
<line x1="60" x2="60" y1="20" y2="50"></line>
7070
<line x1="90" x2="90" y1="20" y2="50"></line>
7171
</g>
72-
<g aria-label="x-axis tick" fill="none" stroke="currentColor" transform="translate(0.5,0)">
72+
<g aria-label="x-axis tick" aria-hidden="true" fill="none" stroke="currentColor" transform="translate(0.5,0)">
7373
<path transform="translate(60,50)" d="M0,0L0,6"></path>
7474
<path transform="translate(90,50)" d="M0,0L0,6"></path>
7575
</g>
@@ -80,25 +80,25 @@
8080
</svg>
8181
<svg class="plot" fill="currentColor" font-family="system-ui, sans-serif" font-size="10" text-anchor="middle" width="130" height="100" viewBox="0 0 130 100" style="border: 1px solid steelblue; margin-bottom: 1em;" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
8282
<style>
83-
.plot {
83+
:where(.plot) {
84+
--plot-background: white;
8485
display: block;
85-
background: white;
8686
height: auto;
8787
height: intrinsic;
8888
max-width: 100%;
8989
}
9090

91-
.plot text,
92-
.plot tspan {
91+
:where(.plot text),
92+
:where(.plot tspan) {
9393
white-space: pre;
9494
}
9595
</style>
96-
<g aria-label="y-grid" stroke="currentColor" stroke-opacity="0.1" transform="translate(0,0.5)">
96+
<g aria-label="y-grid" aria-hidden="true" stroke="currentColor" stroke-opacity="0.1" transform="translate(0,0.5)">
9797
<line x1="60" x2="110" y1="70" y2="70"></line>
9898
<line x1="60" x2="110" y1="45" y2="45"></line>
9999
<line x1="60" x2="110" y1="20" y2="20"></line>
100100
</g>
101-
<g aria-label="y-axis tick" fill="none" stroke="currentColor" transform="translate(0,0.5)">
101+
<g aria-label="y-axis tick" aria-hidden="true" fill="none" stroke="currentColor" transform="translate(0,0.5)">
102102
<path transform="translate(60,70)" d="M0,0L-6,0"></path>
103103
<path transform="translate(60,45)" d="M0,0L-6,0"></path>
104104
<path transform="translate(60,20)" d="M0,0L-6,0"></path>
@@ -108,11 +108,11 @@
108108
<text y="0.32em" transform="translate(60,45)">1,000.5</text>
109109
<text y="0.32em" transform="translate(60,20)">1,001.0</text>
110110
</g>
111-
<g aria-label="x-grid" stroke="currentColor" stroke-opacity="0.1" transform="translate(0.5,0)">
111+
<g aria-label="x-grid" aria-hidden="true" stroke="currentColor" stroke-opacity="0.1" transform="translate(0.5,0)">
112112
<line x1="60" x2="60" y1="20" y2="70"></line>
113113
<line x1="110" x2="110" y1="20" y2="70"></line>
114114
</g>
115-
<g aria-label="x-axis tick" fill="none" stroke="currentColor" transform="translate(0.5,0)">
115+
<g aria-label="x-axis tick" aria-hidden="true" fill="none" stroke="currentColor" transform="translate(0.5,0)">
116116
<path transform="translate(60,70)" d="M0,0L0,6"></path>
117117
<path transform="translate(110,70)" d="M0,0L0,6"></path>
118118
</g>

0 commit comments

Comments
 (0)