%
% API Documentation for cssutils
% Module cssutils.css.property
%
% 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.property \textit{(module)}|(}
\section{Module cssutils.css.property}

    \label{cssutils:css:property}

Property is a single CSS property in a CSSStyleDeclaration

Internal use only, may be removed in the future!
\textbf{Version:} \$LastChangedRevision: 955 \$



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



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




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

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

    \label{cssutils:css:property:Property}
\begin{tabular}{cccccccc}
% Line for object, linespec=[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]
\multicolumn{4}{r}{\settowidth{\BCL}{cssutils.util.Base}\multirow{2}{\BCL}{cssutils.util.Base}}
&&
  \\\cline{5-5}
  &&&&\multicolumn{1}{c|}{}
&&
  \\
&&&&\multicolumn{2}{l}{\textbf{cssutils.css.property.Property}}
\end{tabular}


(cssutils) a CSS property in a StyleDeclaration of a CSSStyleRule


%___________________________________________________________________________

\hypertarget{properties}{}
\pdfbookmark[3]{Properties}{properties}
\paragraph*{Properties}
\label{properties}
\begin{description}
\item[{cssText}] \leavevmode 
a parsable textual representation of this property

\item[{name}] \leavevmode 
normalized name of the property, e.g. ``color'' when name is ``color''
(since 0.9.5)

\item[{literalname (since 0.9.5)}] \leavevmode 
original name of the property in the source CSS which is not normalized
e.g. ``COLor''

\item[{cssValue}] \leavevmode 
the relevant CSSValue instance for this property

\item[{value}] \leavevmode 
the string value of the property, same as cssValue.cssText

\item[{priority}] \leavevmode 
of the property (currently only u``important'' or None)

\item[{literalpriority}] \leavevmode 
original priority of the property in the source CSS which is not
normalized e.g. ``IMportant''

\item[{seqs}] \leavevmode 
combination of a list for seq of name, a CSSValue object, and
a list for seq of  priority (empty or {[}!important{]} currently)

\item[{valid}] \leavevmode 
if this Property is valid

\item[{wellformed}] \leavevmode 
if this Property is syntactically ok

\item[{DEPRECATED normalname (since 0.9.5)}] \leavevmode 
normalized name of the property, e.g. ``color'' when name is ``color''

\end{description}


%___________________________________________________________________________

\hypertarget{format}{}
\pdfbookmark[3]{Format}{format}
\paragraph*{Format}
\label{format}
\begin{quote}{\ttfamily \raggedright \noindent
property~=~name~\\
~~:~IDENT~S*~\\
~~;~\\
~\\
expr~=~value~\\
~~:~term~{[}~operator~term~{]}*~\\
~~;~\\
term~\\
~~:~unary{\_}operator?~\\
~~~~{[}~NUMBER~S*~|~PERCENTAGE~S*~|~LENGTH~S*~|~EMS~S*~|~EXS~S*~|~ANGLE~S*~|~\\
~~~~~~TIME~S*~|~FREQ~S*~|~function~{]}~\\
~~|~STRING~S*~|~IDENT~S*~|~URI~S*~|~hexcolor~\\
~~;~\\
function~\\
~~:~FUNCTION~S*~expr~')'~S*~\\
~~;~\\
/*~\\
~*~There~is~a~constraint~on~the~color~that~it~must~\\
~*~have~either~3~or~6~hex-digits~(i.e.,~{[}0-9a-fA-F{]})~\\
~*~after~the~"{\#}";~e.g.,~"{\#}000"~is~OK,~but~"{\#}abcd"~is~not.~\\
~*/~\\
hexcolor~\\
~~:~HASH~S*~\\
~~;~\\
~\\
prio~\\
~~:~IMPORTANT{\_}SYM~S*~\\
~~;
}\end{quote}

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

  \subsubsection{Methods}

    \vspace{0.5ex}

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

    \raggedright \textbf{\_\_init\_\_}(\textit{self}, \textit{name}={\tt None}, \textit{value}={\tt None}, \textit{priority}={\tt \texttt{u'}\texttt{}\texttt{'}}, \textit{\_mediaQuery}={\tt False})

    \vspace{-1.5ex}

    \rule{\textwidth}{0.5\fboxrule}
\setlength{\parskip}{2ex}

inits property
\begin{description}
\item[{name}] \leavevmode 
a property name string (will be normalized)

\item[{value}] \leavevmode 
a property value string

\item[{priority}] \leavevmode 
an optional priority string which currently must be u'',
u'!important' or u'important'

\item[{{\_}mediaQuery boolean}] \leavevmode 
if True value is optional as used by MediaQuery objects

\end{description}
\setlength{\parskip}{1ex}
      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 A parsable textual representation.&\\
\cline{1-2}
\raggedright n\-a\-m\-e\- & \raggedright Name of this property&\\
\cline{1-2}
\raggedright l\-i\-t\-e\-r\-a\-l\-n\-a\-m\-e\- & \raggedright Readonly literal (not normalized) name of this property&\\
\cline{1-2}
\raggedright c\-s\-s\-V\-a\-l\-u\-e\- & \raggedright (cssutils) CSSValue object of this property&\\
\cline{1-2}
\raggedright v\-a\-l\-u\-e\- & \raggedright The textual value of this Properties cssValue.&\\
\cline{1-2}
\raggedright p\-r\-i\-o\-r\-i\-t\-y\- & \raggedright (cssutils) Priority of this property&\\
\cline{1-2}
\raggedright l\-i\-t\-e\-r\-a\-l\-p\-r\-i\-o\-r\-i\-t\-y\- & \raggedright Readonly literal (not normalized) priority of this property&\\
\cline{1-2}
\raggedright n\-o\-r\-m\-a\-l\-n\-a\-m\-e\- & \raggedright DEPRECATED since 0.9.5, use name instead&\\
\cline{1-2}
\multicolumn{2}{|l|}{\textit{Inherited from object}}\\
\multicolumn{2}{|p{\varwidth}|}{\raggedright \_\_class\_\_}\\
\cline{1-2}
\end{longtable}

    \index{cssutils \textit{(package)}!cssutils.css \textit{(package)}!cssutils.css.property \textit{(module)}!cssutils.css.property.Property \textit{(class)}|)}
    \index{cssutils \textit{(package)}!cssutils.css \textit{(package)}!cssutils.css.property \textit{(module)}|)}
