Source for file validate_atrules.php
Documentation is available at validate_atrules.php
* Example file demonstrating how to validate a CSS fragment.
* @package Services_W3C_CSSValidator
* @author Laurent Laville <pear@laurent-laville.org>
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @link http://pear.php.net/package/Services_W3C_CSSValidator
* @since File available since Release 0.1.0
require_once 'Services/W3C/CSSValidator.php';
$r = $v->validateFragment ('@import url("foo.css") screen, print;
@media screen { color: green; background-color: yellow; }
@namespace foo url("http://www.example.com/");
@page thin:first { size: 3in 8in }
@fontdef url("http://www.example.com/sample.pfr");
@font-face { font-family: dreamy; font-weight: bold; }');
Documentation generated on Fri, 23 Nov 2007 13:00:08 -0500 by phpDocumentor 1.4.0. PEAR Logo Copyright © PHP Group 2004.
|