CSS Pre Tag Wrap And Overflow Examples

I built this page to get a better understanding of how CSS properties affect [TODO: Code shorthand span ] tags. There is no css on the page other than what you see listed on the page. Each line in the examples starts with a capitalized word followed by a collection of text and underscores designed to make it easier to see each effect.

I'm using two different versions in production

  1. When I want wrapping:

    NOTE: Look at this page to verify things here. (I was playing with stuff late one night and might have pasted stuf in the wrong place): A Code Block Web Component With Line Numbers, Wrap Toggles, Font Sizing And Copy Buttons

    white-space: pre-wrap; 
    overflow-wrap: break-word;
    overflow-x: auto;
    overscroll-behavior-x: auto;
  2. When I don't want wrapping:

    white-space: pre; 
    overflow-wrap: normal;
    overflow-x: visible; 
    overscroll-behavior-x: none;

Notes

~ fin ~

References