Skip to content

[css-text-4] white-space shorthand values cannot be fully expressed using its longhands #8256

Closed

Description

@nt1m

https://drafts.csswg.org/css-text-4/#white-space-property

See issues 3 & 4.

WebKit assumes that shorthands don't have other side effects than just setting their longhands. So every single of the shorthand values should be expressible in some form by their longhands.

Activity

  1. Loirooriol commented on Dec 23, 2022

    @Loirooriol
    Contributor

    It's not ideal (see #8055), but there are the precedents like system fonts, which set longhands to an internal value that serializes to empty string. This could be a temporary solution if you want to implement the longhands.

  2. nt1m commented on Dec 23, 2022

    @nt1m
    MemberAuthor

    there are the precedents like system fonts, which set longhands to an internal value that serializes to empty string.

    This means the spec cannot be implemented without implementing the full set of longhands at least, even though text-space-collapse & text-space-trim are not stable.

  3. fantasai commented on Dec 30, 2022

    @fantasai
    Collaborator

    @nt1m Is there some particular feature that you want from L4? Sorting this out is on the to-do list, but there hasn't been a lot of interest in the extended white space values...

  4. nt1m commented on Dec 30, 2022

    @nt1m
    MemberAuthor

    @fantasai I'm interested in implementing text-wrap and text-group-align more specifically.

  5. fantasai commented on Mar 6, 2023

    @fantasai
    Collaborator

    Fixed in #8274 @nt1m Please file follow-up issues if you notice anything wrong!

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