Changeset 289886 in webkit


Ignore:
Timestamp:
Feb 16, 2022 4:38:35 AM (5 months ago)
Author:
Antti Koivisto
Message:

[CSS Container Queries] Serialize container shorthand in StyleProperties
https://bugs.webkit.org/show_bug.cgi?id=236691

Reviewed by Antoine Quint.

LayoutTests/imported/w3c:

  • web-platform-tests/css/css-contain/container-queries/container-parsing-expected.txt:

Source/WebCore:

Serialize element.style.container.

  • css/StyleProperties.cpp:

(WebCore::StyleProperties::getPropertyValue const):

Location:
trunk
Files:
4 edited

Legend:

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

    r289876 r289886  
     12022-02-16  Antti Koivisto  <antti@apple.com>
     2
     3        [CSS Container Queries] Serialize container shorthand in StyleProperties
     4        https://bugs.webkit.org/show_bug.cgi?id=236691
     5
     6        Reviewed by Antoine Quint.
     7
     8        * web-platform-tests/css/css-contain/container-queries/container-parsing-expected.txt:
     9
    1102022-02-15  Nikolaos Mouchtaris  <nmouchtaris@apple.com>
    211
  • trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/container-parsing-expected.txt

    r288465 r289886  
    11
    2 FAIL e.style['container'] = "initial" should set the property value assert_not_equals: property should be set got disallowed value ""
    3 FAIL e.style['container'] = "inherit" should set the property value assert_not_equals: property should be set got disallowed value ""
    4 FAIL e.style['container'] = "unset" should set the property value assert_not_equals: property should be set got disallowed value ""
    5 FAIL e.style['container'] = "revert" should set the property value assert_not_equals: property should be set got disallowed value ""
    6 FAIL e.style['container'] = "none" should set the property value assert_not_equals: property should be set got disallowed value ""
    7 FAIL e.style['container'] = "none / none" should set the property value assert_not_equals: property should be set got disallowed value ""
    8 FAIL e.style['container'] = "inline-size" should set the property value assert_not_equals: property should be set got disallowed value ""
    9 FAIL e.style['container'] = "inline-size / none" should set the property value assert_not_equals: property should be set got disallowed value ""
    10 FAIL e.style['container'] = "size" should set the property value assert_not_equals: property should be set got disallowed value ""
    11 FAIL e.style['container'] = "size / block-size" should set the property value assert_not_equals: property should be set got disallowed value ""
    12 FAIL e.style['container'] = "inline-size / inline-size" should set the property value assert_not_equals: property should be set got disallowed value ""
    13 FAIL e.style['container'] = "size / size" should set the property value assert_not_equals: property should be set got disallowed value ""
     2PASS e.style['container'] = "initial" should set the property value
     3PASS e.style['container'] = "inherit" should set the property value
     4PASS e.style['container'] = "unset" should set the property value
     5PASS e.style['container'] = "revert" should set the property value
     6PASS e.style['container'] = "none" should set the property value
     7FAIL e.style['container'] = "none / none" should set the property value assert_equals: serialization should be canonical expected "none" but got "none / none"
     8PASS e.style['container'] = "inline-size" should set the property value
     9FAIL e.style['container'] = "inline-size / none" should set the property value assert_equals: serialization should be canonical expected "inline-size" but got "inline-size / none"
     10PASS e.style['container'] = "size" should set the property value
     11PASS e.style['container'] = "size / block-size" should set the property value
     12PASS e.style['container'] = "inline-size / inline-size" should set the property value
     13PASS e.style['container'] = "size / size" should set the property value
    1414FAIL e.style['container'] = "size state / none" should set the property value assert_not_equals: property should be set got disallowed value ""
    1515PASS e.style['container'] = "none none" should not set the property value
  • trunk/Source/WebCore/ChangeLog

    r289885 r289886  
     12022-02-16  Antti Koivisto  <antti@apple.com>
     2
     3        [CSS Container Queries] Serialize container shorthand in StyleProperties
     4        https://bugs.webkit.org/show_bug.cgi?id=236691
     5
     6        Reviewed by Antoine Quint.
     7
     8        Serialize element.style.container.
     9
     10        * css/StyleProperties.cpp:
     11        (WebCore::StyleProperties::getPropertyValue const):
     12
    1132022-02-16  Alejandro G. Castro  <alex@igalia.com>
    214
  • trunk/Source/WebCore/css/StyleProperties.cpp

    r289876 r289886  
    244244    case CSSPropertyColumns:
    245245        return getShorthandValue(columnsShorthand());
     246    case CSSPropertyContainer:
     247        return getShorthandValue(containerShorthand(), " / ");
    246248    case CSSPropertyFlex:
    247249        return getShorthandValue(flexShorthand());
Note: See TracChangeset for help on using the changeset viewer.