W3C home > Mailing lists > Public > public-css-testsuite@w3.org > May 2004

[css3-selectors] :contains

From: Anne van Kesteren (fora) <fora@annevankesteren.nl>
Date: Sun, 30 May 2004 13:37:24 +0200
Message-ID: <40B9C774.7070909@annevankesteren.nl>
To: W3C CSS List <www-style@w3.org>
Cc: public-css-testsuite@w3.org

I was wondering a bit about ':contains' [1]. What should be the 
background-color  in the following cases:


   <test/>

   test{                   background:red  }
   test::before{           content:"PASS"  }
   test:contains('PASS'){  background:lime }


   <test/>

   test{                   background:red  }
   test::before{           content:"PA"    }
   test::after{            content:"SS"    }
   test:contains('PASS'){  background:lime }


   <test>SS</test>

   test{                   background:red  }
   test::before{           content:"PA"    }
   test:contains('PASS'){  background:lime }


These cases could be extended with instances of ':hover', ':active', 
':focus' to make it more complex of course. Just to be sure, the 
following won't match, right?


   <test>&amp;</test>

   test:contains('&amp;'){ background:red  }


I think these issues need to be addressed in the selectors test suite as 
well.


[1] 
<http://www.w3.org/TR/2001/CR-css3-selectors-20011113/#content-selectors>

-- 
  Anne van Kesteren
  <http://annevankesteren.nl/>
Received on Sunday, 30 May 2004 07:37:56 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 20 September 2010 17:51:54 GMT