Skip to content

use relative reference for FontAwesome webfont urls - #16458

Merged
wjordan merged 1 commit into
stagingfrom
fontawesome-relative-ref
Jul 20, 2017
Merged

use relative reference for FontAwesome webfont urls#16458
wjordan merged 1 commit into
stagingfrom
fontawesome-relative-ref

Conversation

@wjordan

@wjordan wjordan commented Jul 18, 2017

Copy link
Copy Markdown
Contributor

Since #16039 (inline style-min.css directly into page HTML), relative references within the CSS are breaking if the reference resolves differently from the original CSS file's location compared to the HTML page's location.

For example, CSS inlined into https://code.org/educate/resources/videos will not resolve ../fonts/fontawesome-webfont.woff correctly to /fonts/fontawesome-webfont.woff.

@davidsbailey davidsbailey left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice find, Will! I had noticed the relative offset, but couldn't convince myself that could be the problem.

@joshlory

Copy link
Copy Markdown
Contributor

Is this something we should ship soon to fix the live-site issue?

@wjordan
wjordan merged commit 3c3270d into staging Jul 20, 2017
@wjordan
wjordan deleted the fontawesome-relative-ref branch July 20, 2017 18:11
wjordan added a commit that referenced this pull request Jul 21, 2017
modify additional files, followup to #16458.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants