<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[213121] trunk/Websites/webkit.org</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/213121">213121</a></dd>
<dt>Author</dt> <dd>simon.fraser@apple.com</dd>
<dt>Date</dt> <dd>2017-02-27 21:00:28 -0800 (Mon, 27 Feb 2017)</dd>
</dl>

<h3>Log Message</h3>
<pre>Add css-status page on webkit.org
https://bugs.webkit.org/show_bug.cgi?id=168921

Reviewed by Sam Weinig.

Add a page that shows the status of CSS properties and values, scraped from Source/WebCore/css/CSSProperties.json.

This is modeled after the feature status page. Properties can be filtered by status
and the spec they belong to.

* wp-content/themes/webkit/css-status.php: Added.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkWebsiteswebkitorgChangeLog">trunk/Websites/webkit.org/ChangeLog</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkWebsiteswebkitorgwpcontentthemeswebkitcssstatusphp">trunk/Websites/webkit.org/wp-content/themes/webkit/css-status.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkWebsiteswebkitorgChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Websites/webkit.org/ChangeLog (213120 => 213121)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/webkit.org/ChangeLog        2017-02-28 04:52:17 UTC (rev 213120)
+++ trunk/Websites/webkit.org/ChangeLog        2017-02-28 05:00:28 UTC (rev 213121)
</span><span class="lines">@@ -1,3 +1,17 @@
</span><ins>+2017-02-27  Simon Fraser  &lt;simon.fraser@apple.com&gt;
+
+        Add css-status page on webkit.org
+        https://bugs.webkit.org/show_bug.cgi?id=168921
+
+        Reviewed by Sam Weinig.
+        
+        Add a page that shows the status of CSS properties and values, scraped from Source/WebCore/css/CSSProperties.json.
+        
+        This is modeled after the feature status page. Properties can be filtered by status
+        and the spec they belong to.
+
+        * wp-content/themes/webkit/css-status.php: Added.
+
</ins><span class="cx"> 2017-02-23  Joseph Pecoraro  &lt;pecoraro@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         [Resource Timing] Add Experimental Feature Flag
</span></span></pre></div>
<a id="trunkWebsiteswebkitorgwpcontentthemeswebkitcssstatusphp"></a>
<div class="addfile"><h4>Added: trunk/Websites/webkit.org/wp-content/themes/webkit/css-status.php (0 => 213121)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/webkit.org/wp-content/themes/webkit/css-status.php                                (rev 0)
+++ trunk/Websites/webkit.org/wp-content/themes/webkit/css-status.php        2017-02-28 05:00:28 UTC (rev 213121)
</span><span class="lines">@@ -0,0 +1,1448 @@
</span><ins>+&lt;?php
+/**
+ * Template Name: CSS Status Page
+ **/
+?&gt;
+&lt;?php get_header(); ?&gt;
+&lt;script&gt;
+function xhrPromise(url) {
+    return new Promise(function(resolve, reject) {
+        var xhrRequest = new XMLHttpRequest();
+        xhrRequest.open('GET', url, true);
+        xhrRequest.responseType = &quot;json&quot;;
+
+        xhrRequest.onload = function() {
+            if (xhrRequest.status == 200 || xhrRequest.status == 0) {
+                if (xhrRequest.response) {
+                    resolve(xhrRequest.response);
+                } else {
+                    reject({ request: xhrRequest, url:url});
+                }
+            } else {
+                reject({ request: xhrRequest, url:url});
+            }
+        };
+        xhrRequest.onerror = function() {
+            reject({ request: xhrRequest, url:url});
+        };
+        xhrRequest.send();
+    });
+}
+
+var origin = new URL(&quot;https://&lt;?php echo strpos(WP_HOST, &quot;webkit.org&quot;) !== false ? &quot;svn.webkit.org&quot; : WP_HOST; ?&gt;/&quot;);
+var loadCSSProperties = xhrPromise(new URL(&quot;/repository/webkit/trunk/Source/WebCore/css/CSSProperties.json&quot;, origin));
+
+/*
+    TODO:
+        &quot;r&quot; not labeled as SVG. needs two links (circle and radialGradient)
+        filter on unspecified properties/values
+
+        need separate filters on properties and values
+        
+        background-repeat-x isn't a web-exposed longhand in the background property.
+
+        Need to indicate that some properties apply to SVG and HTML:
+            pointer-events
+            paint-order
+
+        Annotate appearance values.
+        Annotate things that only work in @rules like src or page, size, unicode-range, src, device orientation stuff.
+
+        Denote replacement properties &amp; values (e.g. word-wrap is now overflow-wrap.) other than in comments
+
+        Show status comments
+        Mark things pending removal
+        Add a removed status.
+
+    PROPERTY ISSUES
+        -webkit-backface-visibility is not unprefixed
+        &quot;animatable&quot; wrong for animation properties.
+
+    Mark things as not applicable to the open web:
+            -webkit-border-fit
+            -apple-trailing-word
+            -webkit-column-progress
+            -webkit-column-axis
+
+            -webkit-border-fit?. r19862 for iChat.
+            status of margin-collapse properties
+
+    Mark things as internal-only:
+            -webkit-marquee*
+            -webkit-text-security
+            -webkit-text-decorations-in-effect
+            -webkit-nbsp-mode ?
+            -webkit-font-size-delta?
+*/
+&lt;/script&gt;
+
+&lt;style&gt;
+
+.page {
+    display: -webkit-flex;
+    display: flex;
+    -webkit-flex-wrap: wrap;
+    flex-wrap: wrap;
+    -webkit-justify-content: space-between;
+    justify-content: space-between;
+    box-sizing: border-box;
+    width: 100%;
+}
+
+.page h1 {
+    font-size: 4.2rem;
+    font-weight: 200;
+    line-height: 6rem;
+    color: black;
+    text-align: left;
+    margin: 3rem auto;
+    width: 100%;
+}
+
+.page h1 a {
+    color: #444;
+}
+
+.page h2 {
+    font-weight: 200;
+    font-size: 3rem;
+}
+
+.page h3 {
+    font-weight: 400;
+    font-size: 2.2rem;
+}
+
+.page p {
+    margin-bottom: 3rem;
+}
+
+.property-count {
+    text-align: right;
+    color: #999;
+}
+
+#property-list {
+    display: inline-block;
+    width: 65%;
+    word-wrap: break-word;
+}
+
+/* Hide the internal links on search since they are unlikely to work. */
+#search:required:valid + *  .internal-reference {
+    display: none;
+}
+
+.property-header &gt; h3:first-of-type {
+    margin: 0;
+}
+
+ul.properties {
+    padding: 0;
+}
+
+.properties .property {
+    position: relative;
+    display: block;
+    background-color: #f9f9f9;
+    border: 1px solid #ddd;
+    border-radius: 3px;
+    padding: 1em;
+    margin: 1em 0 !important;
+    max-height: intrinsic;
+    min-height: 3rem;
+    overflow-y: hidden;
+    cursor: pointer;
+    -webkit-transition: background-color 0.3s ease-in;
+    -moz-transition: background-color 0.3s ease-in;
+    transition: background-color 0.3s ease-in;
+}
+
+.properties .property:hover {
+    background-color: white;
+}
+
+.property.opened {
+    background-color: white;
+    max-height: 120rem;
+}
+
+.property-description .toggleable {
+    display: none;
+}
+
+.property.opened .property-description .toggleable {
+    display: block;
+    margin-top: 1rem;
+}
+
+.more-info {
+    margin-top: 0.5em;
+}
+
+.sub-features {
+    font-size: 1.5rem;
+    color: #555;
+}
+
+.sub-features ul {
+    list-style: none;
+    display: inline-block;
+    padding: 0;
+    margin: 0;
+}
+
+.sub-features li {
+    display: inline;
+}
+
+.sub-features li:after {
+    content: &quot;, &quot;;
+}
+
+.sub-features li:last-child:after {
+    content: &quot;&quot;;
+}
+
+ul.values {
+    margin-left: 3em;
+    margin-top: 0.5em;
+    cursor: default;
+}
+
+.values li.hidden {
+    color: #444;
+}
+
+.property-header {
+    position: relative;
+    padding-right: 3rem;
+}
+
+.property-header:after {
+    display: inline-block;
+    content: &quot;&quot;;
+    background: url('images/menu-down.svg') no-repeat 50%;
+    background-size: 2rem;
+    width: 2rem;
+    height: 2rem;
+    position: absolute;
+    right: 0;
+    top: 0.5rem;
+    -webkit-transition: transform 0.3s ease-out;
+    -moz-transition: transform 0.3s ease-out;
+    transition: transform 0.3s ease-out;
+}
+
+.property.opened .property-header:after {
+    -webkit-transform: rotateX(-180deg);
+    -moz-transform: rotateX(-180deg);
+    transform: rotateX(-180deg);
+}
+
+.property-header h3 .internal-reference a {
+    color: #999;
+    text-decoration: none;
+    padding-left: 0.5em;
+}
+
+.property-header h3 .spec-label {
+    color: #999;
+    text-decoration: none;
+    font-weight: 200;
+}
+
+.property-header h3 .spec-label a {
+    color: #999;
+    text-decoration: none;
+    font-weight: 200;
+}
+
+.spec-label::before {
+    content: ' — ';
+}
+.property-header h3 a {
+    color: #444;
+}
+
+.property-header .property-alias {
+    font-size: smaller;
+    color: #999;
+}
+
+.property-header p {
+    margin-top: 0.5rem;
+    margin-bottom: 0.5rem;
+}
+
+.value-alias {
+    color: #999;
+}
+
+.value-status {
+    color: #999;
+}
+
+.property-header h3 .internal-reference a:hover {
+    color: inherit;
+    text-decoration: underline;
+}
+
+.property.is-hidden {
+    display: none;
+}
+
+ul.property-details {
+    margin: 0;
+}
+.property-statusItem {
+    margin-right: 0.5em;
+}
+
+.property-status {
+    font-size: 2rem;
+    display: inline-block;
+    position: relative;
+    min-width: 4em;
+    text-align: right;
+    display: none; /* Hide status for now. */
+}
+
+.property-status,
+.property-status a {
+    color: #999;
+}
+
+.property .status-marker {
+    width: 0;
+    height: 0;
+    position: absolute;
+    top: 0;
+    left: 0;
+    border-style: solid;
+    border-width: 20px 20px 0 0;
+    border-color: transparent transparent transparent transparent;
+}
+
+#status-filters .done,
+.property-status.done,
+.property-status.done a {
+    color: #339900;
+}
+
+.status-marker.done {
+    border-color: #339900 transparent transparent transparent;
+}
+
+#status-filters .in-development,
+.property-status.in-development,
+.property-status.in-development a {
+    color: #f46c0e;
+}
+
+.status-marker.in-development {
+    border-color: #f46c0e transparent transparent transparent;
+}
+
+#status-filters .no-active-development,
+.property-status.no-active-development,
+.property-status.no-active-development a {
+    color: #5858D6;
+}
+
+.status-marker.no-active-development {
+    border-color: #5858D6 transparent transparent transparent;
+}
+
+#status-filters .partial-support,
+.property-status.partial-support,
+.property-status.partial-support a {
+    color: #548c8c;
+}
+
+.status-marker.partial-support {
+    border-color: #548c8c transparent transparent transparent;
+}
+
+#status-filters .prototyping,
+.property-status.prototyping,
+.property-status.prototyping a {
+    color: #007AFF;
+}
+
+.status-marker.prototyping {
+    border-color: #007AFF transparent transparent transparent;
+}
+
+#status-filters .experimental,
+.property-status.experimental,
+.property-status.experimental a {
+    color: #007AFF;
+}
+
+.status-marker.experimental {
+    border-color: #007AFF transparent transparent transparent;
+}
+
+#status-filters .under-consideration,
+.property-status.under-consideration,
+.property-status.under-consideration a {
+    color: #cc9d00;
+}
+
+.status-marker.under-consideration {
+    border-color: #FFC500 transparent transparent transparent;
+}
+
+.property-status.removed,
+.property-status.removed a {
+    color: #999;
+}
+
+.status-marker.removed {
+    border-color: #999 transparent transparent transparent;
+}
+
+#status-filters .non-standard,
+.property-status.non-standard,
+.property-status.non-standard a {
+    color: #8000FF;
+}
+
+.status-marker.non-standard {
+    border-color: #8000FF transparent transparent transparent;
+}
+
+#status-filters .not-considering,
+.property-status.not-considering,
+.property-status.not-considering a {
+    color: #7F7F7F;
+}
+
+.status-marker.not-considering {
+    border-color: #7F7F7F transparent transparent transparent;
+}
+
+#status-filters .not-implemented,
+.property-status.not-implemented,
+.property-status.not-implemented a {
+    color: #4C4C4C;
+}
+
+.status-marker.not-implemented {
+    border-color: #4C4C4C transparent transparent transparent;
+}
+
+#status-filters .obsolete,
+.property-status.obsolete,
+.property-status.obsolete a {
+    color: #804000;
+}
+
+.status-marker.obsolete {
+    border-color: #804000 transparent transparent transparent;
+}
+
+
+sidebar {
+    width: -webkit-calc(33.33% - 3rem);
+    width: -moz-calc(33.33% - 3rem);
+    width: calc(33.33% - 3rem);
+    display: inline-block;
+    margin-right: 3rem;
+    font-size: 2rem;
+    margin-left: 1rem;
+}
+
+.property-filters {
+    position: relative;
+    top: 0;
+    margin-top: 0.5em;
+}
+
+#search {
+    font-size: 2rem;
+    padding: 1rem;
+    border-radius: 3px;
+    border: 1px solid #cccccc;
+    width: 100%;
+    margin-top: 1.5rem;
+    box-sizing: border-box;
+}
+
+.property-filters ul {
+    margin-top: 0.5rem;
+    margin-bottom: 1.5rem;
+}
+
+.property-filters ul li {
+    margin-bottom: 0.5rem;
+}
+
+.property-filters label &gt; input {
+    position: relative;
+    top: -3px;
+}
+
+.prefixes {
+    display: none;
+}
+
+#specifications {
+    max-height: 29rem;
+    overflow: auto;
+}
+
+#specifications li {
+    font-size: smaller;
+    cursor: hand;
+    margin-bottom: 0.5rem;
+    margin-left: 2rem;
+}
+
+h3 a[name], .admin-bar h3 a[name] {
+    top: initial;
+    width: auto;
+    display: inline-block;
+    visibility: visible; /* Override visibility:hidden from themes/webkit/style.css */
+}
+
+@media only screen and (max-width: 508px) {
+    #property-filters,
+    #property-list {
+        width: 100%;
+    }
+
+    #property-filters {
+        border: 1px solid #ddd;
+        border-radius: 3px;
+        background: #f6f6f6;
+        padding: 1rem;
+        box-sizing: border-box;
+        margin-right: 0;
+        margin-bottom: 3rem;
+    }
+
+    .property-header h3 {
+        font-size: 2rem;
+    }
+
+    .property-status {
+        font-size: 1.6rem;
+        margin-top: 0.4rem;
+    }
+}
+
+&lt;/style&gt;
+    &lt;?php if (have_posts()) : while (have_posts()) : the_post(); ?&gt;
+
+        &lt;div class=&quot;page feature-status-page&quot; id=&quot;post-&lt;?php the_ID(); ?&gt;&quot;&gt;
+            &lt;?php echo str_repeat('&amp;nbsp;', 200);?&gt;
+            &lt;h1&gt;&lt;a href=&quot;&lt;?php echo get_permalink() ?&gt;&quot; rel=&quot;bookmark&quot; title=&quot;Permanent Link: &lt;?php the_title(); ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h1&gt;
+
+            &lt;sidebar&gt;
+                &lt;form id=&quot;property-filters&quot; class=&quot;property-filters&quot;&gt;
+                    &lt;h2&gt;Filters&lt;/h2&gt;
+                    &lt;input type=&quot;text&quot; id=&quot;search&quot; placeholder=&quot;Search filter&amp;hellip;&quot; title=&quot;Filter the property list.&quot; required&gt;
+                    &lt;h2&gt;Filter by Status&lt;/h2&gt;
+                    &lt;ul id=&quot;status-filters&quot;&gt;
+                    &lt;/ul&gt;
+                &lt;/form&gt;
+
+                &lt;div class=&quot;prefixes&quot;&gt;
+                    &lt;h2&gt;Filter by Prefix&lt;/h2&gt;
+                    &lt;ul id=&quot;prefix-filters&quot;&gt;
+                    &lt;/ul&gt;
+                &lt;/div&gt;
+            &lt;/sidebar&gt;
+
+            &lt;div id=&quot;property-list&quot;&gt;
+                &lt;div class=&quot;property-count&quot;&gt;
+                    &lt;p&gt;&lt;span id=&quot;property-count&quot;&gt;&lt;/span&gt; &lt;span id=&quot;property-pluralize&quot;&gt;properties&lt;/span&gt;&lt;/p&gt;
+                &lt;/div&gt;
+            &lt;/div&gt;
+
+            &lt;template id=&quot;success-template&quot;&gt;
+                &lt;ul class=&quot;properties&quot; id=&quot;properties-container&quot;&gt;&lt;/ul&gt;
+
+                &lt;p&gt;Cannot find something? You can contact &lt;a href=&quot;https://twitter.com/webkit&quot;&gt;@webkit&lt;/a&gt; on Twitter or contact the &lt;a href=&quot;https://lists.webkit.org/mailman/listinfo/webkit-help&quot;&gt;webkit-help&lt;/a&gt; mailing list for questions.&lt;/p&gt;
+                &lt;p&gt;You can also &lt;a href=&quot;/contributing-code/&quot;&gt;contribute to features&lt;/a&gt; directly, the entire project is Open Source. To report bugs on existing features or check existing bug reports, see &lt;a href=&quot;https://bugs.webkit.org&quot;&gt;https://bugs.webkit.org&lt;/a&gt;.&lt;/p&gt;
+            &lt;/template&gt;
+            &lt;template id=&quot;error-template&quot;&gt;
+                &lt;p&gt;Error: unable to load the features list (&lt;span id=&quot;error-message&quot;&gt;&lt;/span&gt;).&lt;/p&gt;
+                &lt;p&gt;If this is not resolved soon, please contact &lt;a href=&quot;https://twitter.com/webkit&quot;&gt;@webkit&lt;/a&gt; on Twitter or the &lt;a href=&quot;https://lists.webkit.org/mailman/listinfo/webkit-help&quot;&gt;webkit-help&lt;/a&gt; mailing list.&lt;/p&gt;
+            &lt;/template&gt;
+        &lt;/div&gt;
+
+    &lt;?php //comments_template(); ?&gt;
+
+    &lt;?php endwhile; else: ?&gt;
+
+        &lt;p&gt;No posts.&lt;/p&gt;
+
+    &lt;?php endif; ?&gt;
+
+
+&lt;script&gt;
+function initializeStatusPage() {
+
+    function sortAlphabetically(array)
+    {
+        function replaceDashPrefix(name)
+        {
+            if (name[0] == '-')
+                return 'Z' + name.slice(1);
+            return name;
+        }
+
+        array.sort(function(a, b) {
+            // Sort the prefixed properties to the end.
+            var aName = replaceDashPrefix(a.name.toLowerCase());
+            var bName = replaceDashPrefix(b.name.toLowerCase());
+
+            var nameCompareResult = aName.localeCompare(bName);
+
+            if (nameCompareResult)
+                return nameCompareResult;
+
+            // Status sort
+            var aStatus = a.status != undefined ? a.status.status.toLowerCase() : '';
+            var bStatus = b.status != undefined ? b.status.status.toLowerCase() : '';
+
+            return aStatus.localeCompare(bStatus);
+        });
+    }
+
+    function propertyNameAliases(propertyObject)
+    {
+        if ('codegen-properties' in propertyObject &amp;&amp; 'aliases' in propertyObject['codegen-properties'])
+            return propertyObject['codegen-properties'].aliases;
+
+        return [];
+    }
+
+    function propertyLonghands(propertyObject)
+    {
+        if ('codegen-properties' in propertyObject &amp;&amp; 'longhands' in propertyObject['codegen-properties'])
+            return propertyObject['codegen-properties'].longhands;
+
+        return [];
+    }
+
+    const prefixRegexp = /^(-webkit-|-epub-|-apple-)(.+)$/;
+
+    function createPropertyView(categoryObject, propertyObject)
+    {
+        function createLinkWithHeading(elementName, heading, linkText, linkUrl)
+        {
+            var container = document.createElement(elementName);
+            if (heading) {
+                container.textContent = heading + &quot;: &quot;;
+            }
+            var link = document.createElement(&quot;a&quot;);
+            link.textContent = linkText;
+            link.href = linkUrl;
+            container.appendChild(link);
+            return container;
+        }
+        
+        function appendValueWithLink(container, value, link)
+        {
+            if (link) {
+                var anchor = document.createElement('a');
+                anchor.href = link;
+                anchor.textContent = value;
+                container.appendChild(anchor);
+                return;
+            }
+            
+            container.textContent = value;
+        }
+
+        function makeTwitterLink(twitterHandle)
+        {
+            if (twitterHandle[0] == &quot;@&quot;)
+                twitterHandle = twitterHandle.substring(1);
+            return &quot;https://twitter.com/&quot; + twitterHandle;
+        }
+
+        var hasSpecificationObject = &quot;specification&quot; in propertyObject;
+        var specificationObject = propertyObject.specification;
+
+        var container = document.createElement('li');
+
+        var hasSpecLink = specificationObject &amp;&amp; &quot;url&quot; in specificationObject;
+        var hasReferenceLink = categoryObject &amp;&amp; &quot;url&quot; in categoryObject;
+        var hasDocumentationLink = (specificationObject &amp;&amp; &quot;documentation-url&quot; in specificationObject) || (categoryObject &amp;&amp; &quot;documentation-url&quot; in categoryObject);
+        var hasContactObject = specificationObject &amp;&amp; &quot;contact&quot; in specificationObject;
+
+        container.addEventListener('click', function (e) {
+            if (container.className.indexOf('opened') !== -1) {
+                container.className = container.className.replace(' opened','');
+            } else container.className += &quot; opened&quot;;
+        });
+
+        container.className = &quot;property&quot;;
+
+        var slug = propertyObject.name.toLowerCase().replace(/ /g, '-');
+        container.setAttribute(&quot;id&quot;, &quot;property-&quot; + slug);
+
+        if (window.location.hash &amp;&amp; window.location.hash == &quot;#&quot; + container.getAttribute('id')) {
+            container.className += &quot; opened&quot;;
+        }
+
+        var cornerStatus = document.createElement('div');
+        cornerStatus.className = &quot;status-marker &quot;;
+        container.appendChild(cornerStatus);
+
+        var descriptionContainer = document.createElement('div');
+        descriptionContainer.className = &quot;property-description&quot;;
+
+        var featureHeaderContainer = document.createElement('div');
+        featureHeaderContainer.className = &quot;property-header&quot;;
+        descriptionContainer.appendChild(featureHeaderContainer);
+
+        var titleElement = document.createElement(&quot;h3&quot;);
+        var anchorLinkElement = document.createElement(&quot;a&quot;);
+        anchorLinkElement.href = &quot;#&quot; + container.getAttribute(&quot;id&quot;);
+        anchorLinkElement.name = container.getAttribute(&quot;id&quot;);
+        anchorLinkElement.textContent = propertyObject.name;
+        titleElement.appendChild(anchorLinkElement);
+
+        if (categoryObject) {
+            if (hasSpecLink) {
+                var specSpan = createLinkWithHeading(&quot;span&quot;, null, categoryObject.shortname, specificationObject.url);
+                specSpan.className = 'spec-label';
+                titleElement.appendChild(specSpan);
+            } else {
+                var labelSpan = document.createElement(&quot;span&quot;);
+                labelSpan.className = 'spec-label';
+                labelSpan.textContent = categoryObject.shortname;
+                titleElement.appendChild(labelSpan);
+            }
+        }
+
+        featureHeaderContainer.appendChild(titleElement);
+
+        var aliases = propertyNameAliases(propertyObject);
+        if (aliases.length) {
+            var propertyAliasDiv = document.createElement('div');
+            propertyAliasDiv.className = 'property-alias';
+            propertyAliasDiv.textContent = 'Also supported as: ' + aliases.join(', ');
+            featureHeaderContainer.appendChild(propertyAliasDiv);
+        }
+
+        var toggledContentContainer = document.createElement('div');
+        toggledContentContainer.className = &quot;toggleable&quot;;
+        featureHeaderContainer.appendChild(toggledContentContainer);
+
+        var longhands = propertyLonghands(propertyObject);
+        if (longhands.length) {
+            var longhandsDiv = document.createElement('div');
+            longhandsDiv.className = 'longhands';
+
+            longhandsDiv.textContent = 'Shorthand for ';
+
+            for (var i in longhands) {
+                if (i &gt; 0)
+                    longhandsDiv.appendChild(document.createTextNode(', '));
+                var longhand = longhands[i];
+                var longhandLink = document.createElement(&quot;a&quot;);
+                longhandLink.href = &quot;#property-&quot; + longhand;
+                longhandLink.textContent = longhand;
+                longhandsDiv.appendChild(longhandLink);
+            }
+        
+            toggledContentContainer.appendChild(longhandsDiv);
+        }
+        
+        function collapsePrefixedValues(values)
+        {
+            var remainingValues = [];
+            var prefixMap = {};
+            
+            for (var valueObj of values) {
+                var valueName = valueObj.value;
+
+                var result = prefixRegexp.exec(valueName);
+                if (result) {
+                    var unprefixed = result[2];
+                    var unprefixedValue = findValueByName(values, unprefixed);
+                    if (unprefixedValue) {
+                        (prefixMap[unprefixedValue.value] = prefixMap[unprefixedValue.value] || []).push(valueName);
+                        continue;
+                    }
+                }
+                
+                remainingValues.push(valueObj);
+            }
+            
+            for (var prefixed in prefixMap) {
+                var unprefixedValue = findValueByName(remainingValues, prefixed);
+                unprefixedValue.aliases = prefixMap[prefixed];
+            }
+            
+            return remainingValues;
+        }
+
+        if (propertyObject.values.length) {
+            var valuesHeader = document.createElement(&quot;h4&quot;);
+            valuesHeader.textContent = 'Supported Values:';
+            toggledContentContainer.appendChild(valuesHeader);
+            
+            var valuesList = document.createElement(&quot;ul&quot;);
+            valuesList.className = 'values';
+            
+            var values = collapsePrefixedValues(propertyObject.values);
+            for (var valueObj of values) {
+                var li = document.createElement(&quot;li&quot;);
+                
+                valueObj.el = li;
+
+                var link = undefined;
+                var valueAliases = undefined;
+                var status = undefined;
+                if ('aliases' in valueObj)
+                    valueAliases = valueObj.aliases;
+
+                if ('status' in valueObj)
+                    status = valueObj.status;
+
+                if ('url' in valueObj)
+                    link = valueObj['url'];
+
+                appendValueWithLink(li, valueObj.value, link);
+                
+                if (valueAliases) {
+                    var span = document.createElement('span');
+                    span.textContent = ' (' + valueAliases.join(', ') + ')';
+                    span.className = 'value-alias';
+                    li.appendChild(span);
+                }
+                
+                if (status) {
+                    var span = document.createElement('span');
+                    span.textContent = ' (' + status + ')';
+                    span.className = 'value-status';
+                    li.appendChild(span);
+                }
+                
+                valuesList.appendChild(li);
+            }
+            toggledContentContainer.appendChild(valuesList);
+        }
+        
+        var statusContainer = document.createElement(&quot;span&quot;);
+        cornerStatus.className += statusClassName = propertyObject.status.status.toLowerCase().replace(/ /g, '-');
+        statusContainer.className = &quot;property-status &quot; + statusClassName;
+        if (&quot;webkit-url&quot; in propertyObject) {
+            var statusLink = document.createElement(&quot;a&quot;);
+            statusLink.href = propertyObject[&quot;webkit-url&quot;];
+            statusLink.textContent = propertyObject.status.status;
+            statusContainer.appendChild(statusLink);
+        } else {
+            statusContainer.textContent = propertyObject.status.status;
+        }
+
+        toggledContentContainer.appendChild(statusContainer);
+        
+        if (specificationObject &amp;&amp; &quot;description&quot; in specificationObject) {
+            var testDescription = document.createElement('p');
+            testDescription.className = &quot;property-desc&quot;;
+            testDescription.innerHTML = specificationObject.description;
+            toggledContentContainer.appendChild(testDescription);
+        }
+
+        if (specificationObject &amp;&amp; &quot;comment&quot; in specificationObject) {
+            if (&quot;description&quot; in specificationObject) {
+                var hr = document.createElement(&quot;hr&quot;);
+                hr.className = 'comment';
+                toggledContentContainer.appendChild(hr);
+            }
+            var comment = document.createElement('p');
+            comment.className = 'comment';
+            comment.innerHTML = specificationObject.comment;
+            toggledContentContainer.appendChild(comment);
+        }
+
+        container.appendChild(descriptionContainer);
+        
+        function getMostSpecificProperty(categoryObject, specificationObject, attributeName)
+        {
+            // The url in the specification object is more specific, so use it if present.
+            if (specificationObject &amp;&amp; attributeName in specificationObject)
+                return specificationObject[attributeName];
+
+            return categoryObject[attributeName];
+        }
+
+        if (hasDocumentationLink || hasReferenceLink || hasContactObject) {
+            var moreInfoList = document.createElement(&quot;ul&quot;);
+            moreInfoList.className = 'more-info';
+            if (hasDocumentationLink) {
+                // The url in the specification object is more specific, so use it if present.
+                var url = getMostSpecificProperty(categoryObject, specificationObject, 'documentation-url');
+                moreInfoList.appendChild(createLinkWithHeading(&quot;li&quot;, &quot;Documentation&quot;, url, url));
+            }
+
+            if (hasReferenceLink) {
+                var url = getMostSpecificProperty(categoryObject, specificationObject, 'url');
+                moreInfoList.appendChild(createLinkWithHeading(&quot;li&quot;, &quot;Reference&quot;, url, url));
+            }
+
+            if (hasContactObject) {
+                var li = document.createElement(&quot;li&quot;);
+                li.textContent = &quot;Contact: &quot;;
+                var contactObject = specificationObject.contact;
+                if (contactObject.twitter) {
+                    li.appendChild(createLinkWithHeading(&quot;span&quot;, null, contactObject.twitter, makeTwitterLink(contactObject.twitter)));
+                }
+                if (contactObject.email) {
+                    if (contactObject.twitter) {
+                        li.appendChild(document.createTextNode(&quot; - &quot;));
+                    }
+                    var emailText = contactObject.email;
+                    if (contactObject.name) {
+                        emailText = contactObject.name;
+                    }
+                    li.appendChild(createLinkWithHeading(&quot;span&quot;, null, emailText, &quot;mailto:&quot; + contactObject.email));
+                }
+                moreInfoList.appendChild(li);
+            }
+
+            toggledContentContainer.appendChild(moreInfoList);
+        }
+
+        return container;
+    }
+    
+    function renderSpecifications(categories, properties)
+    {
+        var specificationsList = document.getElementById('specifications');
+
+        var allCategories = Object.keys(categories).sort();
+        for (var categoryKey of allCategories) {
+            var category = categories[categoryKey];
+            var entry = document.createElement(&quot;li&quot;);
+            var label = document.createElement(&quot;label&quot;);
+            var input = document.createElement(&quot;input&quot;);
+            input.setAttribute('type','radio');
+            input.setAttribute('value', categoryKey);
+            input.setAttribute('name', 'categories');
+            input.addEventListener('change', function() { updateSearch(properties); });
+            label.appendChild(input);
+            label.className = categoryKey.toLocaleLowerCase().replace(/ /g, '-');
+            label.appendChild(document.createTextNode(&quot; &quot; + category['shortname']));
+            entry.appendChild(label);
+            specificationsList.appendChild(entry);
+        }
+    }
+    
+    function getPropertyCategory(propertyObject)
+    {
+        if ('specification' in propertyObject &amp;&amp; 'category' in propertyObject.specification)
+            return propertyObject.specification.category;
+
+        return undefined;
+    }
+
+    function renderProperties(categories, propertyObjects)
+    {
+        var propertiesContainer = document.getElementById('properties-container');
+        for (var propertyObject of propertyObjects) {
+            var category = getPropertyCategory(propertyObject);
+            propertiesContainer.appendChild(createPropertyView(categories[category], propertyObject));
+        }
+    }
+
+    function convertToTitleCase(string)
+    {
+        return string.replace(/\w\S*/g, function(txt){
+            return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();
+        });
+    }
+
+    function initSearch(properties, categories)
+    {
+        var filtersForm = document.getElementById('property-filters');
+        var statusContainer = document.getElementById('status-filters');
+        var inputField = document.getElementById('search');
+        var featuresEls = document.querySelectorAll('.properties &gt; li');
+        var statusFilters = {};
+
+        var statusOrder = [
+            'done',
+            'in development',
+            'under consideration',
+            'experimental',
+            'non-standard',
+            'not considering',
+            'not implemented',
+            'obsolete',
+        ];
+
+        properties.forEach(function(property, i) {
+            property.el = featuresEls[i];
+            property.visible = true;
+
+            // FIXME: need status per value as well.
+            if (property.status != undefined) {
+                propertyStatusKey = property.status.status.toLocaleLowerCase();
+
+                if (!statusFilters[propertyStatusKey])
+                    statusFilters[propertyStatusKey] = property.status.status;
+
+                if (statusOrder.indexOf(propertyStatusKey) == -1)
+                    window.console.log('Status ' + propertyStatusKey + ' is not one of the predefined status keys ', statusOrder);
+            }
+        });
+        
+        for (var key of statusOrder) {
+            var status = statusFilters[key];
+            var entry = document.createElement(&quot;li&quot;);
+            var label = document.createElement(&quot;label&quot;);
+            var input = document.createElement(&quot;input&quot;);
+            input.setAttribute('type','checkbox');
+            input.setAttribute('value', key);
+            input.className = 'status-checkbox';
+            input.addEventListener('change', function() { updateSearch(properties); });
+            label.appendChild(input);
+            label.className = status.replace(/ /g, '-');
+            label.appendChild(document.createTextNode(&quot; &quot; + convertToTitleCase(status)));
+            entry.appendChild(label);
+            statusContainer.appendChild(entry);
+        }
+        
+        // Append the special &quot;By Specification&quot; checkbox
+        {
+            var entry = document.createElement(&quot;li&quot;);
+            var label = document.createElement(&quot;label&quot;);
+            var input = document.createElement(&quot;input&quot;);
+            input.id = 'by-spec-checkbox';
+            input.setAttribute('type','checkbox');
+            input.addEventListener('change', function() { updateSearch(properties); });
+            label.appendChild(input);
+            label.appendChild(document.createTextNode(&quot; By Specification:&quot;));
+            entry.appendChild(label);
+            
+            var specsList = document.createElement('ul');
+            specsList.className = 'specifications';
+            specsList.id = 'specifications';
+            entry.appendChild(specsList);
+            
+            statusContainer.appendChild(entry);
+        }
+
+        var prefixContainer = document.getElementById('prefix-filters');
+        var prefixFilters = {};
+        prefixFilters['prefix-supported-property'] = 'Property with and without prefix';
+        prefixFilters['prefix-only-property'] = 'Prefixed-only Properties';
+        prefixFilters['prefix-supported-value'] = 'Prefixed Values';
+        prefixFilters['prefix-only-value'] = 'Prefixed-only Values';
+
+        for (var key in prefixFilters) {
+            var status = prefixFilters[key];
+            var entry = document.createElement(&quot;li&quot;);
+            var label = document.createElement(&quot;label&quot;);
+            var input = document.createElement(&quot;input&quot;);
+            input.setAttribute('type','checkbox');
+            input.setAttribute('value', key);
+            input.addEventListener('change', function() { updateSearch(properties); });
+            label.appendChild(input);
+            label.className = status.toLocaleLowerCase().replace(/ /g, '-');
+            label.appendChild(document.createTextNode(&quot; &quot; + status));
+            entry.appendChild(label);
+            prefixContainer.appendChild(entry);
+        }
+
+        filtersForm.addEventListener('click', function (e) {
+            if ( filtersForm.className.indexOf('opened') !== -1 ) {
+                filtersForm.className = filtersForm.className.replace(' opened','');
+            } else filtersForm.className += ' opened';
+        });
+
+        inputField.addEventListener('input', function() { updateSearch(properties); });
+
+        var inputs = [].slice.call(filtersForm.getElementsByTagName('input'));
+        inputs.forEach(function (input,i) {
+            input.addEventListener('click', function (e) {
+                e.stopPropagation();
+            });
+        });
+
+        renderSpecifications(categories, properties);
+    }
+
+    function getValuesOfCheckedItems(items)
+    {
+        var checkedValues = [];
+        items.forEach(function(item,i) {
+            if (item.checked)
+                checkedValues.push(item.value);
+        });
+        
+        return checkedValues;
+    }
+
+    function selectedSpecifications()
+    {
+        if (!document.getElementById('by-spec-checkbox').checked)
+            return [];
+
+        var specificationsList = document.getElementById('specifications');
+        return getValuesOfCheckedItems([].slice.call(specificationsList.getElementsByTagName('input')));
+    }
+    
+    function updateSearch(properties)
+    {
+        var inputField = document.getElementById('search');
+        var statusContainer = document.getElementById('status-filters');
+
+        var searchTerm = inputField.value.trim().toLowerCase();
+        var activeStatusFilters = getValuesOfCheckedItems([].slice.call(statusContainer.querySelectorAll('.status-checkbox')));
+
+        var prefixContainer = document.getElementById('prefix-filters');
+        var activePrefixFilters = getValuesOfCheckedItems([].slice.call(prefixContainer.getElementsByTagName('input')));
+
+        var numVisible = searchProperties(properties, searchTerm, selectedSpecifications(), activeStatusFilters, activePrefixFilters);
+        document.getElementById('property-pluralize').textContent = numVisible == 1 ? 'property' : 'properties';
+        document.getElementById('property-count').textContent = numVisible;
+        
+        updateSpecsState();
+    }
+    
+    function updateSpecsState()
+    {
+        var specsEnabled = document.getElementById('by-spec-checkbox').checked;
+        var specificationsList = document.getElementById('specifications');
+        
+        var radiobuttons = [].slice.call(specificationsList.getElementsByTagName('input'));
+        radiobuttons.forEach(function(radiobutton,i) {
+            radiobutton.disabled = !specsEnabled;
+        });
+    }
+
+    function valueOrAliasIsPrefixed(valueObj)
+    {
+        if (prefixRegexp.exec(valueObj.value))
+            return true;
+        
+        if ('alias' in valueObj) {
+            for (var alias of valueObj.aliases) {
+                if (prefixRegexp.exec(alias))
+                    return true;
+            }
+        }
+        
+        return false;
+    }
+
+    function filterValues(propertyObject, searchTerm, categories, statusFilters)
+    {
+        for (var valueObj of propertyObject.values) {
+            if (!valueObj.el)
+                continue;
+
+            var visible = false;
+            visible = valueObj.value.toLowerCase().indexOf(searchTerm) !== -1;
+
+            if (!visible) {
+                for (var currValueObj of propertyObject.values) {
+                    if (valueOrAliasIsPrefixed(currValueObj)) {
+                        visible = true;
+                        break;
+                    }
+                }
+            }
+
+            if (!visible) {
+                for (var currValueObj of propertyObject.values) {
+                    if (prefixRegexp.exec(currValueObj.value)) {
+                        visible = true;
+                        break;
+                    }
+                }
+            }
+
+            if (visible)
+                valueObj.el.classList.remove('hidden');
+            else
+                valueObj.el.classList.add('hidden');
+        }
+    }
+
+    function searchProperties(properties, searchTerm, categories, statusFilters, prefixFilters)
+    {
+        var visibleCount = 0;
+        properties.forEach(function(propertyObject) {
+            var matchesStatusSearch = isStatusFiltered(propertyObject, statusFilters);
+            var matchesPrefixSearch = isPrefixFiltered(propertyObject, prefixFilters);
+            
+            var visible = propertyIsSearchMatch(propertyObject, searchTerm) &amp;&amp; isCategoryMatch(propertyObject, categories) &amp;&amp; matchesStatusSearch &amp;&amp; matchesPrefixSearch;
+            if (visible &amp;&amp; !propertyObject.visible)
+                propertyObject.el.className = 'property';
+            else if (!visible &amp;&amp; propertyObject.visible)
+                propertyObject.el.className = 'property is-hidden';
+            
+            if (visible) {
+                filterValues(propertyObject, searchTerm);
+                ++visibleCount;
+            }
+
+            propertyObject.visible = visible;
+        });
+        
+        return visibleCount;
+    }
+
+    function propertyIsSearchMatch(propertyObject, searchTerm)
+    {
+        if (propertyObject.name.toLowerCase().indexOf(searchTerm) !== -1)
+            return true;
+
+        if ('keywords' in propertyObject) {
+            for (var keyword of propertyObject.keywords) {
+                if (keyword.toLowerCase().indexOf(searchTerm) !== -1)
+                    return true;
+            }
+        }
+        
+        for (var valueObj of propertyObject.values) {
+            if (valueObj.value.toLowerCase().indexOf(searchTerm) !== -1)
+                return true;
+        }
+
+        return false;
+    }
+
+    function getSpecificationCategory(propertyObject)
+    {
+        if ('specification' in propertyObject) {
+            var specification = propertyObject.specification;
+            if ('category' in specification) {
+                return specification.category;
+            }
+        }
+        return undefined;
+    }
+
+    function isCategoryMatch(propertyObject, categories)
+    {
+        if (!categories.length)
+            return true;
+
+        var category;
+        if (category = getSpecificationCategory(propertyObject)) {
+            if (categories.indexOf(category) !== -1) {
+                return true;
+            }
+        }
+        return false;
+    }
+    
+    function propertyOrAliasIsPrefixed(propertyObject)
+    {
+        if (prefixRegexp.exec(propertyObject.name))
+            return true;
+        
+        for (var alias of propertyNameAliases(propertyObject)) {
+            if (prefixRegexp.exec(alias))
+                return true;
+        }
+        
+        return false;
+    }
+
+    function isStatusFiltered(propertyObject, activeFilters)
+    {
+        if (activeFilters.length == 0)
+            return true;
+        if (propertyObject.status === undefined)
+            return false;
+        if (activeFilters.indexOf(propertyObject.status.status.toLowerCase()) !== -1)
+            return true;
+        
+        return false;
+    }
+
+    function isPrefixFiltered(propertyObject, activeFilters)
+    {
+        if (activeFilters.length == 0)
+            return true;
+
+        if (activeFilters.indexOf('prefix-only-property') !== -1)
+            return prefixRegexp.exec(propertyObject.name);
+
+        if (activeFilters.indexOf('prefix-supported-property') !== -1)
+            return propertyOrAliasIsPrefixed(propertyObject);
+
+        if (activeFilters.indexOf('prefix-supported-value') !== -1) {
+            for (var valueObj of propertyObject.values) {
+                if (valueOrAliasIsPrefixed(valueObj))
+                    return true;
+            }
+        }
+
+        if (activeFilters.indexOf('prefix-only-value') !== -1) {
+            for (var valueObj of propertyObject.values) {
+                if (prefixRegexp.exec(valueObj.value))
+                    return true;
+            }
+        }
+        
+        return false;
+    }
+
+    function findValueByName(values, name)
+    {
+        return values.find(function(element) {
+            return element.value === name;
+        })
+    }
+
+    function mergeProperties(unprefixedPropertyObj, prefixedPropertyObj)
+    {
+        (unprefixedPropertyObj['codegen-properties'].aliases = unprefixedPropertyObj['codegen-properties'].aliases || []).push(prefixedPropertyObj.name);
+        
+        for (var valueObj of prefixedPropertyObj.values) {
+            if (!findValueByName(unprefixedPropertyObj.values, valueObj.value))
+                prefixedPropertyObj.values.push(valueObj);
+        }
+
+        return unprefixedPropertyObj;
+    }
+    
+    // Sometimes we have separate entries for -webkit-foo and foo.
+    function collapsePrefixedProperties(properties)
+    {
+        function findPropertyByName(properties, name)
+        {
+            return properties.find(function(element) {
+                return element.name === name;
+            })
+        }
+
+        var remainingProperties = [];
+        var prefixMap = {};
+
+        for (var propertyObj of properties) {
+            var propertyName = propertyObj.name;
+
+            var result = prefixRegexp.exec(propertyName);
+            if (result) {
+                var unprefixed = result[2];
+                var unprefixedProperty = findPropertyByName(properties, unprefixed);
+                if (unprefixedProperty) {
+                    mergeProperties(unprefixedProperty, propertyObj);
+                    continue;
+                }
+            }
+
+            remainingProperties.push(propertyObj);
+        }
+        
+        return remainingProperties;
+    }
+
+    function canonicalizeValues(propertyObject)
+    {
+        var valueObjects = [];
+        // Convert all values to objects.
+        if ('values' in propertyObject) {
+            for (var value of propertyObject.values) {
+                if (typeof value === 'object')
+                    valueObjects.push(value);
+                else
+                    valueObjects.push({ 'value' : value });
+            }
+        }
+        propertyObject.values = valueObjects;
+    }
+    
+    function canonicalizeStatus(propertyObject, categories)
+    {
+        // Inherit &quot;status&quot; from the cateogry if not explicitly specified.
+        if (!('status' in propertyObject)) {
+            var category = getSpecificationCategory(propertyObject)
+            if (category) {
+                var categoryObject = categories[category];
+                if (categoryObject) {
+                    if ('status' in categoryObject) {
+                        propertyObject.status = {
+                            'status' : categoryObject.status
+                        };
+                    }
+                }
+            }
+        } else {
+            // Convert all values to objects.
+            if (typeof propertyObject.status === 'string')
+                propertyObject.status = { 'status': propertyObject.status };
+        }
+
+        if (!('status' in propertyObject)) {
+            propertyObject.status = {
+                'status' : 'done',
+                'enabled-by-default' : true
+            };
+        } else if (!('status' in propertyObject.status))
+            propertyObject.status.status = 'done';
+    }
+    
+    function displayFeatures(results)
+    {
+        var mainContent = document.getElementById(&quot;property-list&quot;);
+        var successSubtree = document.importNode(document.getElementById(&quot;success-template&quot;).content, true);
+        mainContent.appendChild(successSubtree);
+        
+        var properties = results[0]['properties'];
+        var everythingToShow = [];
+        
+        var categories = results[0]['categories'];
+
+        for (var property in properties) {
+            var propertyObject = properties[property];
+            propertyObject.name = property;
+
+            canonicalizeValues(propertyObject);
+            canonicalizeStatus(propertyObject, categories);
+
+            everythingToShow.push(propertyObject);
+        }
+        
+        everythingToShow = collapsePrefixedProperties(everythingToShow);
+        sortAlphabetically(everythingToShow);
+        
+        renderProperties(categories, everythingToShow);
+
+        initSearch(everythingToShow, categories);
+        
+        updateSearch(everythingToShow);
+    }
+
+    function displayError(error)
+    {
+        window.console.log('displayError', error)
+        var mainContent = document.getElementById(&quot;property-list&quot;);
+        var successSubtree = document.importNode(document.getElementById(&quot;error-template&quot;).content, true);
+
+        var errorMessage = &quot;Unable to load &quot; + error.url;
+
+        if (error.request.status !== 200) {
+            errorMessage += &quot;, status: &quot; + error.request.status + &quot; - &quot; + error.request.statusText;
+        } else if (!error.response) {
+            errorMessage += &quot;, the JSON file cannot be processed.&quot;;
+        }
+
+        successSubtree.querySelector(&quot;#error-message&quot;).textContent = errorMessage;
+
+        mainContent.appendChild(successSubtree);
+    }
+
+    Promise.all([loadCSSProperties]).then(displayFeatures).catch(displayError);
+}
+
+document.addEventListener(&quot;DOMContentLoaded&quot;, initializeStatusPage);
+&lt;/script&gt;
+
+&lt;?php get_footer(); ?&gt;
</ins></span></pre>
</div>
</div>

</body>
</html>