W3C home > Mailing lists > Public > public-css-testsuite@w3.org > June 2012

Re: Semantics of <link rel=match> together with <link rel=mismatch>

From: Aryeh Gregor <ayg@aryeh.name>
Date: Tue, 19 Jun 2012 21:53:50 +0300
Message-ID: <CAKA+Ax=X4p-DWBfjbkh9Q+-Zcuj1m1A2nBND=r0LwRLF=mSMLQ@mail.gmail.com>
To: "Linss, Peter" <peter.linss@hp.com>
Cc: CSS-testsuite <public-css-testsuite@w3.org>
On Tue, Jun 19, 2012 at 8:15 PM, Linss, Peter <peter.linss@hp.com> wrote:
> A test may not match any of its 'mismatch' references. It's not really an 'and' relationship it's:
>
> pass == (test == test-ref.html) and not ((test == test-notref-1.html) or (test == test-notref-2.html))
>
> if that helps…

Or put another way:

pass == (test == test-ref.html) and (test != test-notref-1.html) and
(test != test-notref-2.html)

> If you had a more complex situation like:
>
> test:
> <link rel="match" href="test-ref-1.html">
> <link rel="match" href="test-ref-2.html">
> <link rel="mismatch" href="test-notref-1.html">
> <link rel="mismatch" href="test-notref-2.html">
>
> then it's:
> pass == ((test == test-ref-1.html) or (test == test-ref-2.html)) and not ((test == test-notref-1.html) or (test == test-notref-2.html))

A.k.a.:

pass == ((test == test-ref-1.html) or (test == test-ref-2.html)) and
(test != test-notref-1.html) and (test != test-notref-2.html)

So to put it another way, for a test to pass:

1) If at least one <link rel=match> is specified, it must match one or
more of them.

2) If at least one <link rel=mismatch> is specified, it cannot match
any of them.

Okay, that's clear now.  Thanks!
Received on Tuesday, 19 June 2012 18:54:43 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 19 June 2012 18:54:50 GMT