W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2014

[whatwg] `brand-color` meta extension

From: Marcos Caceres <w3c@marcosc.com>
Date: Thu, 26 Jun 2014 13:35:00 -0400
To: whatwg@lists.whatwg.org
Message-ID: <etPan.53ac59c4.6b8b4567.dd20@Marcoss-MacBook-Pro.local>
Folks at Mozilla and Google would like to standardize the `brand-color` meta extension. The `brand-color` keyword has been added to the MetaExtensions WHATWG wiki and a rough spec is below (prepared by some folks at Google).  

# Overview

The browser will use this brand color when distinct color is needed, i.e. it could be used as Web App’s title bar.

Other browsers have similar features, but each defined as its own specific meta tag, IE uses mapplication-navbutton-color, Safari’s is apple-mobile-web-app-status-bar-style, they are all similar with brand-color, but have a little different usage.

# Syntax

<meta name="brand-color" content="#0000ff">

The content attribute can be any value defined in css color specification http://www.w3.org/TR/css3-color/ , the value might be adjusted by browser if it is not proper for display, i.e. extremely bright. the leading and trailing whitespace (defined in http://www.w3.org/TR/html401/struct/text.html) is permitted.
The brand-color meta tag must be in head element, If there are multiple brand-color meta tags in head element, first one takes effect. 
Brand color could be changed by script, browser shall respect this change.

Relevant issues/discussions:
https://bugzilla.mozilla.org/show_bug.cgi?id=1013913
https://groups.google.com/a/chromium.org/forum/#!msg/blink-dev/nzRY-h_-_ig/IeXq74xUWzkJ

Thanks! 

--  
Marcos Caceres
Received on Thursday, 26 June 2014 17:35:26 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:21 UTC