Ignore:
Timestamp:
Apr 17, 2021, 12:02:05 PM (4 years ago)
Author:
[email protected]
Message:

Don't omit conic gradient starting angle when serializing when starting angle is under 0
https://bugs.webkit.org/show_bug.cgi?id=224719

Patch by Tim Nguyen <[email protected]> on 2021-04-17
Reviewed by Ryosuke Niwa.

Updated pre-existing test to cover this case.

Test: LayoutTests/imported/w3c/web-platform-tests/css/css-backgrounds/parsing/background-image-computed.sub.html

LayoutTests/imported/w3c:

  • web-platform-tests/css/css-backgrounds/parsing/background-image-computed.sub-expected.txt:
  • web-platform-tests/css/css-backgrounds/parsing/background-image-computed.sub.html:

Source/WebCore:

  • css/CSSGradientValue.cpp:

(WebCore::CSSConicGradientValue::customCSSText const):

File:
1 edited

Legend:

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

    r276141 r276203  
    12271227    bool wroteSomething = false;
    12281228
    1229     if (m_angle && m_angle->computeDegrees() > 0) {
     1229    if (m_angle && m_angle->computeDegrees()) {
    12301230        result.append("from ", m_angle->cssText());
    12311231        wroteSomething = true;
Note: See TracChangeset for help on using the changeset viewer.