#13308 closed defect (fixed)
Fix styling warning in stylesheets
Reported by: | figaro | Owned by: | figaro |
---|---|---|---|
Priority: | normal | Milestone: | 1.4.3 |
Component: | general | Version: | 1.4 |
Severity: | minor | Keywords: | patch css |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Added surrounding quotes to |
Description (last modified by )
As per https://jigsaw.w3.org/css-validator/:
Family names containing whitespace should be quoted. If quoting is omitted, any whitespace characters before and after the name are ignored and any sequence of whitespace characters inside the name is converted to a single space.
Attachments (7)
Change History (19)
by , 5 years ago
comment:1 by , 5 years ago
It's said to be good practice, but doesn't matter in practice: SO:7638833/121694.
If we are going to make the change, trac.css also needs changes. Also we don't want to add whitespace between comma-separated values because we consistently do otherwise throughout the CSS.
Patches should be prepared per TracDev/SubmittingPatches.
follow-up: 3 comment:2 by , 5 years ago
Agreed, and renewed diffs have been created and attached. The command diff -u
was used to generate these files as per TracDev/SubmittingPatches#Makethepatch, so unclear on how the patch is in deviation of the procedure.
comment:3 by , 5 years ago
Replying to figaro:
so unclear on how the patch is in deviation of the procedure.
If you diff from root of repository you can create a single-file patch with embedded paths. The single-file patch is easier to apply.
Edited TracDev/SubmittingPatches@25.
comment:4 by , 5 years ago
Severity: | normal → minor |
---|
follow-up: 9 comment:5 by , 5 years ago
Component: | web frontend → general |
---|---|
Description: | modified (diff) |
Keywords: | css added |
Milestone: | → next-stable-1.4.x |
Type: | task → defect |
Version: | → 1.4 |
The issue exists in code.css, diff.css and trac.css files since Trac 1.4+. Also, font-family for sans serif has the same.
$ git grep 'font:\|font-family:' mirror/1.4-stable -- 'trac/**/*.css' | sed -e 's/: */: /g' | sort -u mirror/1.4-stable:trac/htdocs/css/admin.css:.trac-name { font-family: monospace; } mirror/1.4-stable:trac/htdocs/css/browser.css: font-family: monospace; mirror/1.4-stable:trac/htdocs/css/code.css: font-family: Open Sans Mono,Consolas,Lucida Console,monospace; /* code_monospace */ mirror/1.4-stable:trac/htdocs/css/diff.css: font-family: Open Sans Mono,Consolas,Lucida Console,monospace; /* code_monospace */ mirror/1.4-stable:trac/htdocs/css/jquery-ui/jquery-ui.css: font-family: Verdana,Arial,'Bitstream Vera Sans',Helvetica,sans-serif; mirror/1.4-stable:trac/htdocs/css/trac.css: font-family: Open Sans Mono,Consolas,Lucida Console,monospace; /* code_monospace */ mirror/1.4-stable:trac/htdocs/css/trac.css: font-family: Roboto,Segoe UI,Verdana,'Bitstream Vera Sans',Helvetica,sans-serif; /* trac_sans_serif */ mirror/1.4-stable:trac/htdocs/css/trac.css: font-family: inherit; mirror/1.4-stable:trac/htdocs/css/trac.css: font-family: sans-serif;
comment:6 by , 5 years ago
Summary: | Fix styling warning in code.css → Fix styling warning in stylesheets |
---|
by , 5 years ago
Attachment: | trac-1.4.1.2.diff added |
---|
Added Segoe UI, supersedes attachment with similar name
comment:8 by , 5 years ago
Internal Changes: | modified (diff) |
---|---|
Milestone: | next-stable-1.4.x → 1.4.3 |
Owner: | set to |
Status: | new → assigned |
follow-up: 10 comment:9 by , 5 years ago
comment:10 by , 5 years ago
Replying to Ryan J Ollos:
Replying to Jun Omae:
Also, font-family for sans serif has the same.
W3C says
sans-serif
must not be quoted.
Sorry for the unclear.
That means Segoe UI
should be quoted at /* trac_sans_serif */
line in trac/htdocs/css/trac.css
.
-font-family: Roboto,Segoe UI,Verdana,'Bitstream Vera Sans',Helvetica,sans-serif; /* trac_sans_serif */ +font-family: Roboto,'Segoe UI',Verdana,'Bitstream Vera Sans',Helvetica,sans-serif; /* trac_sans_serif */
The change is included in attachment:trac-1.4.1.2.diff.
comment:11 by , 4 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:12 by , 4 years ago
Owner: | changed from | to
---|
Code.css patch