Skip to content

Commit

Permalink
List nonstandard features; add icons for deprecated and nonstandard
Browse files Browse the repository at this point in the history
  • Loading branch information
Elchi3 committed Jul 24, 2024
1 parent 0703766 commit b3efa40
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ for (const feature of bcd.walk(["api", "css", "javascript", "html", "http", "svg
}

// Look for missing MDN URLs
if (!feature.mdn_url
&& feature.data.__compat.status.standard_track ) {
if (!feature.mdn_url) {
all.push({id: feature.id, compat: feature.data.__compat, status: baseline});
}
}
Expand Down
8 changes: 8 additions & 0 deletions site/_includes/baseline.njk
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
{% if feature.compat.status.deprecated %}
<img class="deprecated" src="/assets/deprecated.svg" width="20px" height="20px" alt="deprecated" title="deprecated" />
{% endif %}

{% if not feature.compat.status.standard_track %}
<img class="nonstandard" src="/assets/nonstandard.svg" width="20px" height="20px" alt="non-standard" title="non-standard" />
{% endif %}

<span class="availability baseline-{{ feature.status.baseline }}">
{% if not feature.status.baseline %}
Limited availability. In {{feature.status.support | length }} browsers only:
Expand Down
3 changes: 3 additions & 0 deletions site/assets/deprecated.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions site/assets/nonstandard.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b3efa40

Please sign in to comment.