Stop IE8 from downloading GDS Transport font #1559
Merged
+44
−18
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Internet Explorer 8 was making unsuccessful requests for the new font files because 3.0.0 no longer postfixes them with
?#iefix
as we did in v2.3.0.0 dropped support for rendering GDS Transport for IE8. This PR removes the
font-face
declarations from the IE8 stylesheet to stop IE8 trying to unsuccessfully to download the font files. This means that IE8 will fall back to system fonts (Arial
by default). Our previous approach of postfixing the paths with?#iefix
wouldn't work here as IE8 would still download the redundant WOFF files.The downside of this new approach is that
GDS Transport
is still shown infont-family
in the IE8 stylesheet.I've also tried an alternative approach that sets
font-family
for IE8 on a higher level and removes the above issue, but has other downsides.This also imports the IE8 tools for
govuk-typography-common
tests, and tests thatfont-face
is not declared for IE8.Fixes #1550