[DISABLED] Guidelines for the Mobile Web Test Suites Group (MWTS) Tests Submissions

Licensing Issues and Acceptance

Test Structure and Documentation

Examples of a positive test cases:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN"
    "http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd">
<html  xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <title>CSS 2.1 Test Suite: Characters and Case:
            Character Escapes</title>
  <style type="text/css">
    p { background: red; color: white; }
    p { font-family: "\"", '\'', serif; background: green;
    }
  </style>
 </head>
 <body>
  <p>This should have a green background.</p>
  </body>
</html>
    
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html lang="en">
   <head>
    <title>HTML BIDI: dir=rtl</title>
   </head>
   <body dir="rtl">
     <p>!The exclamation mark should be to the right of the text, and the phrase should be right-aligned</p>
   </body>
</html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html lang="en">
 <head>
   <title>CSS Block Box Model: first-line and anonymous boxes</title>
  <style type="text/css">
      div { color: red; }
      :first-line { color: green; }
      p, p:first-line { color: black; background: white; }
  </style>
 </head>
 <body>
  <p>The following lines should all be green (assuming none of them wrap onto more than one line).</p>

  <div>
   <div> This line should be green. </div>
    
   <div> This line should be green. </div>
    
   <div> This line should be green. </div>
    
  </div>
 </body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <title>CSS Tables: Empty Tables</title>
  <style type="text/css">
    table { display: table; height: 5em; width: 5em; background: green; }
  </style>
 </head>
 <body>
  <p>There should be a green block under this paragraph.</p>
  <table xmlns="http://www.example.org/"/>
 </body>
</html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html lang="en">
 <head>
  <title>CSS text-indent: Percentges</title>
  <style type="text/css">
    .wide { width: 16em; font: 30px/0 monospace; text-indent: 8em; margin: 2em 0; }
    .narrow { width: 4em; text-indent: 50%; }
  </style>
 </head>
 <body>
   <div class="wide">PA<div class="narrow">  SS</div></div>
 </body>
</html>

Test cases

Relevant Specifications

Expected Results


Carmelo Montanez, Mobile Web Test Suites Working Group co-chair · Last modified: $Date: 2019/08/28 19:43:49 $ by $Author: carcone $

Copyright © 2007 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply. Your interactions with this site are in accordance with our public and Member privacy statements.