Changeset 277868 in webkit


Ignore:
Timestamp:
May 21, 2021 10:16:20 AM (14 months ago)
Author:
commit-queue@webkit.org
Message:

grid track size should reject unitless length
https://bugs.webkit.org/show_bug.cgi?id=189137

Patch by Rob Buis <rbuis@igalia.com> on 2021-05-21
Reviewed by Sergio Villar Senin.

LayoutTests/imported/w3c:

Update improved test result.

  • web-platform-tests/quirks/unitless-length/excluded-properties-001-expected.txt:

Source/WebCore:

Reject unitless length's for grid track sizes in quirks mode.

Behavior matches Chrome and Firefox.

  • css/parser/CSSPropertyParser.cpp:

(WebCore::consumeGridBreadth):

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/imported/w3c/ChangeLog

    r277830 r277868  
     12021-05-21  Rob Buis  <rbuis@igalia.com>
     2
     3        grid track size should reject unitless length
     4        https://bugs.webkit.org/show_bug.cgi?id=189137
     5
     6        Reviewed by Sergio Villar Senin.
     7
     8        Update improved test result.
     9
     10        * web-platform-tests/quirks/unitless-length/excluded-properties-001-expected.txt:
     11
    1122021-05-20  Alexey Shvayka  <shvaikalesh@gmail.com>
    213
  • trunk/LayoutTests/imported/w3c/web-platform-tests/quirks/unitless-length/excluded-properties-001-expected.txt

    r267647 r277868  
    1111PASS Property column-width does not support quirky length
    1212PASS Property flex-basis does not support quirky length
    13 FAIL Property grid-auto-columns does not support quirky length assert_equals: expected "567px" but got "1234px"
    14 FAIL Property grid-auto-rows does not support quirky length assert_equals: expected "567px" but got "1234px"
    15 FAIL Property grid-template-columns does not support quirky length assert_equals: expected "567px" but got "1234px"
    16 FAIL Property grid-template-rows does not support quirky length assert_equals: expected "567px" but got "1234px"
     13PASS Property grid-auto-columns does not support quirky length
     14PASS Property grid-auto-rows does not support quirky length
     15PASS Property grid-template-columns does not support quirky length
     16PASS Property grid-template-rows does not support quirky length
    1717PASS Property inline-size does not support quirky length
    1818PASS Property inset does not support quirky length
  • trunk/Source/WebCore/ChangeLog

    r277867 r277868  
     12021-05-21  Rob Buis  <rbuis@igalia.com>
     2
     3        grid track size should reject unitless length
     4        https://bugs.webkit.org/show_bug.cgi?id=189137
     5
     6        Reviewed by Sergio Villar Senin.
     7
     8        Reject unitless length's for grid track sizes in quirks mode.
     9
     10        Behavior matches Chrome and Firefox.
     11
     12        * css/parser/CSSPropertyParser.cpp:
     13        (WebCore::consumeGridBreadth):
     14
    1152021-05-21  Jer Noble  <jer.noble@apple.com>
    216
  • trunk/Source/WebCore/css/parser/CSSPropertyParser.cpp

    r276768 r277868  
    34413441        return CSSPrimitiveValue::create(range.consumeIncludingWhitespace().numericValue(), CSSUnitType::CSS_FR);
    34423442    }
    3443     return consumeLengthOrPercent(range, cssParserMode, ValueRange::NonNegative, UnitlessQuirk::Allow);
     3443    return consumeLengthOrPercent(range, cssParserMode, ValueRange::NonNegative);
    34443444}
    34453445
Note: See TracChangeset for help on using the changeset viewer.