We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No description provided.
The text was updated successfully, but these errors were encountered:
I'm trying to parse a google font, and I need to get all the @font-face directives, and the url() inside of the src.
Example: https://fonts.googleapis.com/css2?family=Product+Sans
Sorry, something went wrong.
I'm trying to parse a google font, and I need to get all the @font-face directives, and the url() inside of the src. Example: https://fonts.googleapis.com/css2?family=Product+Sans
Sorry for the late reply here, there's no public functionality to do this yet, however, this data exists within CSSAST->args (it's a List).
So you would do something like:
CSSAST* rule = css_get_rule(parsed, "some-selector"); CSSAST* url_node = (CSSAST*) rule->args->items[0]; // make sure this list isn't empty first. char* url = url_node->value_str; printf("%s\n", url);
I will add a public function for doing this though.
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: