<p><a href="https://github.com/gravitystorm" class="user-mention">@gravitystorm</a>, current solution is not "accepting" any key, it is merely taking a hint from the key that the editor might have tried to tag some colour and tries to visualize it if the value is a valid colour.</p>
<p>As I wrote above in the code reviewing discussion:</p>
<blockquote>
<p>Key validation on the other hand is performed in the key column of the sidebar. Currently the only visual indicator is the presence of the link to wiki. That link is unfortunately missing for many valid keys (eg when key legitimately contains some variable or the wiki page is not existing or redirecting to a more general key). There might be also cases when the key was deprecated, but the link still exists because the page remained in wiki for reference. Key validity indication could be improved, to not just existence of wiki page but</p>
<p>also some other metadata from wiki (redirect, status...) or<br>
link to most suitable wiki page (eg it the key is "building:levitating" which does not exist in wiki, just link to the first part "building" to the "key:building" wiki page which would give editors more hints about the topic and how to fix the tagging) or<br>
OSM data (eg order tags by key occurance count)<br>
some keys are only valid on specific elements (relations, ways, nodes),<br>
some keys are requiring presence of related tags (eg drink:* tag requires appropriate shop or amenity tag)<br>
Key validation is a complex topic to be tackled separately.</p>
</blockquote>
<p>and</p>
<blockquote>
<p>It would not be clear to users to know why they don't see the colour preview box for their mispelled "buidling:colour=#aaa" tag. Absence of color preview box may say that something is wrong, but it would not point to the key, but would most likely leave user wondering whether should it be "#aaaaaa" or "lightgrey" or "lightgray" or "paledesertwhite" or ...?</p>
</blockquote>
<p>TL;DR: Key "validation" (or better: level of approval) should be indicated next to the key in the left column of the browser sidebar.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/1779#issuecomment-371815186">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABWnLYuElUCas2feKZY9zFJI_vU9AJ3Xks5tcobkgaJpZM4Sdsny">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABWnLXtL4inTm4qRKiyFXEFr2Ui0M_ayks5tcobkgaJpZM4Sdsny.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/openstreetmap/openstreetmap-website/pull/1779#issuecomment-371815186"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/openstreetmap/openstreetmap-website","title":"openstreetmap/openstreetmap-website","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/openstreetmap/openstreetmap-website"}},"updates":{"snippets":[{"icon":"PERSON","message":"@stefanb in #1779: @gravitystorm, current solution is not \"accepting\" any key, it is merely taking a hint from the key that the editor might have tried to tag some colour and tries to visualize it if the value is a valid colour.\r\n\r\nAs I wrote above in the code reviewing discussion:\r\n\u003e Key validation on the other hand is performed in the key column of the sidebar. Currently the only visual indicator is the presence of the link to wiki. That link is unfortunately missing for many valid keys (eg when key legitimately contains some variable or the wiki page is not existing or redirecting to a more general key). There might be also cases when the key was deprecated, but the link still exists because the page remained in wiki for reference. Key validity indication could be improved, to not just existence of wiki page but\r\n\u003e \r\n\u003e also some other metadata from wiki (redirect, status...) or\r\n\u003e link to most suitable wiki page (eg it the key is \"building:levitating\" which does not exist in wiki, just link to the first part \"building\" to the \"key:building\" wiki page which would give editors more hints about the topic and how to fix the tagging) or\r\n\u003e OSM data (eg order tags by key occurance count)\r\n\u003e some keys are only valid on specific elements (relations, ways, nodes),\r\n\u003e some keys are requiring presence of related tags (eg drink:* tag requires appropriate shop or amenity tag)\r\n\u003e Key validation is a complex topic to be tackled separately.\r\n\r\nand\r\n\r\n\u003e It would not be clear to users to know why they don't see the colour preview box for their mispelled \"buidling:colour=#aaa\" tag. Absence of color preview box may say that something is wrong, but it would not point to the key, but would most likely leave user wondering whether should it be \"#aaaaaa\" or \"lightgrey\" or \"lightgray\" or \"paledesertwhite\" or ...?\r\n\r\nTL;DR: Key \"validation\" (or better: level of approval) should be indicated next to the key in the left column of the browser sidebar.\r\n"}],"action":{"name":"View Pull Request","url":"https://github.com/openstreetmap/openstreetmap-website/pull/1779#issuecomment-371815186"}}}</script>