<?xml version="1.0" encoding="UTF-8"?>
<testCaseDescription xmlns="http://bentoweb.org/refs/TCDL2.0/" xmlns:btw="http://bentoweb.org/refs/TCDL2.0/" xmlns:tcd="http://bentoweb.org/refs/TCDL1.1" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:html="http://www.w3.org/1999/xhtml" xmlns:earlwd="http://www.w3.org/WAI/ER/EARL/nmg-strawman#" xmlns:http="http://www.w3.org/2006/http#" xmlns:uri="http://www.w3.org/2006/uri#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" id="sc1.4.3_l2_009" xsi:schemaLocation="http://bentoweb.org/refs/TCDL2.0/ http://bentoweb.org/refs/schemas/tcdl2.0.xsd http://purl.org/dc/elements/1.1/ http://dublincore.org/schemas/xmls/qdc/2006/01/06/dc.xsd http://www.w3.org/1999/xhtml http://www.w3.org/2004/07/xhtml/xhtml1-strict.xsd http://www.w3.org/1999/xlink http://bentoweb.org/refs/schemas/xlink.xsd http://www.w3.org/2006/http# http://bentoweb.org/refs/schemas/http.xsd http://www.w3.org/2006/uri# http://bentoweb.org/refs/schemas/uri.xsd http://www.w3.org/WAI/ER/EARL/nmg-strawman# http://bentoweb.org/refs/schemas/earlwd.xsd">
   <formalMetadata>
      <title>Contrast for foreground text and background colour</title>
      <dc:creator xsi:type="btw:dcHtmlInline">Developed by <html:a href="http://www.w3.org/">
            <html:acronym title="World Wide Web Consortium">W3C</html:acronym>
         </html:a>/<html:a href="http://www.w3.org/WAI/">
            <html:acronym title="Web Accessibility Initiative">WAI</html:acronym>
         </html:a>'s <html:a href="http://www.w3.org/WAI/ER/">Evaluation and Repair Tools Working Group</html:a> (ERT WG). We invite comments and discussion. Please address your feedback to <html:a href="mailto:public-wai-ert-tests@w3.org">public-wai-ert-tests@w3.org</html:a>, a mailing list with a <html:a href="http://lists.w3.org/Archives/Public/public-wai-ert-tsdtf/">public archive</html:a>.</dc:creator>
      <dc:language>en</dc:language>
      <dc:rights xsi:type="btw:dcHtmlInline">
         <html:a rel="Copyright" href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</html:a> © 1994-2008 <html:a href="http://www.w3.org/">
            <html:acronym title="World Wide Web Consortium">W3C</html:acronym>
         </html:a>
         <html:sup>®</html:sup> (<html:a href="http://www.csail.mit.edu/">
            <html:acronym title="Massachusetts Institute of Technology">MIT</html:acronym>
         </html:a>, <html:a href="http://www.ercim.org/">
            <html:acronym title="European Research Consortium for Informatics and Mathematics">ERCIM</html:acronym>
         </html:a>, <html:a href="http://www.keio.ac.jp/">Keio</html:a>), All Rights Reserved. <html:acronym title="World Wide Web Consortium">W3C</html:acronym>
         <html:a href="http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer">liability</html:a>, <html:a href="http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks">trademark</html:a>, <html:a rel="Copyright" href="http://www.w3.org/Consortium/Legal/copyright-documents">document use</html:a> and <html:a rel="Copyright" href="http://www.w3.org/Consortium/Legal/copyright-software">software licensing</html:a> rules apply. Your interactions with this site are in accordance with our <html:a href="http://www.w3.org/Consortium/Legal/privacy-statement#Public">public</html:a> and <html:a href="http://www.w3.org/Consortium/Legal/privacy-statement#Members">Member</html:a> privacy statements.</dc:rights>
      <dc:date xsi:type="btw:btwDate">$Date: 2009/04/29 09:07:25 $</dc:date>
      <status>unconfirmed</status>
      <version>$Revision: 1.8 $</version>
   </formalMetadata>
   <technologies>
      <technicalSpec xlink:href="http://www.w3.org/TR/xhtml1/" handle="XHTML10" mediatype="application/xhtml+xml">
         <specName><html:acronym>XHTML</html:acronym>™ 1.0 The Extensible HyperText Markup Language (Second Edition)
      </specName>
         <testElements>
            <testElement>
               <elementName localname="body" namespace="http://www.w3.org/1999/xhtml"/>
               <specReference/>
            </testElement>
         </testElements>
      </technicalSpec>
   </technologies>
   <testCase >
      <dc:description xsi:type="btw:dcHtmlInline">Document containing text on a background colour.</dc:description>
      <purpose>
      
         <p>The test is intended to pass because the luminosity contrast ratio is higher than 5.</p>
    
      </purpose>
      <expertGuidance>
      
         <p>The formula to be used for calculating the luminosity contrast ratio can be found at http://www.w3.org/TR/2006/WD-WCAG20-20060427/appendixA.html#luminosity-contrastdef.</p>
    
      </expertGuidance>
      <files>
         <file>
            <http:GetRequest>
               <http:requestURI>
                  <http:absoluteURI>../testfiles/sc1.4.3_l2_009.html</http:absoluteURI>
               </http:requestURI>
               <http:version>1.1</http:version>
            </http:GetRequest>
         </file>
      </files>
   </testCase>
   <rules>
      <rule  xlink:href="http://bentoweb.org/refs/rulesets.xml#WCAG2_20070517_1.4_visual-audio-contrast-contrast">
         <locations expectedResult="pass">
            <location techrefs="G18 "><!--If the test file uses client-side or server-side scripting to write content, check that the locations refer to the generated content!-->
               <earlwd:lineCharLen>
                  <earlwd:line>6</earlwd:line>
                  <earlwd:char>9</earlwd:char>
               </earlwd:lineCharLen>
               <earlwd:xPath>
                  <earlwd:expression>/h:html/h:body/@bgcolor</earlwd:expression>
               </earlwd:xPath>
            </location>
            <location techrefs="G18 "><!--If the test file uses client-side or server-side scripting to write content, check that the locations refer to the generated content!-->
               <earlwd:lineCharLen>
                  <earlwd:line>6</earlwd:line>
                  <earlwd:char>27</earlwd:char>
               </earlwd:lineCharLen>
               <earlwd:xPath>
                  <earlwd:expression>/h:html/h:body/@text</earlwd:expression>
               </earlwd:xPath>
            </location>
         </locations>
         <techniques>
            <technique id="G18" xlink:href="http://www.w3.org/TR/2007/WD-WCAG20-TECHS-20070517/#G18"/>
         </techniques>
         <techComment>
        
            <p>The luminosity contrast ratio is 6.12.</p>
        
            <p>This test case maps to technique <html:span class="technique">G18: Ensuring that a contrast ratio of at least 5:1 exists between text and background behind the text</html:span>
            </p>
      
         </techComment>
      </rule>
   </rules>
   <namespaceMappings>
      <namespace nsPrefix="h" nsURI="http://www.w3.org/1999/xhtml"/>
   </namespaceMappings>
</testCaseDescription>