Changeset 286803 in webkit


Ignore:
Timestamp:
Dec 9, 2021 2:47:24 PM (7 months ago)
Author:
Brent Fulgham
Message:

Unprefix CSS value text-align: -webkit-match-parent
https://bugs.webkit.org/show_bug.cgi?id=229496
<rdar://problem/82628618>

Reviewed by Darin Adler.

LayoutTests/imported/w3c:

Rebaseline to show new passing tests.

  • web-platform-tests/css/css-text/parsing/text-align-computed-expected.txt:
  • web-platform-tests/css/css-text/parsing/text-align-valid-expected.txt:

Source/WebCore:

Tested by web-platform-tests: css/css-text/parsing/text-align-computed.html,

css/css-text/parsing/text-align-valid.html

SSIA.

  • css/CSSProperties.json: Add the unprefixed version.
  • css/CSSValueKeywords.in: Ditto.
  • css/html.css:

(li): Use the unprefixed version.

  • style/StyleBuilderConverter.h:

(WebCore::Style::BuilderConverter::convertTextAlign): Handle the new unprefixed version.

Source/WebInspectorUI:

  • UserInterface/Models/CSSKeywordCompletions.js: Add 'match-parent'
Location:
trunk
Files:
10 edited

Legend:

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

    r286795 r286803  
     12021-12-09  Brent Fulgham  <bfulgham@apple.com>
     2
     3        Unprefix CSS value text-align: -webkit-match-parent
     4        https://bugs.webkit.org/show_bug.cgi?id=229496
     5        <rdar://problem/82628618>
     6
     7        Reviewed by Darin Adler.
     8
     9        Rebaseline to show new passing tests.
     10
     11        * web-platform-tests/css/css-text/parsing/text-align-computed-expected.txt:
     12        * web-platform-tests/css/css-text/parsing/text-align-valid-expected.txt:
     13
    1142021-12-09  Matt Woodrow  <matt.woodrow@gmail.com>
    215
  • trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/parsing/text-align-computed-expected.txt

    r267650 r286803  
    66PASS Property text-align value 'center'
    77PASS Property text-align value 'justify'
    8 FAIL Property text-align value 'match-parent' assert_true: 'match-parent' is a supported value for text-align. expected true got false
     8PASS Property text-align value 'match-parent'
    99
  • trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/parsing/text-align-valid-expected.txt

    r267650 r286803  
    66PASS e.style['text-align'] = "center" should set the property value
    77PASS e.style['text-align'] = "justify" should set the property value
    8 FAIL e.style['text-align'] = "match-parent" should set the property value assert_not_equals: property should be set got disallowed value ""
     8PASS e.style['text-align'] = "match-parent" should set the property value
    99FAIL e.style['text-align'] = "justify-all" should set the property value assert_not_equals: property should be set got disallowed value ""
    1010
  • trunk/Source/WebCore/ChangeLog

    r286801 r286803  
     12021-12-09  Brent Fulgham  <bfulgham@apple.com>
     2
     3        Unprefix CSS value text-align: -webkit-match-parent
     4        https://bugs.webkit.org/show_bug.cgi?id=229496
     5        <rdar://problem/82628618>
     6
     7        Reviewed by Darin Adler.
     8
     9        Tested by web-platform-tests: css/css-text/parsing/text-align-computed.html,
     10            css/css-text/parsing/text-align-valid.html
     11
     12        SSIA.
     13
     14        * css/CSSProperties.json: Add the unprefixed version.
     15        * css/CSSValueKeywords.in: Ditto.
     16        * css/html.css:
     17        (li): Use the unprefixed version.
     18        * style/StyleBuilderConverter.h:
     19        (WebCore::Style::BuilderConverter::convertTextAlign): Handle the new unprefixed version.
     20
    1212021-12-09  Alan Bujtas  <zalan@apple.com>
    222
  • trunk/Source/WebCore/css/CSSProperties.json

    r286795 r286803  
    45024502                "center",
    45034503                "justify",
     4504                {
     4505                    "value": "match-parent",
     4506                    "url": "https://www.w3.org/TR/css-text-3/#text-align"
     4507                },
    45044508                "-webkit-left",
    45054509                "-webkit-right",
     
    45074511                {
    45084512                    "value": "-webkit-match-parent",
    4509                     "url": "https://www.w3.org/TR/css-text-3/#text-align"
     4513                    "url": "non-standard"
    45104514                },
    45114515                {
  • trunk/Source/WebCore/css/CSSValueKeywords.in

    r286795 r286803  
    343343-webkit-right
    344344-webkit-center
     345match-parent
    345346-webkit-match-parent
     347//start
     348//end
    346349//
    347350// CSS_PROP_TEXT_JUSTIFY:
  • trunk/Source/WebCore/css/html.css

    r286775 r286803  
    300300li {
    301301    display: list-item;
    302     text-align: -webkit-match-parent;
     302    text-align: match-parent;
    303303}
    304304
  • trunk/Source/WebCore/style/StyleBuilderConverter.h

    r286086 r286803  
    613613    ASSERT(primitiveValue.isValueID());
    614614
    615     if (primitiveValue.valueID() != CSSValueWebkitMatchParent)
     615    if (primitiveValue.valueID() != CSSValueWebkitMatchParent && primitiveValue.valueID() != CSSValueMatchParent)
    616616        return primitiveValue;
    617617
  • trunk/Source/WebInspectorUI/ChangeLog

    r286799 r286803  
     12021-12-09  Brent Fulgham  <bfulgham@apple.com>
     2
     3        Unprefix CSS value text-align: -webkit-match-parent
     4        https://bugs.webkit.org/show_bug.cgi?id=229496
     5        <rdar://problem/82628618>
     6
     7        Reviewed by Darin Adler.
     8
     9        * UserInterface/Models/CSSKeywordCompletions.js: Add 'match-parent'
     10
    1112021-12-08  BJ Burg  <bburg@apple.com>
    212
  • trunk/Source/WebInspectorUI/UserInterface/Models/CSSKeywordCompletions.js

    r286611 r286803  
    13471347    ],
    13481348    "text-align": [
    1349         "-webkit-auto", "left", "right", "center", "justify", "-webkit-left", "-webkit-right", "-webkit-center", "-webkit-match-parent", "start", "end",
     1349        "-webkit-auto", "left", "right", "center", "justify", "match-parent", "-webkit-left", "-webkit-right", "-webkit-center", "-webkit-match-parent", "start", "end",
    13501350    ],
    13511351    "text-anchor": [
Note: See TracChangeset for help on using the changeset viewer.