[wp-trac] [WordPress Trac] #45944: Twenty Nineteen: Added URL in :after styles for print.css is unreliable
WordPress Trac
noreply at wordpress.org
Fri Jan 11 19:29:13 UTC 2019
#45944: Twenty Nineteen: Added URL in :after styles for print.css is unreliable
---------------------------+-----------------------------
Reporter: kjellr | Owner: (none)
Type: defect (bug) | Status: new
Priority: low | Milestone: Awaiting Review
Component: Bundled Theme | Version: 5.0.3
Severity: normal | Keywords: needs-testing
Focuses: |
---------------------------+-----------------------------
The print styles for Twenty Nineteen include a little snippet meant to
append the URL to links so it's visible when printed:
{{{
a[href^=http]:after {
content: " < " attr(href) "> ";
}
}}}
Via:
https://themes.trac.wordpress.org/browser/twentynineteen/1.2/print.css#L85
[[Image(https://cldup.com/iUgRDksax1-3000x3000.png)]]
This snippet is based on recommendations in this article:
https://www.jotform.com/blog/css-perfect-print-stylesheet-98272/
In practice, this appears to be fairly unreliable. In testing, @Joyously
and I only see those URLs sporadically, and haven't been able to pin down
why.
More details:
https://github.com/WordPress/twentynineteen/issues/609#issuecomment-439489841
If these rules aren't working correctly, I suggest we remove them from the
theme.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45944>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list