| 4877 | |
| 4878 | |
| 4879 | function css_counter() { |
| 4880 | if (next_token.identifier && next_token.string === 'counter') { |
| 4881 | advance(); |
| 4882 | advance('('); |
| 4883 | advance(); |
| 4884 | if (next_token.id === ',') { |
| 4885 | comma(); |
| 4886 | if (next_token.id !== '(string)') { |
| 4887 | warn('expected_string_a'); |
| 4888 | } |
| 4889 | advance(); |
| 4890 | } |
| 4891 | advance(')'); |
| 4892 | return true; |
| 4893 | } |
| 4894 | if (next_token.identifier && next_token.string === 'counters') { |
| 4895 | advance(); |
| 4896 | advance('('); |
| 4897 | if (!next_token.identifier) { |
| 4898 | warn('expected_name_a'); |
| 4899 | } |
| 4900 | advance(); |
| 4901 | if (next_token.id === ',') { |
| 4902 | comma(); |
| 4903 | if (next_token.id !== '(string)') { |
| 4904 | warn('expected_string_a'); |
| 4905 | } |
| 4906 | advance(); |
| 4907 | } |
| 4908 | if (next_token.id === ',') { |
| 4909 | comma(); |
| 4910 | if (next_token.id !== '(string)') { |
| 4911 | warn('expected_string_a'); |
| 4912 | } |
| 4913 | advance(); |
| 4914 | } |
| 4915 | advance(')'); |
| 4916 | return true; |
| 4917 | } |
| 4918 | return false; |
| 4919 | } |
| 4920 | |
| 4921 | |
| 4922 | function css_radius() { |