[Webkit-unassigned] [Bug 245025] [css-grid] span i should not serialize to span 1 i

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Sep 21 19:06:49 PDT 2022


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

Matt Woodrow <mattwoodrow at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mattwoodrow at apple.com

--- Comment #2 from Matt Woodrow <mattwoodrow at apple.com> ---
This test is invalid :(

It's checking that `grid-column-start: span 1 i` round-trips exactly, as does `grid-row-start: span i`.

The only way to make both of those tests is to preserve whether the '1' was explicitly passed in, and use that to decide how to serialise the computed value, rather than just using the shortest serialisation principle.

Gecko is passing this because they parse an implicit integer as 0, and omit serializing the integer if it's 0. They then covert 0 to 1 at used value time.

The spec for parsing 'span': If the <integer> is omitted, it defaults to 1. Negative integers or zero are invalid.

-- 
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/20220922/db64f3b4/attachment.htm>


More information about the webkit-unassigned mailing list