WordPress.org

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:

Description

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

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.

Change History (0)

Note: See TracTickets for help on using tickets.