Ignore:
Timestamp:
Feb 26, 2021, 3:17:07 PM (4 years ago)
Author:
[email protected]
Message:

Remove non-standard 'css'/'Css' prefixed properties on CSSStyleDeclaration
https://bugs.webkit.org/show_bug.cgi?id=218158
Source/WebCore:

<rdar://problem/70666307>

Reviewed by Tim Horton.

Remove support for 'css'/'Css' prefixed properties of CSSStyleDeclaration which
are no longer supported by any other browser.

  • css/CSSStyleDeclaration.cpp:

LayoutTests:

Reviewed by Tim Horton.

  • fast/dom/CSSStyleDeclaration/css-properties-case-sensitive-expected.txt:
  • fast/dom/CSSStyleDeclaration/css-properties-case-sensitive.html:

Update test to reflect removal of css prefixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/css/CSSStyleDeclaration.cpp

    r270613 r273592  
    4747    None,
    4848    Epub,
    49     CSS,
    5049    Pixel,
    5150    Pos,
     
    9190    UChar firstChar = toASCIILower(propertyName[0]);
    9291    switch (firstChar) {
    93     case 'c':
    94         if (matchesCSSPropertyNamePrefix(propertyName, "css"))
    95             return PropertyNamePrefix::CSS;
    96         break;
    9792    case 'e':
    9893        if (matchesCSSPropertyNamePrefix(propertyName, "epub"))
     
    168163
    169164    unsigned i = 0;
    170     // Prefixes CSS, Pixel, Pos are ignored.
     165    // Prefixes Pixel and Pos are ignored.
    171166    // Prefixes Apple, KHTML and Webkit are transposed to "-webkit-".
    172167    // The prefix "Epub" becomes "-epub-".
     
    175170        if (isASCIIUpper((*propertyNameString)[0]))
    176171            return propertyInfo;
    177         break;
    178     case PropertyNamePrefix::CSS:
    179         i += 3;
    180172        break;
    181173    case PropertyNamePrefix::Pixel:
Note: See TracChangeset for help on using the changeset viewer.