[grid] Fix parsing of <grid-line> [chromium/src : main]

0 views
Skip to first unread message

Ian Kilpatrick (Gerrit)

unread,
May 27, 2026, 6:48:24 PM (22 hours ago) May 27
to Kurt Catti-Schmidt, Alison Maher, Anders Hartvoll Ruud, Chromium LUCI CQ, Menard, Alexis, chromium...@chromium.org, apavlo...@chromium.org, blink-re...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org
Attention needed from Alison Maher, Anders Hartvoll Ruud and Kurt Catti-Schmidt

Ian Kilpatrick voted and added 1 comment

Votes added by Ian Kilpatrick

Commit-Queue+1

1 comment

File third_party/blink/renderer/core/css/properties/css_parsing_utils.cc
Line 7341, Patchset 1: return nullptr;
Ian Kilpatrick . unresolved

Do I need a `savepoint.Release()` here?

Open in Gerrit

Related details

Attention is currently required from:
  • Alison Maher
  • Anders Hartvoll Ruud
  • Kurt Catti-Schmidt
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I036a88f6971c609f3131303f2cd875da51c3644c
Gerrit-Change-Number: 7879775
Gerrit-PatchSet: 2
Gerrit-Owner: Ian Kilpatrick <ikilp...@chromium.org>
Gerrit-Reviewer: Alison Maher <alm...@microsoft.com>
Gerrit-Reviewer: Anders Hartvoll Ruud <and...@chromium.org>
Gerrit-Reviewer: Ian Kilpatrick <ikilp...@chromium.org>
Gerrit-Reviewer: Kurt Catti-Schmidt <ksc...@microsoft.com>
Gerrit-CC: Menard, Alexis <alexis...@intel.com>
Gerrit-Attention: Alison Maher <alm...@microsoft.com>
Gerrit-Attention: Anders Hartvoll Ruud <and...@chromium.org>
Gerrit-Attention: Kurt Catti-Schmidt <ksc...@microsoft.com>
Gerrit-Comment-Date: Wed, 27 May 2026 22:48:15 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Ian Kilpatrick (Gerrit)

unread,
May 27, 2026, 6:56:36 PM (22 hours ago) May 27
to Kurt Catti-Schmidt, Alison Maher, Anders Hartvoll Ruud, Chromium LUCI CQ, Menard, Alexis, chromium...@chromium.org, apavlo...@chromium.org, blink-re...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org
Attention needed from Alison Maher, Anders Hartvoll Ruud and Kurt Catti-Schmidt

Ian Kilpatrick added 1 comment

File third_party/blink/web_tests/external/wpt/css/css-grid/parsing/grid-area-valid-expected.txt
Line 4, Patchset 3 (Latest): assert_equals: serialization should be canonical expected "span calc(-2)" but got "span"
Ian Kilpatrick . unresolved

@andruud after this patch I'll shift the bug to Blink>CSS as this looks like a general serialization issue with calc(-2) etc in properties.

Open in Gerrit

Related details

Attention is currently required from:
  • Alison Maher
  • Anders Hartvoll Ruud
  • Kurt Catti-Schmidt
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I036a88f6971c609f3131303f2cd875da51c3644c
Gerrit-Change-Number: 7879775
Gerrit-PatchSet: 3
Gerrit-Owner: Ian Kilpatrick <ikilp...@chromium.org>
Gerrit-Reviewer: Alison Maher <alm...@microsoft.com>
Gerrit-Reviewer: Anders Hartvoll Ruud <and...@chromium.org>
Gerrit-Reviewer: Ian Kilpatrick <ikilp...@chromium.org>
Gerrit-Reviewer: Kurt Catti-Schmidt <ksc...@microsoft.com>
Gerrit-CC: Menard, Alexis <alexis...@intel.com>
Gerrit-Attention: Alison Maher <alm...@microsoft.com>
Gerrit-Attention: Anders Hartvoll Ruud <and...@chromium.org>
Gerrit-Attention: Kurt Catti-Schmidt <ksc...@microsoft.com>
Gerrit-Comment-Date: Wed, 27 May 2026 22:56:25 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Alison Maher (Gerrit)

unread,
12:14 PM (5 hours ago) 12:14 PM
to Ian Kilpatrick, Kurt Catti-Schmidt, Anders Hartvoll Ruud, Chromium LUCI CQ, Menard, Alexis, chromium...@chromium.org, apavlo...@chromium.org, blink-re...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org
Attention needed from Anders Hartvoll Ruud, Ian Kilpatrick and Kurt Catti-Schmidt

Alison Maher added 5 comments

File third_party/blink/renderer/core/css/properties/css_parsing_utils.cc
Line 7310, Patchset 3 (Latest): auto is_at_end = [&stream]() -> bool {
Alison Maher . unresolved

General question - I've seen these sort of var functions be camel case and snake case in different parts of the code. Couldn't find any info in the style guide for this, other than camel case in general is preferred for functions and snake case for accessors is ok.

Do you know if there is a preferred naming schema for these?

Line 7318, Patchset 3 (Latest): // <custom-ident>
Alison Maher . unresolved

In the method above this, we use ConsumeGridLineNames() for the custom-ident. Can we reuse that here, or will this be slightly different?

https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/css/properties/css_parsing_utils.cc;l=7060?q=ConsumeGridLineNames&ss=chromium

Line 7348, Patchset 3 (Latest): ConsumeCustomIdentForGridLine(stream, context, local_context);
Alison Maher . unresolved

Same here, can we use ConsumeGridLineNames (although since we use the same savepoint for this and the int case, might not be as clean to reuse, but if we split it up, it might be possible)

Line 7386, Patchset 3 (Latest): if (!span_value) {
Alison Maher . unresolved

I thought span has to come first. Why do we check it again after we check for the count and line name values as opposed to returning nullptr if the span keyword doesn't exist when we query it at line 7368?

File third_party/blink/renderer/core/css/resolver/style_builder_converter.cc
Line 1587, Patchset 3 (Latest): if (is_span_position) {
Alison Maher . unresolved

nit: Could you add a comment for this new logic?

Open in Gerrit

Related details

Attention is currently required from:
  • Anders Hartvoll Ruud
  • Ian Kilpatrick
  • Kurt Catti-Schmidt
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I036a88f6971c609f3131303f2cd875da51c3644c
Gerrit-Change-Number: 7879775
Gerrit-PatchSet: 3
Gerrit-Owner: Ian Kilpatrick <ikilp...@chromium.org>
Gerrit-Reviewer: Alison Maher <alm...@microsoft.com>
Gerrit-Reviewer: Anders Hartvoll Ruud <and...@chromium.org>
Gerrit-Reviewer: Ian Kilpatrick <ikilp...@chromium.org>
Gerrit-Reviewer: Kurt Catti-Schmidt <ksc...@microsoft.com>
Gerrit-CC: Menard, Alexis <alexis...@intel.com>
Gerrit-Attention: Anders Hartvoll Ruud <and...@chromium.org>
Gerrit-Attention: Kurt Catti-Schmidt <ksc...@microsoft.com>
Gerrit-Attention: Ian Kilpatrick <ikilp...@chromium.org>
Gerrit-Comment-Date: Thu, 28 May 2026 16:14:07 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Ian Kilpatrick (Gerrit)

unread,
12:42 PM (4 hours ago) 12:42 PM
to Kurt Catti-Schmidt, Alison Maher, Anders Hartvoll Ruud, Chromium LUCI CQ, Menard, Alexis, chromium...@chromium.org, apavlo...@chromium.org, blink-re...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org
Attention needed from Alison Maher, Anders Hartvoll Ruud and Kurt Catti-Schmidt

Ian Kilpatrick added 5 comments

File third_party/blink/renderer/core/css/properties/css_parsing_utils.cc
Line 7310, Patchset 3: auto is_at_end = [&stream]() -> bool {
Alison Maher . resolved

General question - I've seen these sort of var functions be camel case and snake case in different parts of the code. Couldn't find any info in the style guide for this, other than camel case in general is preferred for functions and snake case for accessors is ok.

Do you know if there is a preferred naming schema for these?

Ian Kilpatrick

Yeah there was a change in style at some point, but now we just follow -
https://google.github.io/styleguide/cppguide.html#Formatting_Lambda_Expressions

e.g. just treat it as a local variable. Ok just to match surrounding code, or convert existing code.

Line 7318, Patchset 3: // <custom-ident>
Alison Maher . resolved

In the method above this, we use ConsumeGridLineNames() for the custom-ident. Can we reuse that here, or will this be slightly different?

https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/css/properties/css_parsing_utils.cc;l=7060?q=ConsumeGridLineNames&ss=chromium

Ian Kilpatrick

I had this previously, but its tricky to get correct due to the unwinding in other branches.

E.g. if we do:

```
CSSCustomIdentValue* line_name = ConsumeCustom();

{
CSSParserSavePoint savepoint(stream);

line_name = ConsumeCustom(); // writes a new value as <custom-ident> was trailing.

}
// Rewinds - but leaves line_name as old value. Would have to add logic to clear.
```

Basically its simpler to reason about if every block only touches its local variables.

Line 7348, Patchset 3: ConsumeCustomIdentForGridLine(stream, context, local_context);
Alison Maher . resolved

Same here, can we use ConsumeGridLineNames (although since we use the same savepoint for this and the int case, might not be as clean to reuse, but if we split it up, it might be possible)

Ian Kilpatrick

See above - its tricky to get correct with rewinding, and ends up being more complex to follow.

Line 7386, Patchset 3: if (!span_value) {
Alison Maher . resolved

I thought span has to come first. Why do we check it again after we check for the count and line name values as opposed to returning nullptr if the span keyword doesn't exist when we query it at line 7368?

Ian Kilpatrick

`span` can be trailing - the grammar is weird basically.

The following are valid:
```
span 1 foo
span foo 1
foo 1 span
1 foo span
```

The `&&` means it can be before or after, however it can't be in the general loop as this is invalid:
```
foo span 1
```

File third_party/blink/renderer/core/css/resolver/style_builder_converter.cc
Line 1587, Patchset 3: if (is_span_position) {
Alison Maher . resolved

nit: Could you add a comment for this new logic?

Ian Kilpatrick

Done

Open in Gerrit

Related details

Attention is currently required from:
  • Alison Maher
  • Anders Hartvoll Ruud
  • Kurt Catti-Schmidt
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I036a88f6971c609f3131303f2cd875da51c3644c
Gerrit-Change-Number: 7879775
Gerrit-PatchSet: 5
Gerrit-Owner: Ian Kilpatrick <ikilp...@chromium.org>
Gerrit-Reviewer: Alison Maher <alm...@microsoft.com>
Gerrit-Reviewer: Anders Hartvoll Ruud <and...@chromium.org>
Gerrit-Reviewer: Ian Kilpatrick <ikilp...@chromium.org>
Gerrit-Reviewer: Kurt Catti-Schmidt <ksc...@microsoft.com>
Gerrit-CC: Menard, Alexis <alexis...@intel.com>
Gerrit-Attention: Alison Maher <alm...@microsoft.com>
Gerrit-Attention: Anders Hartvoll Ruud <and...@chromium.org>
Gerrit-Attention: Kurt Catti-Schmidt <ksc...@microsoft.com>
Gerrit-Comment-Date: Thu, 28 May 2026 16:42:41 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Alison Maher <alm...@microsoft.com>
satisfied_requirement
unsatisfied_requirement
open
diffy

Alison Maher (Gerrit)

unread,
1:08 PM (4 hours ago) 1:08 PM
to Ian Kilpatrick, android-bu...@system.gserviceaccount.com, Rune Lillesveen, Kurt Catti-Schmidt, Anders Hartvoll Ruud, Chromium LUCI CQ, Menard, Alexis, chromium...@chromium.org, blink-rev...@chromium.org, apavlo...@chromium.org, blink-re...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org
Attention needed from Anders Hartvoll Ruud, Ian Kilpatrick, Kurt Catti-Schmidt and Rune Lillesveen

Alison Maher voted and added 1 comment

Votes added by Alison Maher

Code-Review+1

1 comment

File third_party/blink/renderer/core/css/properties/css_parsing_utils.cc
Line 7386, Patchset 3: if (!span_value) {
Alison Maher . resolved

I thought span has to come first. Why do we check it again after we check for the count and line name values as opposed to returning nullptr if the span keyword doesn't exist when we query it at line 7368?

Ian Kilpatrick

`span` can be trailing - the grammar is weird basically.

The following are valid:
```
span 1 foo
span foo 1
foo 1 span
1 foo span
```

The `&&` means it can be before or after, however it can't be in the general loop as this is invalid:
```
foo span 1
```

Alison Maher

Ah right, forgot && allowed that. Yeah that's really weird

Open in Gerrit

Related details

Attention is currently required from:
  • Anders Hartvoll Ruud
  • Ian Kilpatrick
  • Kurt Catti-Schmidt
  • Rune Lillesveen
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I036a88f6971c609f3131303f2cd875da51c3644c
    Gerrit-Change-Number: 7879775
    Gerrit-PatchSet: 6
    Gerrit-Owner: Ian Kilpatrick <ikilp...@chromium.org>
    Gerrit-Reviewer: Alison Maher <alm...@microsoft.com>
    Gerrit-Reviewer: Anders Hartvoll Ruud <and...@chromium.org>
    Gerrit-Reviewer: Ian Kilpatrick <ikilp...@chromium.org>
    Gerrit-Reviewer: Kurt Catti-Schmidt <ksc...@microsoft.com>
    Gerrit-Reviewer: Rune Lillesveen <fut...@chromium.org>
    Gerrit-CC: Menard, Alexis <alexis...@intel.com>
    Gerrit-Attention: Anders Hartvoll Ruud <and...@chromium.org>
    Gerrit-Attention: Kurt Catti-Schmidt <ksc...@microsoft.com>
    Gerrit-Attention: Ian Kilpatrick <ikilp...@chromium.org>
    Gerrit-Attention: Rune Lillesveen <fut...@chromium.org>
    Gerrit-Comment-Date: Thu, 28 May 2026 17:08:37 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Comment-In-Reply-To: Alison Maher <alm...@microsoft.com>
    Comment-In-Reply-To: Ian Kilpatrick <ikilp...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Ian Kilpatrick (Gerrit)

    unread,
    3:37 PM (1 hour ago) 3:37 PM
    to Alison Maher, android-bu...@system.gserviceaccount.com, Rune Lillesveen, Kurt Catti-Schmidt, Anders Hartvoll Ruud, Chromium LUCI CQ, Menard, Alexis, chromium...@chromium.org, blink-rev...@chromium.org, apavlo...@chromium.org, blink-re...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org
    Attention needed from Alison Maher, Anders Hartvoll Ruud, Kurt Catti-Schmidt and Rune Lillesveen

    Ian Kilpatrick added 4 comments

    Patchset-level comments
    File-level comment, Patchset 7 (Latest):
    Ian Kilpatrick . resolved

    ptal

    File third_party/blink/renderer/core/css/parser/css_property_parser_test.cc
    Line 302, Patchset 7 (Parent):
    Ian Kilpatrick . unresolved

    @almaher - I removed these tests as they are obsolete. Additionally didn't add any new ones as I realized we don't technically need to be clamping within StyleBuilderConverter::ConvertGridPosition either.

    Technically we should be allowing max<int>() and relying on the clamping logic within GridSpan here:
    https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/style/grid_area.h;l=187-200;drc=2e070bfa61f747388fddaafd8eaf9519f89e80de?q=gridspan&ss=chromium

    However we need a little more hardening as we do "+ 1" and "- 1" in the codebase on raw ints.

    File third_party/blink/web_tests/external/wpt/css/css-grid/parsing/grid-area-valid-expected.txt
    Line 4, Patchset 3: assert_equals: serialization should be canonical expected "span calc(-2)" but got "span"
    Ian Kilpatrick . resolved

    @andruud after this patch I'll shift the bug to Blink>CSS as this looks like a general serialization issue with calc(-2) etc in properties.

    Ian Kilpatrick

    Acknowledged

    Line 4, Patchset 7 (Latest): assert_equals: serialization should be canonical expected "span calc(sibling-index() - 2)" but got "span calc(-2 + sibling-index())"
    Ian Kilpatrick . unresolved

    @futhark - after this patch I'll shift the bug to Blink>CSS as this looks like a general serialization issue with calc(sibling-index() - 2) potentially? Or is the test wrong?

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Alison Maher
    • Anders Hartvoll Ruud
    • Kurt Catti-Schmidt
    • Rune Lillesveen
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      • requirement is not satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I036a88f6971c609f3131303f2cd875da51c3644c
      Gerrit-Change-Number: 7879775
      Gerrit-PatchSet: 7
      Gerrit-Owner: Ian Kilpatrick <ikilp...@chromium.org>
      Gerrit-Reviewer: Alison Maher <alm...@microsoft.com>
      Gerrit-Reviewer: Anders Hartvoll Ruud <and...@chromium.org>
      Gerrit-Reviewer: Ian Kilpatrick <ikilp...@chromium.org>
      Gerrit-Reviewer: Kurt Catti-Schmidt <ksc...@microsoft.com>
      Gerrit-Reviewer: Rune Lillesveen <fut...@chromium.org>
      Gerrit-CC: Menard, Alexis <alexis...@intel.com>
      Gerrit-Attention: Alison Maher <alm...@microsoft.com>
      Gerrit-Attention: Anders Hartvoll Ruud <and...@chromium.org>
      Gerrit-Attention: Kurt Catti-Schmidt <ksc...@microsoft.com>
      Gerrit-Attention: Rune Lillesveen <fut...@chromium.org>
      Gerrit-Comment-Date: Thu, 28 May 2026 19:37:12 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Ian Kilpatrick <ikilp...@chromium.org>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Alison Maher (Gerrit)

      unread,
      4:26 PM (1 hour ago) 4:26 PM
      to Ian Kilpatrick, android-bu...@system.gserviceaccount.com, Rune Lillesveen, Kurt Catti-Schmidt, Anders Hartvoll Ruud, Chromium LUCI CQ, Menard, Alexis, chromium...@chromium.org, blink-rev...@chromium.org, apavlo...@chromium.org, blink-re...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org
      Attention needed from Anders Hartvoll Ruud, Ian Kilpatrick, Kurt Catti-Schmidt and Rune Lillesveen

      Alison Maher voted and added 1 comment

      Votes added by Alison Maher

      Code-Review+1

      1 comment

      File third_party/blink/renderer/core/css/parser/css_property_parser_test.cc
      Ian Kilpatrick . resolved

      @almaher - I removed these tests as they are obsolete. Additionally didn't add any new ones as I realized we don't technically need to be clamping within StyleBuilderConverter::ConvertGridPosition either.

      Technically we should be allowing max<int>() and relying on the clamping logic within GridSpan here:
      https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/style/grid_area.h;l=187-200;drc=2e070bfa61f747388fddaafd8eaf9519f89e80de?q=gridspan&ss=chromium

      However we need a little more hardening as we do "+ 1" and "- 1" in the codebase on raw ints.

      Alison Maher

      Acknowledged

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Anders Hartvoll Ruud
      • Ian Kilpatrick
      • Kurt Catti-Schmidt
      • Rune Lillesveen
      Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement satisfiedCode-Owners
        • requirement satisfiedCode-Review
        • requirement is not satisfiedNo-Unresolved-Comments
        • requirement is not satisfiedReview-Enforcement
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: comment
        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I036a88f6971c609f3131303f2cd875da51c3644c
        Gerrit-Change-Number: 7879775
        Gerrit-PatchSet: 7
        Gerrit-Owner: Ian Kilpatrick <ikilp...@chromium.org>
        Gerrit-Reviewer: Alison Maher <alm...@microsoft.com>
        Gerrit-Reviewer: Anders Hartvoll Ruud <and...@chromium.org>
        Gerrit-Reviewer: Ian Kilpatrick <ikilp...@chromium.org>
        Gerrit-Reviewer: Kurt Catti-Schmidt <ksc...@microsoft.com>
        Gerrit-Reviewer: Rune Lillesveen <fut...@chromium.org>
        Gerrit-CC: Menard, Alexis <alexis...@intel.com>
        Gerrit-Attention: Anders Hartvoll Ruud <and...@chromium.org>
        Gerrit-Attention: Kurt Catti-Schmidt <ksc...@microsoft.com>
        Gerrit-Attention: Ian Kilpatrick <ikilp...@chromium.org>
        Gerrit-Attention: Rune Lillesveen <fut...@chromium.org>
        Gerrit-Comment-Date: Thu, 28 May 2026 20:26:24 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes
        Comment-In-Reply-To: Ian Kilpatrick <ikilp...@chromium.org>
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Kurt Catti-Schmidt (Gerrit)

        unread,
        4:40 PM (18 minutes ago) 4:40 PM
        to Ian Kilpatrick, Alison Maher, android-bu...@system.gserviceaccount.com, Rune Lillesveen, Anders Hartvoll Ruud, Chromium LUCI CQ, Menard, Alexis, chromium...@chromium.org, blink-rev...@chromium.org, apavlo...@chromium.org, blink-re...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org
        Attention needed from Anders Hartvoll Ruud, Ian Kilpatrick and Rune Lillesveen

        Kurt Catti-Schmidt added 2 comments

        File third_party/blink/renderer/core/css/properties/css_parsing_utils.cc
        Line 7340, Patchset 7 (Latest): if (line_count->GetValueIfKnown() == 0) {
        Kurt Catti-Schmidt . unresolved

        Random, non-blocking: do we know what the expected behavior is for `span calc(0)`? I don't see any WPT's for this scenario.

        Line 7390, Patchset 7 (Latest): // We must have the 'span' ident.
        if (!span_value) {
        return nullptr;
        }
        Kurt Catti-Schmidt . unresolved

        Nit: Would this be cleaner in the conditional body above?

        ```
        if (!span_value) {
        if(!(span_value = ConsumeIdent<CSSValueID::kSpan>(stream))) {
        // We must have the 'span' ident.
        return nullptr;
        }
        }
        ```
        Open in Gerrit

        Related details

        Attention is currently required from:
        • Anders Hartvoll Ruud
        • Ian Kilpatrick
        • Rune Lillesveen
        Gerrit-Attention: Ian Kilpatrick <ikilp...@chromium.org>
        Gerrit-Attention: Rune Lillesveen <fut...@chromium.org>
        Gerrit-Comment-Date: Thu, 28 May 2026 20:40:30 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy
        Reply all
        Reply to author
        Forward
        0 new messages