Skip to content

Commit

Permalink
Added a filter for experimental specifications
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianZ committed Jan 11, 2022
1 parent c1b83bd commit ebb313a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions csstest.js
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,8 @@ function runTests(filter = '') {
// Filter list of specifications
if (filter === 'stable' && Specs[spec]?.status?.stability !== 'stable') {
continue;
} else if (filter === 'experimental' && Specs[spec]?.status?.stability === 'stable') {
continue;
} else if (Number(filter) > 0) {
if (Specs[spec]?.status?.['first-snapshot'] === undefined) {
continue;
Expand Down
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ <h1>Filter:</h1>
<select id="filter">
<option value="" title="All specifications including experimental ones">All</option>
<option value="stable" title="All specifications listed in the latest CSS snapshot, their predecessors and others that won't change much anymore">Stable</option>
<option value="experimental" title="All specifications not listed in the latest CSS snapshot">Experimental</option>
<optgroup label="CSS snapshots">
<option value="2007" title="All specifications marked as official part of the CSS 2007 snapshot">CSS 2007</option>
<option value="2010" title="All specifications marked as official part of the CSS 2010 snapshot">CSS 2010</option>
Expand Down

0 comments on commit ebb313a

Please sign in to comment.