Re: [whatwg] A mask= advisory flag for link rel=icon

2015-06-26 Thread Maciej Stachowiak
We're considering supporting SVG in the places in the UI where we render the icon in full color. Nothing to announce currently. - Maciej On Jun 24, 2015, at 8:33 PM, Kevin Marks kevinma...@gmail.com wrote: Does this mean we can now have rel=icon with SVG instead of providing a bitmap for

Re: [whatwg] A mask= advisory flag for link rel=icon

2015-06-26 Thread Tab Atkins Jr.
On Fri, Jun 26, 2015 at 10:17 AM, Timothy Hatcher timo...@apple.com wrote: On Jun 24, 2015, at 2:39 PM, Tab Atkins Jr. jackalm...@gmail.com wrote: Sounds acceptable to me. What's the grammar of color=''? Just hex, or full CSS color? (Either is fine with me.) We support full CSS colors.

Re: [whatwg] A mask= advisory flag for link rel=icon

2015-06-26 Thread Timothy Hatcher
On Jun 24, 2015, at 2:39 PM, Tab Atkins Jr. jackalm...@gmail.com wrote: Sounds acceptable to me. What's the grammar of color=''? Just hex, or full CSS color? (Either is fine with me.) We support full CSS colors. Though, we ignore the alpha component. — Timothy Hatcher

Re: [whatwg] A mask= advisory flag for link rel=icon

2015-06-26 Thread Edward O'Connor
Hi Tab, You wrote: Sounds acceptable to me. What's the grammar of color=''? Just hex, or full CSS color? (Either is fine with me.) We support full CSS colors. Though, we ignore the alpha component. Cool. When are we going to see a spec for this? ^_^ Well, typically what happens is people

Re: [whatwg] A mask= advisory flag for link rel=icon

2015-06-26 Thread Tab Atkins Jr.
On Jun 26, 2015 14:30, Edward O'Connor eocon...@apple.com wrote: Hi Tab, You wrote: Sounds acceptable to me. What's the grammar of color=''? Just hex, or full CSS color? (Either is fine with me.) We support full CSS colors. Though, we ignore the alpha component. Cool. When are we

Re: [whatwg] A mask= advisory flag for link rel=icon

2015-06-25 Thread Mathias Bynens
On Thu, Jun 25, 2015 at 7:24 AM, Daniel Holbert dholb...@mozilla.com wrote: From my brief testing with my testcase above (Chrome 45 dev channel on linux, Edge on Win10, Safari 8 on Yosemite), it doesn't look like other browser support SVG favicons right now, though. FWIW, here’s the relevant

Re: [whatwg] A mask= advisory flag for link rel=icon

2015-06-24 Thread Tab Atkins Jr.
On Wed, Jun 24, 2015 at 2:36 PM, Maciej Stachowiak m...@apple.com wrote: To close the loop on this, we will change to link rel=mask-icon href=whatever.svg color=#aabbcc. We like the idea of determining the color from the SVG, but we won't be able to implement in time for this cycle, and

Re: [whatwg] A mask= advisory flag for link rel=icon

2015-06-24 Thread Maciej Stachowiak
To close the loop on this, we will change to link rel=mask-icon href=whatever.svg color=#aabbcc. We like the idea of determining the color from the SVG, but we won't be able to implement in time for this cycle, and having an explicit color override seems useful. So for now we'll implement

Re: [whatwg] A mask= advisory flag for link rel=icon

2015-06-24 Thread Daniel Holbert
On 06/24/2015 08:33 PM, Kevin Marks wrote: Does this mean we can now have rel=icon with SVG instead of providing a bitmap for every iOS device specifically (when we add to homepage)? Do chrome and Firefox support SVG icon images? Here's a simple testcase:

Re: [whatwg] A mask= advisory flag for link rel=icon

2015-06-24 Thread Kevin Marks
Does this mean we can now have rel=icon with SVG instead of providing a bitmap for every iOS device specifically (when we add to homepage)? Do chrome and Firefox support SVG icon images? On 24 Jun 2015 2:40 pm, Tab Atkins Jr. jackalm...@gmail.com wrote: On Wed, Jun 24, 2015 at 2:36 PM, Maciej

Re: [whatwg] A mask= advisory flag for link rel=icon

2015-06-17 Thread Benjamin Francis
On 17 June 2015 at 20:23, Maciej Stachowiak m...@apple.com wrote: Using a mask attribute in place of href would solve the compat problem about as well as using rel=“mask-icon”, but it seems kind of weird to me. It doesn’t make sense for an icon link to have both a mask and an href. It makes

Re: [whatwg] A mask= advisory flag for link rel=icon

2015-06-17 Thread Maciej Stachowiak
On Jun 17, 2015, at 12:42 PM, Benjamin Francis bfran...@mozilla.com wrote: On 17 June 2015 at 20:23, Maciej Stachowiak m...@apple.com wrote: Using a mask attribute in place of href would solve the compat problem about as well as using rel=“mask-icon”, but it seems kind of weird to me. It

Re: [whatwg] A mask= advisory flag for link rel=icon

2015-06-17 Thread Tab Atkins Jr.
On Tue, Jun 16, 2015 at 9:49 PM, Anne van Kesteren ann...@annevk.nl wrote: On Tue, Jun 16, 2015 at 10:42 PM, Tab Atkins Jr. jackalm...@gmail.com wrote: Before we start bikeshedding, can you commit to actually changing your implementation? Safari has already shipped with the exact proposal

Re: [whatwg] A mask= advisory flag for link rel=icon

2015-06-17 Thread Maciej Stachowiak
Out of curiosity, I understand that flat design is fashionable right now and you might want single colour icons to represent web sites in Safari, but what is your fallback for the billion or so web sites which currently only provide a multi-coloured icon? I assume you just display the icon

Re: [whatwg] A mask= advisory flag for link rel=icon

2015-06-17 Thread Anne van Kesteren
On Wed, Jun 17, 2015 at 9:42 PM, Benjamin Francis bfran...@mozilla.com wrote: It makes sense to me, an image element can have a src attribute of image.jpg and have a mask set to mask.svg in the mask CSS property. The equivalents here are the href attribute and the mask attribute, It's just

Re: [whatwg] A mask= advisory flag for link rel=icon

2015-06-17 Thread Anne van Kesteren
On Wed, Jun 17, 2015 at 9:23 PM, Maciej Stachowiak m...@apple.com wrote: (A.2) Add an attribute to link specifically for use in specifying the color for that icon, e.g. link rel=mask-icon href=whatever.svg color=lightred. (B.1) If the the color isn’t specified using the A method, use the theme

Re: [whatwg] A mask= advisory flag for link rel=icon

2015-06-17 Thread Maciej Stachowiak
On Jun 16, 2015, at 9:49 PM, Anne van Kesteren ann...@annevk.nl wrote: On Tue, Jun 16, 2015 at 10:42 PM, Tab Atkins Jr. jackalm...@gmail.com wrote: Before we start bikeshedding, can you commit to actually changing your implementation? Safari has already shipped with the exact proposal

Re: [whatwg] A mask= advisory flag for link rel=icon

2015-06-17 Thread Smylers
Kornel Lesiński writes: - Change link rel=icon mask to link rel=mask-icon, but keep using the theme-color meta for the color Please don't use meta theme-color. Financial Times' theme color is salmon pink (#fff1e0), but FT's logo must use black letters. That's another advantage of

Re: [whatwg] A mask= advisory flag for link rel=icon

2015-06-17 Thread Kornel Lesiński
- Change link rel=icon mask to link rel=mask-icon, but keep using the theme-color meta for the color Please don't use meta theme-color. Financial Times' theme color is salmon pink (#fff1e0), but FT's logo must use black letters. FT's logo is:

Re: [whatwg] A mask= advisory flag for link rel=icon

2015-06-17 Thread Benjamin Francis
On 17 June 2015 at 07:37, Maciej Stachowiak m...@apple.com wrote: It seems like the current leading candidate is: - Change link rel=icon mask to link rel=mask-icon, but keep using the theme-color meta for the color Using the theme-color meta tag as a foreground colour for icons may cause

Re: [whatwg] A mask= advisory flag for link rel=icon

2015-06-16 Thread Tab Atkins Jr.
On Tue, Jun 16, 2015 at 2:36 PM, Elliott Sprehn espr...@chromium.org wrote: On Tue, Jun 16, 2015 at 2:33 PM, Tab Atkins Jr. jackalm...@gmail.com wrote: On Tue, Jun 16, 2015 at 2:25 PM, Elliott Sprehn espr...@chromium.org wrote: On Tue, Jun 16, 2015 at 2:22 PM, Tab Atkins Jr.

Re: [whatwg] A mask= advisory flag for link rel=icon

2015-06-16 Thread Elliott Sprehn
On Tue, Jun 16, 2015 at 1:51 PM, Edward O'Connor eocon...@apple.com wrote: Hi Elliott, You wrote: I'm fine with either interpretation, mask-icon or icon mask like alternate stylesheet. I don't think adding a mask attribute to the HTMLLinkElement for this makes sense. Could you

Re: [whatwg] A mask= advisory flag for link rel=icon

2015-06-16 Thread Tab Atkins Jr.
On Tue, Jun 16, 2015 at 2:07 PM, Elliott Sprehn espr...@chromium.org wrote: sizes is a generic feature that's available for all image resources. No it's not; img sizes and link sizes are completely unrelated. ~TJ

Re: [whatwg] A mask= advisory flag for link rel=icon

2015-06-16 Thread Tab Atkins Jr.
On Tue, Jun 16, 2015 at 1:51 PM, Edward O'Connor eocon...@apple.com wrote: Hi Elliott, You wrote: I'm fine with either interpretation, mask-icon or icon mask like alternate stylesheet. I don't think adding a mask attribute to the HTMLLinkElement for this makes sense. Could you elaborate?

Re: [whatwg] A mask= advisory flag for link rel=icon

2015-06-16 Thread Elliott Sprehn
On Tue, Jun 16, 2015 at 2:22 PM, Tab Atkins Jr. jackalm...@gmail.com wrote: On Tue, Jun 16, 2015 at 2:07 PM, Elliott Sprehn espr...@chromium.org wrote: sizes is a generic feature that's available for all image resources. No it's not; img sizes and link sizes are completely unrelated. :(

Re: [whatwg] A mask= advisory flag for link rel=icon

2015-06-16 Thread Tab Atkins Jr.
On Tue, Jun 16, 2015 at 2:25 PM, Elliott Sprehn espr...@chromium.org wrote: On Tue, Jun 16, 2015 at 2:22 PM, Tab Atkins Jr. jackalm...@gmail.com wrote: On Tue, Jun 16, 2015 at 2:07 PM, Elliott Sprehn espr...@chromium.org wrote: sizes is a generic feature that's available for all image

Re: [whatwg] A mask= advisory flag for link rel=icon

2015-06-16 Thread Maciej Stachowiak
On Jun 15, 2015, at 5:40 PM, Justin Dolske dol...@mozilla.com wrote: Hmm, I suppose Elliott's proposal is a bit ambiguous, but I read it as fixing the ordering issue by adding a separate mask rel value. Such that the following are equivalent and independent of ordering: A) link rel=icon

Re: [whatwg] A mask= advisory flag for link rel=icon

2015-06-16 Thread Elliott Sprehn
On Tue, Jun 16, 2015 at 12:43 PM, Maciej Stachowiak m...@apple.com wrote: On Jun 15, 2015, at 5:40 PM, Justin Dolske dol...@mozilla.com wrote: Hmm, I suppose Elliott's proposal is a bit ambiguous, but I read it as fixing the ordering issue by adding a separate mask rel value. Such that

Re: [whatwg] A mask= advisory flag for link rel=icon

2015-06-16 Thread Nils Dagsson Moskopp
You could just set the colors of all paths to black internally and derive a suitable mask from any SVG logo that way. See any error? Maciej Stachowiak m...@apple.com writes: There’s no technological enforcement that the SVG only uses the color black. We will interpret it as a mask in the same

Re: [whatwg] A mask= advisory flag for link rel=icon

2015-06-16 Thread Tab Atkins Jr.
On Mon, Jun 15, 2015 at 10:37 AM, Edward O'Connor eocon...@apple.com wrote: Authors would provide a mask icon like so: link rel=icon href=mask.svg mask [...] P.S. OK, bikeshedding. What should we call the attribute? The ideal name says something about the icon and not about how a UA might

Re: [whatwg] A mask= advisory flag for link rel=icon

2015-06-16 Thread Edward O'Connor
Hi Elliott, You wrote: I'm fine with either interpretation, mask-icon or icon mask like alternate stylesheet. I don't think adding a mask attribute to the HTMLLinkElement for this makes sense. Could you elaborate? It's not clear to me why link rel=icon mask wouldn't make sense, but link

Re: [whatwg] A mask= advisory flag for link rel=icon

2015-06-16 Thread Maciej Stachowiak
There’s no technological enforcement that the SVG only uses the color black. We will interpret it as a mask in the same way as the SVG ‘mask’ element, which effectively combines the luminance with the alpha channel. Effectively, this means that other colors will end up partly transparent, so

Re: [whatwg] A mask= advisory flag for link rel=icon

2015-06-16 Thread Taylor Hunt
If reuse of the same SVG `rel=icon` is desirable, would it be possible to have certain elements inside the SVG use `class=mask` or something similar? --Taylor Hunt On Tue, Jun 16, 2015 at 3:47 PM, Maciej Stachowiak m...@apple.com wrote: There’s no technological enforcement that the SVG only

Re: [whatwg] A mask= advisory flag for link rel=icon

2015-06-16 Thread Anne van Kesteren
On Tue, Jun 16, 2015 at 10:42 PM, Tab Atkins Jr. jackalm...@gmail.com wrote: Before we start bikeshedding, can you commit to actually changing your implementation? Safari has already shipped with the exact proposal given in this thread; if you're seeking a rubberstamp rather than a collab,

Re: [whatwg] A mask= advisory flag for link rel=icon

2015-06-16 Thread Kornel Lesiński
The reason for treating the icon as a mask is that we want to enforce having a monochrome shape, specifically for our pinned tabs feature. The svg mask element has a switch for choosing between luminance and alpha masking; I think using alpha masking instead seems like a pretty clear win.

Re: [whatwg] A mask= advisory flag for link rel=icon

2015-06-15 Thread Nils Dagsson Moskopp
Edward O'Connor eocon...@apple.com writes: Lately we've identified a need for an additional advisory attribute for icons. Modern user interfaces have a flatter, more minimal UI style as compared to UIs of the past, and modern devices often feature higher-density displays. Legacy favicons

Re: [whatwg] A mask= advisory flag for link rel=icon

2015-06-15 Thread Karl Dubost
Nils, Le 16 juin 2015 à 10:03, Nils Dagsson Moskopp n...@dieweltistgarnichtso.net a écrit : Edward O'Connor eocon...@apple.com writes: These images can be tinted to better fit in with the site's theme. Please tell me where the requirement for SVG favicons with 100% black paths comes from.

Re: [whatwg] A mask= advisory flag for link rel=icon

2015-06-15 Thread Nils Dagsson Moskopp
If I am not mistaken, it should be possible to use the outline shape while not requiring 100% black color for every path in the SVG icon. As I see it, a proper icon has to have a distinctive outline anyway. Karl Dubost k...@la-grange.net writes: Nils, Le 16 juin 2015 à 10:03, Nils Dagsson

Re: [whatwg] A mask= advisory flag for link rel=icon

2015-06-15 Thread Maciej Stachowiak
On Jun 15, 2015, at 3:55 PM, Elliott Sprehn espr...@chromium.org wrote: Adding a whole new attribute for this seems like overkill, why not use the rel. link rel=icon mask href=... sizes=... That's what the rel list was designed for. In general, rel values are supposed to be

Re: [whatwg] A mask= advisory flag for link rel=icon

2015-06-15 Thread Elliott Sprehn
Adding a whole new attribute for this seems like overkill, why not use the rel. link rel=icon mask href=... sizes=... That's what the rel list was designed for. On Mon, Jun 15, 2015 at 10:37 AM, Edward O'Connor eocon...@apple.com wrote: When link is used to pull in external resources, authors

Re: [whatwg] A mask= advisory flag for link rel=icon

2015-06-15 Thread Justin Dolske
Hmm, I suppose Elliott's proposal is a bit ambiguous, but I read it as fixing the ordering issue by adding a separate mask rel value. Such that the following are equivalent and independent of ordering: A) link rel=icon href=colorful.pnglink rel=mask href=black.svg B) link rel=mask