| Server IP : 35.80.110.71 / Your IP : 216.73.216.52 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/css_parser/css/__pycache__/ |
Upload File : |
�
��3eq% � � � d dl mZmZmZmZ d dlZd dlZddlm Z ddl
mZ ddlm
Z
dgZdZd Zd dlZej$ d d
k\ reZneZ G d� de j, � Zy)� )�unicode_literals�division�absolute_import�print_functionN� )�cssrule)�SelectorList)�CSSStyleDeclaration�CSSStyleRule�restructuredtextz$Id$� c � � � e Zd ZdZ d� fd� Zd� Zd� Zd� Z� fd�Z e eed� � Z
d
� Z e ed� � Zd� Z
dZ e d
� e
d� � Zd� Z e d� ed� � Zd� Z e d� ed� � Z e d� d� � Z e d� � Zd� Z e ed� � Z� xZS )r a= 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.
Format::
: selector [ COMMA S* selector ]*
LBRACE S* declaration [ ';' S* declaration ]* '}' S*
;
Nc � �� t t | � ||�� t � | _ |r|| _ |r|| _ || _ yt � | _ || _ y)a$
:Parameters:
selectorText
string parsed into selectorList
style
string parsed into CSSStyleDeclaration for this CSSStyleRule
readonly
if True allows setting of properties in constructor only
)�
parentRule�parentStyleSheetN) �superr �__init__r �selectorList�selectorText�styler
� _readonly)�selfr r r r �readonly� __class__s ��=/usr/lib/python3/dist-packages/css_parser/css/cssstylerule.pyr zCSSStyleRule.__init__ s\ �� � �l�D�*�j�<L� +� N� )�N���� ,�D����D�J� "��� -�.�D�J�!��� c �� � | j r| j | j f}n| j }d| j j �d|�d| j j
�d�S )Nzcss_parser.css.z(selectorText=z, style=�))�_namespacesr r �__name__r �cssText)r �sts r �__repr__zCSSStyleRule.__repr__9 sR � �����#�#�T�%5�%5�6�B��"�"�B���N�N�#�#�R����);�);�=� =r c � � d| j j | j | j j | j
t
| � fz S )NzJ<css_parser.css.%s object selectorText=%r style=%r _namespaces=%r at 0x%x>)r r r r r! r �id�r s r �__str__zCSSStyleRule.__str__A sI � ��!�^�^�4�4�!�.�.�!�Z�Z�/�/�!�-�-���X� '�'� 'r c �@ � t j j | � S )z#Return serialized property cssText.)�
css_parser�ser�do_CSSStyleRuler&