quailCSS Class Reference
List of all members.
Detailed Description
A helper class to parse the document's CSS so we can run accessibility tests against it.
Definition at line 43 of file css.php.
Constructor & Destructor Documentation
| quailCSS::__construct |
( |
&$ |
dom, |
|
|
$ |
uri, |
|
|
$ |
type, |
|
|
$ |
path, |
|
|
$ |
cms_mode = false, |
|
|
$ |
css_files = array() | |
|
) |
| | |
Class constructor. We are just building and importing variables here and then loading the CSS
- Parameters:
-
| object | $dom The DOMDocument object |
| string | $uri The URI of the request |
| string | $type The type of request |
| bool | $cms_mode Whether we are running in CMS mode |
| array | $css_files An array of additional CSS files to load |
Definition at line 103 of file css.php.
Member Function Documentation
| quailCSS::getSpecificity |
( |
$ |
selector |
) |
|
Returns a specificity count to the given selector. Higher specificity means it overrides other styles.
- Parameters:
-
| string | selector The CSS Selector |
Definition at line 219 of file css.php.
| quailCSS::getStyle |
( |
$ |
element |
) |
|
Interface method for tests to call to lookup the style information for a given DOMNode
- Parameters:
-
| object | $element A DOMElement/DOMNode object |
- Returns:
- array An array of style information (can be empty)
Definition at line 249 of file css.php.
The documentation for this class was generated from the following file:
- /Applications/MAMP/htdocs/quail/trunk/quail/common/css.php