Osiyo wrote:
I am publishing a large legal document with many links. So a:visited and specifically text-decoration-style is very important. And must suit specific cultural perspectives. Can we hack that?
Use PDF for more complete control of rendering.
Otherwise, you’re going to have to tussle with every web browser, and with how that particular browser renders your content over different versions, and with how the particular user has configured the browser, and with privacy. Since its inception, designers have been trying to exert control over page rendering, and getting frustrated with that effort as HTML and web browsers generally gave that control (and gave it differently) to different browsers and to browser users.
Per the Safari footnotes in the CSS referendes, wavy requires Safari 12.1 (Released 2019-03-25):
https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration-style
As Urquhart1244 mentions, the visited rendering is further limited: “For privacy reasons, browsers strictly limit which styles you can apply using this pseudo-class, and how they can be used:” “Allowable CSS properties are color, background-color, border-color, border-bottom-color, border-left-color, border-right-color, border-top-color, column-rule-color, outline-color, text-decoration-color, and text-emphasis-color.” Wavy isn’t included there.
Based on that last bit of documentation and on Apple’s general privacy proclivities, and on your page-rendering preferences, you’re seemingly headed for PDF here, and not toward CSS here. Privacy? Yes, I know of web sites that do take different actions based on the visited state of site-unrelated links. There was a recent kerfuffle about exactly that among some netizens, too.