Skip to content

Error in CSS file for https://doc.rust-lang.org/book/ #45974

Closed
@ghost

Description

Web fonts don't work on this page: https://doc.rust-lang.org/book/ - at least not in Firefox.

Reason: @font-face definitions in CSS file "rust.css" are referring to the wrong level of the file system. The Woff files are stored in "/" -- and not in "/book".

Current (wrong) definition:
src: local('Fira Sans'), url("FiraSans-Regular.woff") format('woff');

It should be:
src: local('Fira Sans'), url("/FiraSans-Regular.woff") format('woff');

Or even better:
src: local('Fira Sans'), url("https://doc.rust-lang.org/FiraSans-Regular.woff") format('woff');

The same is true for all @font-face definitions in the CSS file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsC-bugCategory: This is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions