- From: Koji Ishii <kojiishi@gmail.com>
- Date: Wed, 29 Apr 2015 16:06:09 +0900
- To: "Linss, Peter" <peter.linss@hp.com>
- Cc: "public-css-testsuite@w3.org" <public-css-testsuite@w3.org>
- Message-ID: <CAN9ydbUV04Z6084nPqYZCSSFidvBje+RkdF4A19PEiG=k2okTA@mail.gmail.com>
Thank you for the information, copied to under support and it works fine now. On Wed, Apr 29, 2015 at 3:10 AM, Linss, Peter <peter.linss@hp.com> wrote: > Using webfonts is OK, the only real issue is that you're creating a > dependency on the client being tested to _also_ support webfonts in order > to pass the test. This may not be desirable, but I don't have strong > feelings. > > > The proper way to do this (or include any resource other than a reference > file) is to have the webfont file in the same directory as the test, or in > a subdirectory and use a relative URL. Rather than create a new "fonts" > directory, you should simply put the font file into a "support" > subdirectory, just like any other resource. > > You should never use absolute URLs to anything inside the test repository, > and you should never use relative URLs that start with "../" for anything > except reference links. > > It's fine to copy the font file into multiple support directories, both > Shepherd and the build system will recognize them as the same file so long > as they have the same contents (i.e. don't use the same file name for > different font files). > > Peter > > On Apr 26, 2015, at 11:50 PM, Koji Ishii <kojiishi@gmail.com> wrote: > > I'm trying to load a web font in my test from /fonts[1] in my tests, > but either "../fonts/..." or "/fonts/..." failed in 404 in test harness. > > What are the proper way to refer files in the root directory of the test > repository? Or is it a bad idea to do so? Should I have copies of fonts in > support sub directory of each test suite? > > [1] http://hg.csswg.org/test/file/tip/fonts/adobe-fonts > > /koji > > >
Received on Wednesday, 29 April 2015 07:06:36 UTC