Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added filter for standardization groups #244

Merged
merged 1 commit into from
Aug 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions csstest.js
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,16 @@ window.runTests = function (filter = '') {
}
} else if (filter === '' && Specs[spec].status && Specs[spec].status['first-snapshot'] === 1998) {
continue;
} else if (filter === 'csswg' && Specs[spec].links.devtype && !Specs[spec].links.devtype.match(/fxtf/)) {
continue;
} else if (filter === 'houdini' && (!('devtype' in Specs[spec].links) || !Specs[spec].links.devtype.match(/houdini/))) {
continue;
} else if (filter === 'svgwg' && Specs[spec].links.devtype !== 'svgwg') {
continue;
} else if (filter === 'whatwg' && Specs[spec].links.devtype !== 'whatwg') {
continue;
} else if (filter === 'others' && (!('devtype' in Specs[spec].links) || Specs[spec].links.devtype.match(/fxtf|houdini|svgwg|whatwg/))) {
continue;
}

specs.push({
Expand Down
7 changes: 7 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ <h1>Filter:</h1>
<option value="all" 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="Standardization groups">
<option value="csswg" title="All specifications managed by the CSS Working Group (CSSWG) except CSS Houdini">CSS</option>
<option value="houdini" title="All specifications related to CSS Houdini managed by the CSS Working Group (CSSWG)">CSS Houdini</option>
<option value="svgwg" title="All specifications managed by the SVG Working Group (SVGWG)">SVG</option>
<option value="whatwg" title="All specifications managed by the Web Hypertext Application Technology Working Group (WHATWG)">WHATWG</option>
<option value="others" title="All specifications managed by other standardization groups">Others</option>
</optgroup>
<optgroup label="CSS snapshots">
<option value="1998" title="Everything included in CSS 2.2">CSS 2.2</option>
<option value="2007" title="All specifications marked as official part of the CSS 2007 snapshot">CSS 2007</option>
Expand Down