%
% API Documentation for cssutils
% Module cssutils.css.cssstylerule
%
% Generated by epydoc 3.0.1
% [Fri Feb 01 19:05:21 2008]
%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%                          Module Description                           %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    \index{cssutils \textit{(package)}!cssutils.css \textit{(package)}!cssutils.css.cssstylerule \textit{(module)}|(}
\section{Module cssutils.css.cssstylerule}

    \label{cssutils:css:cssstylerule}

CSSStyleRule implements DOM Level 2 CSS CSSStyleRule.
\textbf{Version:} \$LastChangedRevision: 954 \$



\textbf{Date:} \$LastChangedDate: 2008-01-27 17:45:53 +0100 (So, 27 Jan 2008) \$



\textbf{Author:} \$LastChangedBy: cthedot \$




%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%                           Class Description                           %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    \index{cssutils \textit{(package)}!cssutils.css \textit{(package)}!cssutils.css.cssstylerule \textit{(module)}!cssutils.css.cssstylerule.CSSStyleRule \textit{(class)}|(}
\subsection{Class CSSStyleRule}

    \label{cssutils:css:cssstylerule:CSSStyleRule}
\begin{tabular}{cccccccccc}
% Line for object, linespec=[False, False, False]
\multicolumn{2}{r}{\settowidth{\BCL}{object}\multirow{2}{\BCL}{object}}
&&
&&
&&
  \\\cline{3-3}
  &&\multicolumn{1}{c|}{}
&&
&&
&&
  \\
% Line for cssutils.util.Base, linespec=[False, False]
\multicolumn{4}{r}{\settowidth{\BCL}{cssutils.util.Base}\multirow{2}{\BCL}{cssutils.util.Base}}
&&
&&
  \\\cline{5-5}
  &&&&\multicolumn{1}{c|}{}
&&
&&
  \\
% Line for cssutils.css.cssrule.CSSRule, linespec=[False]
\multicolumn{6}{r}{\settowidth{\BCL}{cssutils.css.cssrule.CSSRule}\multirow{2}{\BCL}{cssutils.css.cssrule.CSSRule}}
&&
  \\\cline{7-7}
  &&&&&&\multicolumn{1}{c|}{}
&&
  \\
&&&&&&\multicolumn{2}{l}{\textbf{cssutils.css.cssstylerule.CSSStyleRule}}
\end{tabular}


The CSSStyleRule object represents a ruleset specified (if any) in a CSS
style sheet. It provides access to a declaration block as well as to the
associated group of selectors.


%___________________________________________________________________________

\hypertarget{properties}{}
\pdfbookmark[3]{Properties}{properties}
\paragraph*{Properties}
\label{properties}
\begin{description}
\item[{selectorList: of type SelectorList (cssutils only)}] \leavevmode 
A list of all Selector elements for the rule set.

\item[{selectorText: of type DOMString}] \leavevmode 
The textual representation of the selector for the rule set. The
implementation may have stripped out insignificant whitespace while
parsing the selector.

\item[{style: of type CSSStyleDeclaration, (DOM)}] \leavevmode 
The declaration-block of this rule set.

\item[{type}] \leavevmode 
the type of this rule, constant cssutils.CSSRule.STYLE{\_}RULE

\item[{inherited properties:}] \leavevmode \begin{itemize}
\item {} 
cssText

\item {} 
parentRule

\item {} 
parentStyleSheet

\end{itemize}

\end{description}


%___________________________________________________________________________

\hypertarget{format}{}
\pdfbookmark[3]{Format}{format}
\paragraph*{Format}
\label{format}

ruleset:
\begin{quote}{\ttfamily \raggedright \noindent
:~selector~{[}~COMMA~S*~selector~{]}*~\\
LBRACE~S*~declaration~{[}~';'~S*~declaration~{]}*~'{\}}'~S*~\\
;
}\end{quote}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%                                Methods                                %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

  \subsubsection{Methods}

    \vspace{0.5ex}

\hspace{.8\funcindent}\begin{boxedminipage}{\funcwidth}

    \raggedright \textbf{\_\_init\_\_}(\textit{self}, \textit{selectorText}={\tt None}, \textit{style}={\tt None}, \textit{parentRule}={\tt None}, \textit{parentStyleSheet}={\tt None}, \textit{readonly}={\tt False})

    \vspace{-1.5ex}

    \rule{\textwidth}{0.5\fboxrule}
\setlength{\parskip}{2ex}
    x.\_\_init\_\_(...) initializes x; see x.\_\_class\_\_.\_\_doc\_\_ for 
    signature

\setlength{\parskip}{1ex}
      \textbf{Parameters}
      \vspace{-1ex}

      \begin{quote}
        \begin{Ventry}{xxxxxxxxxxxx}

          \item[selectorText]


string parsed into selectorList
          \item[style]


string parsed into CSSStyleDeclaration for this CSSStyleRule
          \item[readonly]


if True allows setting of properties in constructor only
        \end{Ventry}

      \end{quote}

      Overrides: object.\_\_init\_\_

    \end{boxedminipage}

    \vspace{0.5ex}

\hspace{.8\funcindent}\begin{boxedminipage}{\funcwidth}

    \raggedright \textbf{\_\_repr\_\_}(\textit{self})

\setlength{\parskip}{2ex}
    repr(x)

\setlength{\parskip}{1ex}
      Overrides: object.\_\_repr\_\_ 	extit{(inherited documentation)}

    \end{boxedminipage}

    \vspace{0.5ex}

\hspace{.8\funcindent}\begin{boxedminipage}{\funcwidth}

    \raggedright \textbf{\_\_str\_\_}(\textit{self})

\setlength{\parskip}{2ex}
    str(x)

\setlength{\parskip}{1ex}
      Overrides: object.\_\_str\_\_ 	extit{(inherited documentation)}

    \end{boxedminipage}


\large{\textbf{\textit{Inherited from object}}}

\begin{quote}
\_\_delattr\_\_(), \_\_getattribute\_\_(), \_\_hash\_\_(), \_\_new\_\_(), \_\_reduce\_\_(), \_\_reduce\_ex\_\_(), \_\_setattr\_\_()
\end{quote}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%                              Properties                               %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

  \subsubsection{Properties}

    \vspace{-1cm}
\hspace{\varindent}\begin{longtable}{|p{\varnamewidth}|p{\vardescrwidth}|l}
\cline{1-2}
\cline{1-2} \centering \textbf{Name} & \centering \textbf{Description}& \\
\cline{1-2}
\endhead\cline{1-2}\multicolumn{3}{r}{\small\textit{continued on next page}}\\\endfoot\cline{1-2}
\endlastfoot\raggedright c\-s\-s\-T\-e\-x\-t\- & \raggedright (DOM) The parsable textual representation of the rule.&\\
\cline{1-2}
\raggedright s\-e\-l\-e\-c\-t\-o\-r\-L\-i\-s\-t\- & \raggedright The SelectorList of this rule.&\\
\cline{1-2}
\raggedright s\-e\-l\-e\-c\-t\-o\-r\-T\-e\-x\-t\- & \raggedright (DOM) The textual representation of the selector for the
rule set.&\\
\cline{1-2}
\raggedright s\-t\-y\-l\-e\- & \raggedright (DOM) The declaration-block of this rule set.&\\
\cline{1-2}
\multicolumn{2}{|l|}{\textit{Inherited from cssutils.css.cssrule.CSSRule \textit{(Section \ref{cssutils:css:cssrule:CSSRule})}}}\\
\multicolumn{2}{|p{\varwidth}|}{\raggedright parentRule, parentStyleSheet, typeString}\\
\cline{1-2}
\multicolumn{2}{|l|}{\textit{Inherited from object}}\\
\multicolumn{2}{|p{\varwidth}|}{\raggedright \_\_class\_\_}\\
\cline{1-2}
\end{longtable}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%                            Class Variables                            %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

  \subsubsection{Class Variables}

    \vspace{-1cm}
\hspace{\varindent}\begin{longtable}{|p{\varnamewidth}|p{\vardescrwidth}|l}
\cline{1-2}
\cline{1-2} \centering \textbf{Name} & \centering \textbf{Description}& \\
\cline{1-2}
\endhead\cline{1-2}\multicolumn{3}{r}{\small\textit{continued on next page}}\\\endfoot\cline{1-2}
\endlastfoot\raggedright t\-y\-p\-e\- & \raggedright The type of this rule, as defined by a CSSRule type constant.
Overwritten in derived classes.

The expectation is that binding-specific casting methods can be used to
cast down from an instance of the CSSRule interface to the specific
derived interface implied by the type.
(Casting not for this Python implementation I guess...)

\textbf{Value:} 
{\tt 1}&\\
\cline{1-2}
\multicolumn{2}{|l|}{\textit{Inherited from cssutils.css.cssrule.CSSRule \textit{(Section \ref{cssutils:css:cssrule:CSSRule})}}}\\
\multicolumn{2}{|p{\varwidth}|}{\raggedright CHARSET\_RULE, COMMENT, FONT\_FACE\_RULE, IMPORT\_RULE, MEDIA\_RULE, NAMESPACE\_RULE, PAGE\_RULE, STYLE\_RULE, UNKNOWN\_RULE}\\
\cline{1-2}
\end{longtable}

    \index{cssutils \textit{(package)}!cssutils.css \textit{(package)}!cssutils.css.cssstylerule \textit{(module)}!cssutils.css.cssstylerule.CSSStyleRule \textit{(class)}|)}
    \index{cssutils \textit{(package)}!cssutils.css \textit{(package)}!cssutils.css.cssstylerule \textit{(module)}|)}
