Skip to content

Commit 16f2c6e

Browse files
committed
Some minor changes (style & content) for WPT pass rates
1 parent 5f2f633 commit 16f2c6e

File tree

3 files changed

+15
-11
lines changed

3 files changed

+15
-11
lines changed

about.md

-6
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,6 @@ Since its creation in 2012, Servo has contributed to W3C and WHATWG web standard
2121

2222
Servo's roadmap is defined in the project wiki: <https://github.com/servo/servo/wiki/Roadmap>
2323

24-
## WPT pass rates
25-
26-
The chart below tracks our pass rates in several *focus areas* of the [Web Platform Tests](http://web-platform-tests.org/), as well as the whole CSS and WPT test suites. To drill down the pass rates under a focus area, see the [Servo results on wpt.fyi](https://wpt.fyi/runs?label=master&product=servo), or for more details see our full WPT dashboard at [wpt.servo.org](https://wpt.servo.org).
27-
28-
<iframe src="https://wpt.servo.org/?embed" scrolling="no" style="width: 100%; aspect-ratio: 16/9;"></iframe>
29-
3024
## Presentations
3125

3226
* [Why Build a New Browser Engine in Rust?](https://www.youtube.com/watch?v=s0MIHKv45C0) by Martin Robinson (Jan 2025 at [Barcelona Free Software](https://meetu.ps/e/NKqfz/mXgxF/i))

assets/js/load-chart.js

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ function setupChart () {
5050
const options = {
5151
height: 350,
5252
fontSize: 16,
53+
fontName: "'Space Grotesk', sans-serif",
5354
legend: {
5455
position: 'top',
5556
...(dark_mode

wpt.md

+14-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: default.html
3-
title: WPT Scores
3+
title: WPT Pass Rates
44
---
55
<style>
66
.odd {
@@ -17,7 +17,6 @@ title: WPT Scores
1717

1818
#score-table {
1919
width: 100%;
20-
margin-top: 30px;
2120
}
2221

2322
#score-table th {
@@ -41,24 +40,34 @@ title: WPT Scores
4140
padding: 10px;
4241
margin-top: 20px;
4342
margin-bottom: 40px;
44-
font-size: 1rem;
43+
}
44+
45+
#servo-chart, .chart-filter-bar, .chart-filter, #score-table {
46+
max-width: 48rem;
4547
}
4648

4749
.chart-filter-bar {
4850
display: flex;
4951
flex-wrap: wrap;
5052
column-gap: 40px;
5153
row-gap: 20px;
54+
place-content: center;
5255
}
5356

5457
.chart-filter {
5558
display: flex;
5659
align-items: center;
5760
gap: 20px;
61+
flex-wrap: wrap;
5862
}
5963
</style>
6064
<div class="inner-container wpt-score-page">
6165
<h1>{{ title }}</h1>
66+
<p class="subtitle">
67+
68+
The chart below tracks our pass rates in several *focus areas* of the [Web Platform Tests](http://web-platform-tests.org/), as well as the whole CSS and WPT test suites. To drill down the pass rates under a focus area, see the [Servo results on wpt.fyi](https://wpt.fyi/results/?product=servo).
69+
70+
</p>
6271
<br>
6372
<div class="chart-filter-bar">
6473
<div class="chart-filter">
@@ -75,15 +84,15 @@ title: WPT Scores
7584
<thead id="score-table-header"><tr><th>Test Suite</th><th>Score</th></tr></thead>
7685
<tbody id="score-table-body"></tbody>
7786
</table>
78-
<div id="score-explanation">
87+
<p id="score-explanation">
7988
Scores are calculated as percentages of total <b>enabled</b>
8089
tests within the suite that pass. A passing test with no
8190
subtests gets a score of 1 while a test with subtests gets a
8291
score between 0 and 1 representing the fraction of passing
8392
subtests within that test. This is different from the
8493
percentages on wpt.fyi which is calculated by giving equal
8594
weight to both top-level tests and subtests.
86-
</div>
95+
</p>
8796
</div>
8897
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
8998
<script type="text/javascript" src="{{ '/js/load-chart.js' | url }}"></script>

0 commit comments

Comments
 (0)