Skip to content
New issue

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

core(fonts): resolve URLs relative to stylesheet #6782

Merged
merged 1 commit into from
Dec 13, 2018

Conversation

patrickhulce
Copy link
Collaborator

Summary
Font URLs were incorrectly being resolved relative to the document instead of relative to the stylesheet they were in. This wasn't really caught since so many are declared absolutely or the stylesheet is in the same directory, so it didn't matter.

I've added a test and fallback scenario for this that preserves the current behavior if we don't have stylesheet information (inline sheets for example).

Related Issues/PRs
fixes #6781

Copy link
Member

@brendankenny brendankenny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, nice catch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

font-display audit resolves URLs relative to document instead of stylesheet
2 participants