Re: Code in Pre should not be a failure at this time. (Reflow 1.4.10)

Eric Eggert wrote:
> While I think the creator of the content needs to decide how to make 
> the code readable, the best advice for now might be to use |word-wrap: 
> break-word;| on |<pre>| in small viewports to avoid horizontal 
> scrolling at all.
Thanks for that practical tip Eric. So is it safe to say as a a 
potential basis for a 'warning' to devs that want to satisfy Reflow 
1.4.10 the following (based on your example)?

*Use of <pre> formatted content (such as code) can cause horizontal 
scrolling. Using the CSS declarations such as word-wrap: break-word; on 
<pre> in small viewports will help to avoid horizontal scrolling at all. *

Thanks in advance.

-- 
Joshue O Connor
Director | InterAccess.ie

Received on Monday, 4 February 2019 11:08:54 UTC