- From: Aryeh Gregor <ayg@aryeh.name>
- Date: Tue, 19 Jun 2012 21:53:50 +0300
- 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 UTC