B
    1d	                 @   s*   d dl Z edZedZG dd dZdS )    N).Zazimuthzbackground-colorzborder-bottom-colorzborder-collapsezborder-colorzborder-left-colorzborder-right-colorzborder-top-colorclearcolorcursor	directiondisplayZ	elevationfloatZfontzfont-familyz	font-sizez
font-stylezfont-variantzfont-weightheightzletter-spacingzline-heightoverflowpausezpause-afterzpause-beforeZpitchzpitch-rangeZrichnessZspeakzspeak-headerzspeak-numeralzspeak-punctuationzspeech-rateZstressz
text-alignztext-decorationztext-indentzunicode-bidizvertical-alignzvoice-familyvolumezwhite-spacewidth)fillzfill-opacityz	fill-rulestrokezstroke-widthzstroke-linecapzstroke-linejoinzstroke-opacityc               @   s"   e Zd ZeefddZdd ZdS )CSSSanitizerc             C   s   || _ || _d S )N)allowed_css_propertiesallowed_svg_properties)selfr   r    r   a/work/yifan.wang/ringdown/master-ringdown-env/lib/python3.7/site-packages/bleach/css_sanitizer.py__init__G   s    zCSSSanitizer.__init__c             C   s   t |}|sdS g }xb|D ]Z}|jdkrN|j| jksB|j| jkrv|| q|jdkr|r|d j|jkr|| qW |sdS t | S )zSanitizes css in style tags Zdeclaration)comment
whitespace)	tinycss2Zparse_declaration_listtypeZ
lower_namer   r   append	serializestrip)r   styleparsedZ
new_tokenstokenr   r   r   sanitize_cssO   s    



zCSSSanitizer.sanitize_cssN)__name__
__module____qualname__ALLOWED_CSS_PROPERTIESALLOWED_SVG_PROPERTIESr   r"   r   r   r   r   r   F   s   r   )r   	frozensetr&   r'   r   r   r   r   r   <module>   s
   2