[Webkit-unassigned] [Bug 250506] New: Update whitespace expectations for custom properties to match CSS Syntax Level 3 in some WPTs

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jan 12 02:58:35 PST 2023


https://bugs.webkit.org/show_bug.cgi?id=250506

            Bug ID: 250506
           Summary: Update whitespace expectations for custom properties
                    to match CSS Syntax Level 3 in some WPTs
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: koivisto at iki.fi

Tokenisation and parsing for whitespaces described in CSS Syntax Module Level 3 matches the current WebKit behavior in custom properties.
Some WPTs still have wrong expectations.

Both leading and trailing whitespaces should be stripped:

https://drafts.csswg.org/css-syntax/#consume-declaration

    2. While the next input token is a <whitespace-token>, consume the next input token.
    ...
    7. While the last token in decl’s value is a <whitespace-token>, remove that token."

Middle whitespaces collapse to a single <whitespace-token>:

https://drafts.csswg.org/css-syntax/#consume-token

    whitespace
    Consume as much whitespace as possible. Return a <whitespace-token>.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230112/3649748c/attachment.htm>


More information about the webkit-unassigned mailing list