Skip to content

Commit 280cfda

Browse files
committed
Correct variations test and add utils to server
1 parent 4313b87 commit 280cfda

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

docs/utils/Typeface-tester.html

+14-2
Original file line numberDiff line numberDiff line change
@@ -201,34 +201,46 @@
201201
}
202202

203203
.weight-230 {
204+
font-family: var(--custom-font);
204205
font-weight: 230;
205206
}
206207

207208
.weight-normal {
209+
font-family: var(--custom-font);
208210
font-weight: normal;
209211
}
210212

211213
.weight-bold {
214+
font-family: var(--custom-font);
212215
font-weight: bold;
213216
}
214217

215218
.weight-850 {
219+
font-family: var(--custom-font);
216220
font-weight: 850;
217221
}
218222

219223
.width-ec {
224+
font-family: var(--custom-font);
220225
font-stretch: extra-condensed;
221226
}
222227

223228
.width-normal {
229+
font-family: var(--custom-font);
224230
font-stretch: normal;
225231
}
226232

227233
.width-ee {
234+
font-family: var(--custom-font);
228235
font-stretch: extra-expanded;
229236
}
230237

231238
.optical-sizing {
239+
font-family: var(--custom-font);
240+
}
241+
242+
.optical-sizing-none {
243+
font-family: var(--custom-font);
232244
font-optical-sizing: none;
233245
}
234246

@@ -1143,9 +1155,9 @@ <h3>Font width</h3>
11431155
<section id="font-optical-sizing" data-checker="on">
11441156
<h3>Font optical sizing</h3>
11451157

1146-
<p>This paragraph should allow the browser to enable optical sizing i.e. contrast of strokes and serifs.</p>
1158+
<p class="optical-sizing">This paragraph should allow the browser to enable optical sizing i.e. contrast of strokes and serifs.</p>
11471159

1148-
<p class="optical-sizing">This paragraph should forbid the browser to enable optical sizing i.e. contrast of strokes and serifs.</p>
1160+
<p class="optical-sizing-none">This paragraph should forbid the browser to enable optical sizing i.e. contrast of strokes and serifs.</p>
11491161
</section>
11501162
</section>
11511163
</main>

server.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ httpServer.listen(httpPort, (err) => {
1515

1616
app.use("/tests", express.static(__dirname + "/tests"));
1717
app.use("/css/demo", express.static(__dirname + "/css/demo"));
18-
app.use("/css/dist", express.static(__dirname + "/css/dist"));
18+
app.use("/css/dist", express.static(__dirname + "/css/dist"));
19+
app.use("/docs/utils", express.static(__dirname + "/docs/utils"));

0 commit comments

Comments
 (0)