| 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 : /lib/python3/dist-packages/css_parser/css/__pycache__/ |
Upload File : |
�
��3e� � � � d dl mZmZmZmZ d dlZd dlZddlm Z ddl
mZ dgZdZ
dZd dlZej d d k\ reZneZ G d
� de j( � Zy)� )�unicode_literals�division�absolute_import�print_functionN� )�cssrule)�CSSStyleDeclaration�CSSFontFaceRule�restructuredtextz$Id$� c � � � e Zd ZdZ d� fd� Zd� Zd� Zd� Z� fd�Z e eed�� Z
d � Z e d
� ed�� Z e d� d
�� Z
d� Z e ed�� Z e d� � Z� xZS )r
a=
The CSSFontFaceRule interface represents a @font-face rule in a CSS
style sheet. The @font-face rule is used to hold a set of font
descriptions.
Format::
font_face
: FONT_FACE_SYM S*
'{' S* declaration [ ';' S* declaration ]* '}' S*
;
css_parser uses a :class:`~css_parser.css.CSSStyleDeclaration` to
represent the font descriptions. For validation a specific profile
is used though were some properties have other valid values than
when used in e.g. a :class:`~css_parser.css.CSSStyleRule`.
c � �� t t | � ||�� d| _ |r|| _ || _ yt � | _ || _ y)z�
If readonly allows setting of properties in constructor only.
:param style:
CSSStyleDeclaration used to hold any font descriptions
for this CSSFontFaceRule
)�
parentRule�parentStyleSheetz
@font-faceN)�superr
�__init__�
_atkeyword�styler � _readonly)�selfr r r �readonly� __class__s ��@/usr/lib/python3/dist-packages/css_parser/css/cssfontfacerule.pyr zCSSFontFaceRule.__init__* sL �� � �o�t�-��?O� .� Q�&�����D�J� "��� -�.�D�J�!��� c �d � d| j j �d| j j �d�S )Nzcss_parser.css.z(style=�))r �__name__r �cssText�r s r �__repr__zCSSFontFaceRule.__repr__>