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

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

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

    \label{cssutils:serialize}

serializer classes for CSS classes
\textbf{Version:} \$LastChangedRevision: 956 \$



\textbf{Date:} \$LastChangedDate: 2008-01-27 18:01:52 +0100 (So, 27 Jan 2008) \$



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




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

    \index{cssutils \textit{(package)}!cssutils.serialize \textit{(module)}!cssutils.serialize.Preferences \textit{(class)}|(}
\subsection{Class Preferences}

    \label{cssutils:serialize:Preferences}
\begin{tabular}{cccccc}
% Line for object, linespec=[False]
\multicolumn{2}{r}{\settowidth{\BCL}{object}\multirow{2}{\BCL}{object}}
&&
  \\\cline{3-3}
  &&\multicolumn{1}{c|}{}
&&
  \\
&&\multicolumn{2}{l}{\textbf{cssutils.serialize.Preferences}}
\end{tabular}


controls output of CSSSerializer
\begin{description}
\item[{defaultAtKeyword = True}] \leavevmode 
Should the literal @keyword from src CSS be used or the default
form, e.g. if \texttt{True}: \texttt{@import} else: \texttt{@i{\textbackslash}mport}

\item[{defaultPropertyName = True}] \leavevmode 
Should the normalized propertyname be used or the one given in
the src file, e.g. if \texttt{True}: \texttt{color} else: \texttt{c{\textbackslash}olor}

Only used if \texttt{keepAllProperties==False}.

\item[{defaultPropertyPriority = True}] \leavevmode 
Should the normalized or literal priority be used, e.g. '!important'
or u'!Important'

\item[{importHrefFormat = None}] \leavevmode 
Uses hreftype if \texttt{None} or explicit \texttt{'string'} or \texttt{'uri'}

\item[{indent = 4 * ' '}] \leavevmode 
Indentation of e.g Properties inside a CSSStyleDeclaration

\item[{indentSpecificities = False}] \leavevmode 
Indent rules with subset of Selectors and higher Specitivity

\item[{keepAllProperties = True}] \leavevmode 
If \texttt{True} all properties set in the original CSSStylesheet
are kept meaning even properties set twice with the exact same
same name are kept!

\item[{keepComments = True}] \leavevmode 
If \texttt{False} removes all CSSComments

\item[{keepEmptyRules = False}] \leavevmode 
defines if empty rules like e.g. \texttt{a {\{}{\}}} are kept in the resulting
serialized sheet

\item[{lineNumbers = False}] \leavevmode 
Only used if a complete CSSStyleSheet is serialized.

\item[{lineSeparator = u'n'}] \leavevmode 
How to end a line. This may be set to e.g. u'' for serializing of
CSSStyleDeclarations usable in HTML style attribute.

\item[{listItemSpacer = u' '}] \leavevmode 
string which is used in \texttt{css.SelectorList}, \texttt{css.CSSValue} and
\texttt{stylesheets.MediaList} after the comma

\item[{omitLastSemicolon = True}] \leavevmode 
If \texttt{True} omits ; after last property of CSSStyleDeclaration

\item[{paranthesisSpacer = u' '}] \leavevmode 
string which is used before an opening paranthesis like in a
\texttt{css.CSSMediaRule} or \texttt{css.CSSStyleRule}

\item[{propertyNameSpacer = u' '}] \leavevmode 
string which is used after a Property name colon

\item[{selectorCombinatorSpacer = u' '}] \leavevmode 
string which is used before and after a Selector combinator like +, {\textgreater} or {\textasciitilde}.
CSSOM defines a single space for this which is also the default in cssutils.

\item[{validOnly = False (\textbf{not anywhere used yet})}] \leavevmode 
if True only valid (Properties or Rules) are kept

A Property is valid if it is a known Property with a valid value.
Currently CSS 2.1 values as defined in cssproperties.py would be
valid.

\item[{wellformedOnly = True (\textbf{not anywhere used yet})}] \leavevmode 
only wellformed properties and rules are kept

\item[{\textbf{DEPRECATED}: removeInvalid = True}] \leavevmode 
Omits invalid rules, replaced by \texttt{validOnly} which will be used
more cases

\end{description}

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

  \subsubsection{Methods}

    \vspace{0.5ex}

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

    \raggedright \textbf{\_\_init\_\_}(\textit{self}, **\textit{initials})

    \vspace{-1.5ex}

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

Always use named instead of positional parameters
\setlength{\parskip}{1ex}
      Overrides: object.\_\_init\_\_

    \end{boxedminipage}

    \label{cssutils:serialize:Preferences:useDefaults}
    \index{cssutils \textit{(package)}!cssutils.serialize \textit{(module)}!cssutils.serialize.Preferences \textit{(class)}!cssutils.serialize.Preferences.useDefaults \textit{(method)}}

    \vspace{0.5ex}

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

    \raggedright \textbf{useDefaults}(\textit{self})

    \vspace{-1.5ex}

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

reset all preference options to the default value
\setlength{\parskip}{1ex}
    \end{boxedminipage}

    \label{cssutils:serialize:Preferences:useMinified}
    \index{cssutils \textit{(package)}!cssutils.serialize \textit{(module)}!cssutils.serialize.Preferences \textit{(class)}!cssutils.serialize.Preferences.useMinified \textit{(method)}}

    \vspace{0.5ex}

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

    \raggedright \textbf{useMinified}(\textit{self})

    \vspace{-1.5ex}

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

sets options to achive a minified stylesheet

you may want to set preferences with this convinience method
and set settings you want adjusted afterwards
\setlength{\parskip}{1ex}
    \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\multicolumn{2}{|l|}{\textit{Inherited from object}}\\
\multicolumn{2}{|p{\varwidth}|}{\raggedright \_\_class\_\_}\\
\cline{1-2}
\end{longtable}

    \index{cssutils \textit{(package)}!cssutils.serialize \textit{(module)}!cssutils.serialize.Preferences \textit{(class)}|)}

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

    \index{cssutils \textit{(package)}!cssutils.serialize \textit{(module)}!cssutils.serialize.CSSSerializer \textit{(class)}|(}
\subsection{Class CSSSerializer}

    \label{cssutils:serialize:CSSSerializer}
\begin{tabular}{cccccc}
% Line for object, linespec=[False]
\multicolumn{2}{r}{\settowidth{\BCL}{object}\multirow{2}{\BCL}{object}}
&&
  \\\cline{3-3}
  &&\multicolumn{1}{c|}{}
&&
  \\
&&\multicolumn{2}{l}{\textbf{cssutils.serialize.CSSSerializer}}
\end{tabular}


Methods to serialize a CSSStylesheet and its parts

To use your own serializing method the easiest is to subclass CSS
Serializer and overwrite the methods you like to customize.

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

  \subsubsection{Methods}

    \vspace{0.5ex}

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

    \raggedright \textbf{\_\_init\_\_}(\textit{self}, \textit{prefs}={\tt None})

    \vspace{-1.5ex}

    \rule{\textwidth}{0.5\fboxrule}
\setlength{\parskip}{2ex}
\begin{description}
\item[{prefs}] \leavevmode 
instance of Preferences

\end{description}
\setlength{\parskip}{1ex}
      Overrides: object.\_\_init\_\_

    \end{boxedminipage}

    \label{cssutils:serialize:CSSSerializer:do_stylesheets_mediaquery}
    \index{cssutils \textit{(package)}!cssutils.serialize \textit{(module)}!cssutils.serialize.CSSSerializer \textit{(class)}!cssutils.serialize.CSSSerializer.do\_stylesheets\_mediaquery \textit{(method)}}

    \vspace{0.5ex}

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

    \raggedright \textbf{do\_stylesheets\_mediaquery}(\textit{self}, \textit{mediaquery})

    \vspace{-1.5ex}

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

a single media used in medialist
\setlength{\parskip}{1ex}
    \end{boxedminipage}

    \label{cssutils:serialize:CSSSerializer:do_stylesheets_medialist}
    \index{cssutils \textit{(package)}!cssutils.serialize \textit{(module)}!cssutils.serialize.CSSSerializer \textit{(class)}!cssutils.serialize.CSSSerializer.do\_stylesheets\_medialist \textit{(method)}}

    \vspace{0.5ex}

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

    \raggedright \textbf{do\_stylesheets\_medialist}(\textit{self}, \textit{medialist})

    \vspace{-1.5ex}

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

comma-separated list of media, default is 'all'

If ``all'' is in the list, every other media \emph{except} ``handheld'' will
be stripped. This is because how Opera handles CSS for PDAs.
\setlength{\parskip}{1ex}
    \end{boxedminipage}

    \label{cssutils:serialize:CSSSerializer:do_CSSStyleSheet}
    \index{cssutils \textit{(package)}!cssutils.serialize \textit{(module)}!cssutils.serialize.CSSSerializer \textit{(class)}!cssutils.serialize.CSSSerializer.do\_CSSStyleSheet \textit{(method)}}

    \vspace{0.5ex}

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

    \raggedright \textbf{do\_CSSStyleSheet}(\textit{self}, \textit{stylesheet})

    \vspace{-1.5ex}

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

serializes a complete CSSStyleSheet
\setlength{\parskip}{1ex}
    \end{boxedminipage}

    \label{cssutils:serialize:CSSSerializer:do_CSSComment}
    \index{cssutils \textit{(package)}!cssutils.serialize \textit{(module)}!cssutils.serialize.CSSSerializer \textit{(class)}!cssutils.serialize.CSSSerializer.do\_CSSComment \textit{(method)}}

    \vspace{0.5ex}

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

    \raggedright \textbf{do\_CSSComment}(\textit{self}, \textit{rule})

    \vspace{-1.5ex}

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

serializes CSSComment which consists only of commentText
\setlength{\parskip}{1ex}
    \end{boxedminipage}

    \label{cssutils:serialize:CSSSerializer:do_CSSCharsetRule}
    \index{cssutils \textit{(package)}!cssutils.serialize \textit{(module)}!cssutils.serialize.CSSSerializer \textit{(class)}!cssutils.serialize.CSSSerializer.do\_CSSCharsetRule \textit{(method)}}

    \vspace{0.5ex}

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

    \raggedright \textbf{do\_CSSCharsetRule}(\textit{self}, \textit{rule})

    \vspace{-1.5ex}

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

serializes CSSCharsetRule
encoding: string

always @charset ``encoding'';
no comments or other things allowed!
\setlength{\parskip}{1ex}
    \end{boxedminipage}

    \label{cssutils:serialize:CSSSerializer:do_CSSFontFaceRule}
    \index{cssutils \textit{(package)}!cssutils.serialize \textit{(module)}!cssutils.serialize.CSSSerializer \textit{(class)}!cssutils.serialize.CSSSerializer.do\_CSSFontFaceRule \textit{(method)}}

    \vspace{0.5ex}

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

    \raggedright \textbf{do\_CSSFontFaceRule}(\textit{self}, \textit{rule})

    \vspace{-1.5ex}

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

serializes CSSFontFaceRule
\begin{description}
\item[{style}] \leavevmode 
CSSStyleDeclaration

\end{description}
\begin{itemize}
\item {} 
CSSComments

\end{itemize}
\setlength{\parskip}{1ex}
    \end{boxedminipage}

    \label{cssutils:serialize:CSSSerializer:do_CSSImportRule}
    \index{cssutils \textit{(package)}!cssutils.serialize \textit{(module)}!cssutils.serialize.CSSSerializer \textit{(class)}!cssutils.serialize.CSSSerializer.do\_CSSImportRule \textit{(method)}}

    \vspace{0.5ex}

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

    \raggedright \textbf{do\_CSSImportRule}(\textit{self}, \textit{rule})

    \vspace{-1.5ex}

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

serializes CSSImportRule
\begin{description}
\item[{href}] \leavevmode 
string

\item[{hreftype}] \leavevmode 
'uri' or 'string'

\item[{media}] \leavevmode 
cssutils.stylesheets.medialist.MediaList

\end{description}
\begin{itemize}
\item {} 
CSSComments

\end{itemize}
\setlength{\parskip}{1ex}
    \end{boxedminipage}

    \label{cssutils:serialize:CSSSerializer:do_CSSNamespaceRule}
    \index{cssutils \textit{(package)}!cssutils.serialize \textit{(module)}!cssutils.serialize.CSSSerializer \textit{(class)}!cssutils.serialize.CSSSerializer.do\_CSSNamespaceRule \textit{(method)}}

    \vspace{0.5ex}

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

    \raggedright \textbf{do\_CSSNamespaceRule}(\textit{self}, \textit{rule})

    \vspace{-1.5ex}

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

serializes CSSNamespaceRule
\begin{description}
\item[{uri}] \leavevmode 
string

\item[{prefix}] \leavevmode 
string

\end{description}
\begin{itemize}
\item {} 
CSSComments

\end{itemize}
\setlength{\parskip}{1ex}
    \end{boxedminipage}

    \label{cssutils:serialize:CSSSerializer:do_CSSMediaRule}
    \index{cssutils \textit{(package)}!cssutils.serialize \textit{(module)}!cssutils.serialize.CSSSerializer \textit{(class)}!cssutils.serialize.CSSSerializer.do\_CSSMediaRule \textit{(method)}}

    \vspace{0.5ex}

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

    \raggedright \textbf{do\_CSSMediaRule}(\textit{self}, \textit{rule})

    \vspace{-1.5ex}

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

serializes CSSMediaRule
\begin{itemize}
\item {} 
CSSComments

\end{itemize}
\setlength{\parskip}{1ex}
    \end{boxedminipage}

    \label{cssutils:serialize:CSSSerializer:do_CSSPageRule}
    \index{cssutils \textit{(package)}!cssutils.serialize \textit{(module)}!cssutils.serialize.CSSSerializer \textit{(class)}!cssutils.serialize.CSSSerializer.do\_CSSPageRule \textit{(method)}}

    \vspace{0.5ex}

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

    \raggedright \textbf{do\_CSSPageRule}(\textit{self}, \textit{rule})

    \vspace{-1.5ex}

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

serializes CSSPageRule
\begin{description}
\item[{selectorText}] \leavevmode 
string

\item[{style}] \leavevmode 
CSSStyleDeclaration

\end{description}
\begin{itemize}
\item {} 
CSSComments

\end{itemize}
\setlength{\parskip}{1ex}
    \end{boxedminipage}

    \label{cssutils:serialize:CSSSerializer:do_pageselector}
    \index{cssutils \textit{(package)}!cssutils.serialize \textit{(module)}!cssutils.serialize.CSSSerializer \textit{(class)}!cssutils.serialize.CSSSerializer.do\_pageselector \textit{(method)}}

    \vspace{0.5ex}

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

    \raggedright \textbf{do\_pageselector}(\textit{self}, \textit{seq})

    \vspace{-1.5ex}

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

a selector of a CSSPageRule including comments
\setlength{\parskip}{1ex}
    \end{boxedminipage}

    \label{cssutils:serialize:CSSSerializer:do_CSSUnknownRule}
    \index{cssutils \textit{(package)}!cssutils.serialize \textit{(module)}!cssutils.serialize.CSSSerializer \textit{(class)}!cssutils.serialize.CSSSerializer.do\_CSSUnknownRule \textit{(method)}}

    \vspace{0.5ex}

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

    \raggedright \textbf{do\_CSSUnknownRule}(\textit{self}, \textit{rule})

    \vspace{-1.5ex}

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

serializes CSSUnknownRule
anything until ``;'' or ``{\{}...{\}}''
+ CSSComments
\setlength{\parskip}{1ex}
    \end{boxedminipage}

    \label{cssutils:serialize:CSSSerializer:do_CSSStyleRule}
    \index{cssutils \textit{(package)}!cssutils.serialize \textit{(module)}!cssutils.serialize.CSSSerializer \textit{(class)}!cssutils.serialize.CSSSerializer.do\_CSSStyleRule \textit{(method)}}

    \vspace{0.5ex}

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

    \raggedright \textbf{do\_CSSStyleRule}(\textit{self}, \textit{rule})

    \vspace{-1.5ex}

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

serializes CSSStyleRule

selectorList
style
\begin{itemize}
\item {} 
CSSComments

\end{itemize}
\setlength{\parskip}{1ex}
    \end{boxedminipage}

    \label{cssutils:serialize:CSSSerializer:do_css_SelectorList}
    \index{cssutils \textit{(package)}!cssutils.serialize \textit{(module)}!cssutils.serialize.CSSSerializer \textit{(class)}!cssutils.serialize.CSSSerializer.do\_css\_SelectorList \textit{(method)}}

    \vspace{0.5ex}

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

    \raggedright \textbf{do\_css\_SelectorList}(\textit{self}, \textit{selectorlist})

    \vspace{-1.5ex}

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

comma-separated list of Selectors
\setlength{\parskip}{1ex}
    \end{boxedminipage}

    \label{cssutils:serialize:CSSSerializer:do_css_Selector}
    \index{cssutils \textit{(package)}!cssutils.serialize \textit{(module)}!cssutils.serialize.CSSSerializer \textit{(class)}!cssutils.serialize.CSSSerializer.do\_css\_Selector \textit{(method)}}

    \vspace{0.5ex}

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

    \raggedright \textbf{do\_css\_Selector}(\textit{self}, \textit{selector})

    \vspace{-1.5ex}

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

a single Selector including comments

an element has syntax (namespaceURI, name) where namespaceURI may be:
\begin{itemize}
\item {} 
cssutils.{\_}ANYNS ={\textgreater} \texttt{*|name}

\item {} 
None ={\textgreater} \texttt{name}

\item {} 
u'' ={\textgreater} \texttt{|name}

\item {} 
any other value: ={\textgreater} \texttt{prefix|name}

\end{itemize}
\setlength{\parskip}{1ex}
    \end{boxedminipage}

    \label{cssutils:serialize:CSSSerializer:do_css_CSSStyleDeclaration}
    \index{cssutils \textit{(package)}!cssutils.serialize \textit{(module)}!cssutils.serialize.CSSSerializer \textit{(class)}!cssutils.serialize.CSSSerializer.do\_css\_CSSStyleDeclaration \textit{(method)}}

    \vspace{0.5ex}

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

    \raggedright \textbf{do\_css\_CSSStyleDeclaration}(\textit{self}, \textit{style}, \textit{separator}={\tt None})

    \vspace{-1.5ex}

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

Style declaration of CSSStyleRule
\setlength{\parskip}{1ex}
    \end{boxedminipage}

    \label{cssutils:serialize:CSSSerializer:do_Property}
    \index{cssutils \textit{(package)}!cssutils.serialize \textit{(module)}!cssutils.serialize.CSSSerializer \textit{(class)}!cssutils.serialize.CSSSerializer.do\_Property \textit{(method)}}

    \vspace{0.5ex}

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

    \raggedright \textbf{do\_Property}(\textit{self}, \textit{property})

    \vspace{-1.5ex}

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

Style declaration of CSSStyleRule

Property has a seqs attribute which contains seq lists for
name, a CSSvalue and a seq list for priority
\setlength{\parskip}{1ex}
    \end{boxedminipage}

    \label{cssutils:serialize:CSSSerializer:do_Property_priority}
    \index{cssutils \textit{(package)}!cssutils.serialize \textit{(module)}!cssutils.serialize.CSSSerializer \textit{(class)}!cssutils.serialize.CSSSerializer.do\_Property\_priority \textit{(method)}}

    \vspace{0.5ex}

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

    \raggedright \textbf{do\_Property\_priority}(\textit{self}, \textit{priorityseq})

    \vspace{-1.5ex}

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

a Properties priority ``!'' S* ``important''
\setlength{\parskip}{1ex}
    \end{boxedminipage}

    \label{cssutils:serialize:CSSSerializer:do_css_CSSValue}
    \index{cssutils \textit{(package)}!cssutils.serialize \textit{(module)}!cssutils.serialize.CSSSerializer \textit{(class)}!cssutils.serialize.CSSSerializer.do\_css\_CSSValue \textit{(method)}}

    \vspace{0.5ex}

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

    \raggedright \textbf{do\_css\_CSSValue}(\textit{self}, \textit{cssvalue})

    \vspace{-1.5ex}

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

serializes a CSSValue
\setlength{\parskip}{1ex}
    \end{boxedminipage}


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

\begin{quote}
\_\_delattr\_\_(), \_\_getattribute\_\_(), \_\_hash\_\_(), \_\_new\_\_(), \_\_reduce\_\_(), \_\_reduce\_ex\_\_(), \_\_repr\_\_(), \_\_setattr\_\_(), \_\_str\_\_()
\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\multicolumn{2}{|l|}{\textit{Inherited from object}}\\
\multicolumn{2}{|p{\varwidth}|}{\raggedright \_\_class\_\_}\\
\cline{1-2}
\end{longtable}

    \index{cssutils \textit{(package)}!cssutils.serialize \textit{(module)}!cssutils.serialize.CSSSerializer \textit{(class)}|)}
    \index{cssutils \textit{(package)}!cssutils.serialize \textit{(module)}|)}
