Home
last modified time | relevance | path

Searched refs:at_keyword (Results 1 – 25 of 132) sorted by relevance

123456

/dports/textproc/py-tinycss/tinycss-0.4/tinycss/
H A Dfonts3.py41 def __init__(self, at_keyword, declarations, line, column): argument
42 assert at_keyword == '@font-face'
43 self.at_keyword = at_keyword
76 assert at_keyword == '@font-feature-values'
77 self.at_keyword = at_keyword
113 self.at_keyword = at_keyword
136 if rule.at_keyword == '@font-face':
141 rule.head[0].type, rule.at_keyword))
146 elif rule.at_keyword == '@font-feature-values':
153 rule.at_keyword, at_rules, family_names,
[all …]
H A Dpage3.py58 def __init__(self, at_keyword, declarations, line, column): argument
59 self.at_keyword = at_keyword
112 if rule.at_keyword in self.PAGE_MARGIN_AT_KEYWORDS:
116 rule.at_keyword, context))
121 rule.head[0].type, rule.at_keyword))
125 rule.at_keyword, declarations, rule.line, rule.column)
H A Dcss21.py105 self.at_keyword = at_keyword
137 at_keyword = None variable in RuleSet
218 at_keyword = '@page' variable in PageRule
252 at_keyword = '@media' variable in MediaRule
285 at_keyword = '@import' variable in ImportRule
511 if rule.at_keyword == '@page':
518 rule.at_keyword))
525 elif rule.at_keyword == '@media':
534 rule.at_keyword))
539 elif rule.at_keyword == '@import':
[all …]
/dports/deskutils/calibre/calibre-src-5.34.0/src/tinycss/
H A Dpage3.py59 def __init__(self, at_keyword, declarations, line, column): argument
60 self.at_keyword = at_keyword
120 '%s rule not allowed in %s' % (rule.at_keyword, context))
124 % (rule.head[0].type, rule.at_keyword))
127 return MarginRule(rule.at_keyword, declarations,
H A Dcss21.py106 def __init__(self, at_keyword, head, body, line, column): argument
107 self.at_keyword = at_keyword
139 at_keyword = None variable in RuleSet
223 at_keyword = '@page' variable in PageRule
258 at_keyword = '@media' variable in MediaRule
292 at_keyword = '@import' variable in ImportRule
480 at_keyword = at_keyword_token.value.lower()
495 return AtRule(at_keyword, head, body,
524 parser = self.at_parsers[rule.at_keyword]
527 .format(context, rule.at_keyword))
[all …]
H A Dfonts3.py190 at_keyword = '@font-face' variable in FontFaceRule
219 'invalid {0} rule: missing block'.format(rule.at_keyword))
221 …{0} rule is not allowed to have content before the descriptor declaration'.format(rule.at_keyword))
/dports/print/py-weasyprint/WeasyPrint-51/weasyprint/tests/
H A Dtest_css_descriptors.py27 assert at_rule.at_keyword == 'font-face'
47 assert at_rule.at_keyword == 'font-face'
68 assert at_rule.at_keyword == 'font-face'
85 assert at_rule.at_keyword == 'font-face'
104 assert at_rule.at_keyword == 'font-face'
/dports/textproc/py-tinycss/tinycss-0.4/tinycss/tests/
H A Dtest_fonts3.py59 assert rule.at_keyword == '@font-feature-values'
89 assert rule.at_keyword == '@font-face'
137 assert rule.at_keyword == '@font-feature-values'
140 (at_rule.at_keyword, [
H A Dtest_css21.py70 assert stylesheet.rules[0].at_keyword == '@import'
158 (rule.at_keyword, list(jsonify(rule.head)),
161 if rule.at_keyword else
271 if rule.at_keyword == '@import'
308 assert rule.at_keyword == '@page'
343 assert rule.at_keyword == '@media'
H A Dtest_page3.py50 assert rule.at_keyword == '@page'
97 assert rule.at_keyword == '@page'
99 rules = [(margin_rule.at_keyword, declarations(margin_rule))
/dports/lang/spidermonkey60/firefox-60.9.0/third_party/rust/cssparser/src/
H A Drules_and_declarations.rs343 let at_keyword; in next() localVariable
348 _ => at_keyword = None, in next()
351 if at_keyword.is_none() { in next()
355 Some(_) => at_keyword = None, in next()
359 if let Some(name) = at_keyword { in next()
402 let at_keyword; in parse_one_rule() localVariable
405 Token::AtKeyword(ref name) => at_keyword = Some(name.clone()), in parse_one_rule()
406 _ => at_keyword = None, in parse_one_rule()
409 if at_keyword.is_none() { in parse_one_rule()
413 at_keyword = None in parse_one_rule()
[all …]
/dports/www/geckodriver/mozilla-central-e9783a644016aa9b317887076618425586730d73/testing/geckodriver/cargo-crates/cssparser-0.25.9/src/
H A Drules_and_declarations.rs382 let at_keyword; in next() localVariable
387 _ => at_keyword = None, in next()
390 if at_keyword.is_none() { in next()
394 Some(_) => at_keyword = None, in next()
398 if let Some(name) = at_keyword { in next()
453 let at_keyword; in parse_one_rule() localVariable
456 Token::AtKeyword(ref name) => at_keyword = Some(name.clone()), in parse_one_rule()
457 _ => at_keyword = None, in parse_one_rule()
460 if at_keyword.is_none() { in parse_one_rule()
464 at_keyword = None in parse_one_rule()
[all …]
/dports/deskutils/calibre/calibre-src-5.34.0/src/tinycss/tests/
H A Dcss21.py69 self.ae(stylesheet.rules[0].at_keyword, '@import')
148 (rule.at_keyword, list(jsonify(rule.head)),
151 if rule.at_keyword else
256 if rule.at_keyword == '@import'
292 self.ae(rule.at_keyword, '@page')
326 self.ae(rule.at_keyword, '@media')
H A Dpage3.py41 self.ae(rule.at_keyword, '@page')
82 self.ae(rule.at_keyword, '@page')
84 rules = [(margin_rule.at_keyword, self.jsonify_declarations(margin_rule))
/dports/textproc/py-tinycss2/tinycss2-1.1.1/tinycss2/
H A Dparser.py353 def _consume_at_rule(at_keyword, tokens): argument
376 return AtRule(at_keyword.source_line, at_keyword.source_column,
377 at_keyword.value, at_keyword.lower_value, prelude, content)
H A Dast.py863 at_keyword, lower_at_keyword, prelude, content): argument
865 self.at_keyword = at_keyword
872 write(serialize_identifier(self.at_keyword))
/dports/print/py-weasyprint/WeasyPrint-51/weasyprint/layout/
H A Dpages.py313 def make_box(at_keyword, containing_block): argument
324 style = context.style_for(page.page_type, at_keyword)
329 _standardize_page_based_counters(style, at_keyword)
330 box = boxes.MarginBox(at_keyword, style)
416 for at_keyword, cb_width, cb_height, position_x, position_y in [
423 box = make_box(at_keyword, (cb_width, cb_height))
429 context, box, cb_height, True, 'top' in at_keyword)
431 context, box, cb_width, False, 'left' in at_keyword)
/dports/deskutils/calibre/calibre-src-5.34.0/src/calibre/srv/
H A Dfast_css_transform.cpp217 at_keyword, enumerator
403 n(function_start); n(dimension); n(url); n(delimiter); n(at_keyword); n(hash); in type_name()
468 case TokenType::at_keyword: in serialize()
700 void add_at_keyword() { new_token(TokenType::at_keyword); } in add_at_keyword()
719 …bool starts_with_at_keyword() const { return leading_token_of_type(TokenType::at_keyword) != NULL;… in starts_with_at_keyword()
724 const Token *att = leading_token_of_type(TokenType::at_keyword); in commit_tokens()
735 const Token *att = leading_token_of_type(TokenType::at_keyword); in commit_tokens()
765 at_keyword, enumerator
1087 states.push(ParseState::at_keyword); in enter_at_keyword()
1196 case ParseState::at_keyword: in dispatch_current_char()
/dports/graphics/librsvg2-rust/librsvg-2.52.8/vendor/cssparser/src/
H A Drules_and_declarations.rs372 let at_keyword = match self.input.next_byte()? { in next() localVariable
383 if let Some(name) = at_keyword { in next()
437 let at_keyword = if input.next_byte() == Some(b'@') { in parse_one_rule() localVariable
449 if let Some(name) = at_keyword { in parse_one_rule()
/dports/www/firefox/firefox-99.0/third_party/rust/cssparser/src/
H A Drules_and_declarations.rs347 let at_keyword = match self.input.next_byte()? { in next() localVariable
358 if let Some(name) = at_keyword { in next()
412 let at_keyword = if input.next_byte() == Some(b'@') { in parse_one_rule() localVariable
424 if let Some(name) = at_keyword { in parse_one_rule()
/dports/mail/thunderbird/thunderbird-91.8.0/third_party/rust/cssparser/src/
H A Drules_and_declarations.rs372 let at_keyword = match self.input.next_byte()? { in next() localVariable
383 if let Some(name) = at_keyword { in next()
437 let at_keyword = if input.next_byte() == Some(b'@') { in parse_one_rule() localVariable
449 if let Some(name) = at_keyword { in parse_one_rule()
/dports/www/firefox-esr/firefox-91.8.0/third_party/rust/cssparser/src/
H A Drules_and_declarations.rs372 let at_keyword = match self.input.next_byte()? { in next() localVariable
383 if let Some(name) = at_keyword { in next()
437 let at_keyword = if input.next_byte() == Some(b'@') { in parse_one_rule() localVariable
449 if let Some(name) = at_keyword { in parse_one_rule()
/dports/lang/spidermonkey78/firefox-78.9.0/third_party/rust/cssparser/src/
H A Drules_and_declarations.rs372 let at_keyword = match self.input.next_byte()? { in next() localVariable
383 if let Some(name) = at_keyword { in next()
437 let at_keyword = if input.next_byte() == Some(b'@') { in parse_one_rule() localVariable
449 if let Some(name) = at_keyword { in parse_one_rule()
/dports/textproc/htmlq/htmlq-0.3.0/cargo-crates/cssparser-0.27.2/src/
H A Drules_and_declarations.rs372 let at_keyword = match self.input.next_byte()? { in next() localVariable
385 if let Some(name) = at_keyword { in next()
439 let at_keyword = if input.next_byte() == Some(b'@') { in parse_one_rule() localVariable
451 if let Some(name) = at_keyword { in parse_one_rule()
/dports/www/monolith/monolith-2.6.1/cargo-crates/cssparser-0.28.1/src/
H A Drules_and_declarations.rs372 let at_keyword = match self.input.next_byte()? { in next() localVariable
383 if let Some(name) = at_keyword { in next()
437 let at_keyword = if input.next_byte() == Some(b'@') { in parse_one_rule() localVariable
449 if let Some(name) = at_keyword { in parse_one_rule()

123456