Skip to content

[css-text-4] Recommend applying text-spacing: none to additional preformatted elements in the default stylesheet #13369

Description

@jfkthame

In Appendix C: Default UA Stylesheet, the CSS Text 4 spec suggests applying text-spacing: none to preformatted elements such as pre and code, in order to preserve the expected character grid with a monospaced font. (See example 52.)

We should probably add listing, xmp and plaintext to the elements that are given the text-spacing: none property there.

(Noted by @emilio in https://phabricator.services.mozilla.com/D279511#inline-1522940.)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions