canonical / canonical/vanilla-framework

[Bug]: data URI syntax errors and percent-encoding errors

Open
#5,754 1 comment 0 reactions 0 assignees View on GitHub
Bug 🐛
Dominant language
HTML
Stars
983
Forks
216
Avg merge
3d 13h
Merged PRs (30d)
3

Description

While testing https://assets.ubuntu.com/v1/vanilla_framework_version_4_44_0_min.css with CSS HTML Validator, there were 6 errors and they were all data URI errors. Maybe no one cares because browsers seem to work with/understand the common error but I would recommend fixing it anyway.

It's easy to fix by changing:
'data:image/svg+xml;utf8,'
to
'data:image/svg+xml;charset=utf-8,'

Two data: URI's also had percent-encoding issues.
'style="text-align:center;line-height:125%;-inkscape-font-specification:Ubuntu'
should be
'style="text-align:center;line-height:125%25;-inkscape-font-specification:Ubuntu'

I hope this helps.

Contributor guide

Open the contributing guide

Research direction

Start by locating the source that generates the linked vanilla_framework_version_4_44_0_min.css asset and inspect its data URI strings. Apply the reported charset and percent-encoding corrections, then rerun CSS HTML Validator and confirm the six data URI errors and the two percent-encoding errors are resolved.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.