Make WordPress Core

Opened 10 days ago

#45944 new defect (bug)

Twenty Nineteen: Added URL in :after styles for print.css is unreliable

Reported by: kjellr Owned by:
Milestone: Awaiting Review Priority: low
Severity: normal Version: 5.0.3
Component: Bundled Theme Keywords: needs-testing
Focuses: Cc:


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


This snippet is based on recommendations in this article:


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.

Change History (0)

Note: See TracTickets for help on using tickets.