W3C home > Mailing lists > Public > www-style@w3.org > September 2013

Re: [css-fonts-3] i18n-ISSUE-297: Double slash before URI

From: Simon Pieters <simonp@opera.com>
Date: Mon, 16 Sep 2013 10:51:13 +0200
To: "John Daggett" <jdaggett@mozilla.com>, Martin J. Dürst <duerst@it.aoyama.ac.jp>
Cc: "Richard Ishida" <ishida@w3.org>, "W3C Style" <www-style@w3.org>, "www International" <www-international@w3.org>
Message-ID: <op.w3hxjnjoidj3kv@simons-macbook-pro.local>
On Mon, 16 Sep 2013 09:05:01 +0200, Martin J. Dürst  
<duerst@it.aoyama.ac.jp> wrote:

> On 2013/09/13 11:13, John Daggett wrote:
>>
>>
>> Richard Ishida wrote:
>>
>>> 4.9.1. Default same-origin restriction
>>> http://www.w3.org/TR/2013/WD-css-fonts-3-20130711/#default-same-origin-restriction
>>>
>>> "src: url(//fonts/simple.ttf);"
>>>
>>> Is the // intentional?
>>
>> Yeah, that's incorrect, as John notes that should have a TLD in there.
>>
>> Best just to trim this.
>
> I'm not sure exactly what you mean by trim.

Just remove the whole line.

The example says:

/* same origin (i.e. domain, scheme, port match document) */
src: url(fonts/simple.ttf);
src: url(//fonts/simple.ttf);

The example would be clear and simple with only the first line.


> One solution is to make this
>    "src: url(/fonts/simple.ttf);"
> That's the 'simple.ttp' file in the /fonts directory on the same server  
> as the stylesheet itself.

Yes.

> Another solution is to make it
>     "src: url(//fonts.example.org/simple.ttf);"
> which would be an independent fonts.example.org site providing the font.

No, then it wouldn't be same origin.

> Another solution is
>     "src: url(fonts/simple.ttf);"
> where fonts/ would be a subdirectory of the place where the stylesheet  
> is.

That would be identical to the line above it.

-- 
Simon Pieters
Opera Software
Received on Monday, 16 September 2013 08:51:49 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:34 UTC