Changeset 273478 in webkit
- Timestamp:
- Feb 25, 2021 12:31:26 AM (17 months ago)
- Location:
- trunk
- Files:
-
- 4 edited
-
LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-backgrounds/animations/border-image-outset-interpolation-expected.txt (modified) (3 diffs)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/css/CSSToStyleMap.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r273467 r273478 1 2021-02-25 Antoine Quint <graouts@webkit.org> 2 3 border-image-outset doesn't handle float values 4 https://bugs.webkit.org/show_bug.cgi?id=222389 5 6 Reviewed by Antti Koivisto. 7 8 Pass an extra 28 WPT tests for border-image-outset. 9 10 * web-platform-tests/css/css-backgrounds/animations/border-image-outset-interpolation-expected.txt: 11 1 12 2021-02-24 Imanol Fernandez <ifernandez@igalia.com> 2 13 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-backgrounds/animations/border-image-outset-interpolation-expected.txt
r272904 r273478 26 26 FAIL CSS Transitions: property <border-image-outset> from [initial] to [2] at (-0.3) should be [0] assert_equals: expected "0 " but got "- 0.6 " 27 27 PASS CSS Transitions: property <border-image-outset> from [initial] to [2] at (0) should be [0] 28 FAIL CSS Transitions: property <border-image-outset> from [initial] to [2] at (0.3) should be [0.6] assert_equals: expected "0 " but got "0.6 " 29 FAIL CSS Transitions: property <border-image-outset> from [initial] to [2] at (0.6) should be [1.2] assert_equals: expected "1 " but got "1.2 " 28 PASS CSS Transitions: property <border-image-outset> from [initial] to [2] at (0.3) should be [0.6] 29 PASS CSS Transitions: property <border-image-outset> from [initial] to [2] at (0.6) should be [1.2] 30 30 PASS CSS Transitions: property <border-image-outset> from [initial] to [2] at (1) should be [2] 31 31 PASS CSS Transitions: property <border-image-outset> from [initial] to [2] at (1.5) should be [3] 32 32 FAIL CSS Transitions with transition: all: property <border-image-outset> from [initial] to [2] at (-0.3) should be [0] assert_equals: expected "0 " but got "- 0.6 " 33 33 PASS CSS Transitions with transition: all: property <border-image-outset> from [initial] to [2] at (0) should be [0] 34 FAIL CSS Transitions with transition: all: property <border-image-outset> from [initial] to [2] at (0.3) should be [0.6] assert_equals: expected "0 " but got "0.6 " 35 FAIL CSS Transitions with transition: all: property <border-image-outset> from [initial] to [2] at (0.6) should be [1.2] assert_equals: expected "1 " but got "1.2 " 34 PASS CSS Transitions with transition: all: property <border-image-outset> from [initial] to [2] at (0.3) should be [0.6] 35 PASS CSS Transitions with transition: all: property <border-image-outset> from [initial] to [2] at (0.6) should be [1.2] 36 36 PASS CSS Transitions with transition: all: property <border-image-outset> from [initial] to [2] at (1) should be [2] 37 37 PASS CSS Transitions with transition: all: property <border-image-outset> from [initial] to [2] at (1.5) should be [3] 38 38 FAIL CSS Animations: property <border-image-outset> from [initial] to [2] at (-0.3) should be [0] assert_equals: expected "0 " but got "- 0.6 " 39 39 PASS CSS Animations: property <border-image-outset> from [initial] to [2] at (0) should be [0] 40 FAIL CSS Animations: property <border-image-outset> from [initial] to [2] at (0.3) should be [0.6] assert_equals: expected "0 " but got "0.6 " 41 FAIL CSS Animations: property <border-image-outset> from [initial] to [2] at (0.6) should be [1.2] assert_equals: expected "1 " but got "1.2 " 40 PASS CSS Animations: property <border-image-outset> from [initial] to [2] at (0.3) should be [0.6] 41 PASS CSS Animations: property <border-image-outset> from [initial] to [2] at (0.6) should be [1.2] 42 42 PASS CSS Animations: property <border-image-outset> from [initial] to [2] at (1) should be [2] 43 43 PASS CSS Animations: property <border-image-outset> from [initial] to [2] at (1.5) should be [3] 44 44 FAIL Web Animations: property <border-image-outset> from [initial] to [2] at (-0.3) should be [0] assert_equals: expected "0 " but got "- 0.6 " 45 45 PASS Web Animations: property <border-image-outset> from [initial] to [2] at (0) should be [0] 46 FAIL Web Animations: property <border-image-outset> from [initial] to [2] at (0.3) should be [0.6] assert_equals: expected "0 " but got "0.6 " 47 FAIL Web Animations: property <border-image-outset> from [initial] to [2] at (0.6) should be [1.2] assert_equals: expected "1 " but got "1.2 " 46 PASS Web Animations: property <border-image-outset> from [initial] to [2] at (0.3) should be [0.6] 47 PASS Web Animations: property <border-image-outset> from [initial] to [2] at (0.6) should be [1.2] 48 48 PASS Web Animations: property <border-image-outset> from [initial] to [2] at (1) should be [2] 49 49 PASS Web Animations: property <border-image-outset> from [initial] to [2] at (1.5) should be [3] … … 74 74 FAIL CSS Transitions: property <border-image-outset> from [unset] to [2] at (-0.3) should be [0] assert_equals: expected "0 " but got "- 0.6 " 75 75 PASS CSS Transitions: property <border-image-outset> from [unset] to [2] at (0) should be [0] 76 FAIL CSS Transitions: property <border-image-outset> from [unset] to [2] at (0.3) should be [0.6] assert_equals: expected "0 " but got "0.6 " 77 FAIL CSS Transitions: property <border-image-outset> from [unset] to [2] at (0.6) should be [1.2] assert_equals: expected "1 " but got "1.2 " 76 PASS CSS Transitions: property <border-image-outset> from [unset] to [2] at (0.3) should be [0.6] 77 PASS CSS Transitions: property <border-image-outset> from [unset] to [2] at (0.6) should be [1.2] 78 78 PASS CSS Transitions: property <border-image-outset> from [unset] to [2] at (1) should be [2] 79 79 PASS CSS Transitions: property <border-image-outset> from [unset] to [2] at (1.5) should be [3] 80 80 FAIL CSS Transitions with transition: all: property <border-image-outset> from [unset] to [2] at (-0.3) should be [0] assert_equals: expected "0 " but got "- 0.6 " 81 81 PASS CSS Transitions with transition: all: property <border-image-outset> from [unset] to [2] at (0) should be [0] 82 FAIL CSS Transitions with transition: all: property <border-image-outset> from [unset] to [2] at (0.3) should be [0.6] assert_equals: expected "0 " but got "0.6 " 83 FAIL CSS Transitions with transition: all: property <border-image-outset> from [unset] to [2] at (0.6) should be [1.2] assert_equals: expected "1 " but got "1.2 " 82 PASS CSS Transitions with transition: all: property <border-image-outset> from [unset] to [2] at (0.3) should be [0.6] 83 PASS CSS Transitions with transition: all: property <border-image-outset> from [unset] to [2] at (0.6) should be [1.2] 84 84 PASS CSS Transitions with transition: all: property <border-image-outset> from [unset] to [2] at (1) should be [2] 85 85 PASS CSS Transitions with transition: all: property <border-image-outset> from [unset] to [2] at (1.5) should be [3] 86 86 FAIL CSS Animations: property <border-image-outset> from [unset] to [2] at (-0.3) should be [0] assert_equals: expected "0 " but got "- 0.6 " 87 87 PASS CSS Animations: property <border-image-outset> from [unset] to [2] at (0) should be [0] 88 FAIL CSS Animations: property <border-image-outset> from [unset] to [2] at (0.3) should be [0.6] assert_equals: expected "0 " but got "0.6 " 89 FAIL CSS Animations: property <border-image-outset> from [unset] to [2] at (0.6) should be [1.2] assert_equals: expected "1 " but got "1.2 " 88 PASS CSS Animations: property <border-image-outset> from [unset] to [2] at (0.3) should be [0.6] 89 PASS CSS Animations: property <border-image-outset> from [unset] to [2] at (0.6) should be [1.2] 90 90 PASS CSS Animations: property <border-image-outset> from [unset] to [2] at (1) should be [2] 91 91 PASS CSS Animations: property <border-image-outset> from [unset] to [2] at (1.5) should be [3] 92 92 FAIL Web Animations: property <border-image-outset> from [unset] to [2] at (-0.3) should be [0] assert_equals: expected "0 " but got "- 0.6 " 93 93 PASS Web Animations: property <border-image-outset> from [unset] to [2] at (0) should be [0] 94 FAIL Web Animations: property <border-image-outset> from [unset] to [2] at (0.3) should be [0.6] assert_equals: expected "0 " but got "0.6 " 95 FAIL Web Animations: property <border-image-outset> from [unset] to [2] at (0.6) should be [1.2] assert_equals: expected "1 " but got "1.2 " 94 PASS Web Animations: property <border-image-outset> from [unset] to [2] at (0.3) should be [0.6] 95 PASS Web Animations: property <border-image-outset> from [unset] to [2] at (0.6) should be [1.2] 96 96 PASS Web Animations: property <border-image-outset> from [unset] to [2] at (1) should be [2] 97 97 PASS Web Animations: property <border-image-outset> from [unset] to [2] at (1.5) should be [3] … … 122 122 FAIL CSS Transitions: property <border-image-outset> from [0] to [1] at (-0.3) should be [0] assert_equals: expected "0 " but got "- 0.3 " 123 123 PASS CSS Transitions: property <border-image-outset> from [0] to [1] at (0) should be [0] 124 FAIL CSS Transitions: property <border-image-outset> from [0] to [1] at (0.3) should be [0.3] assert_equals: expected "0 " but got "0.3 " 125 FAIL CSS Transitions: property <border-image-outset> from [0] to [1] at (0.6) should be [0.6] assert_equals: expected "0 " but got "0.6 " 124 PASS CSS Transitions: property <border-image-outset> from [0] to [1] at (0.3) should be [0.3] 125 PASS CSS Transitions: property <border-image-outset> from [0] to [1] at (0.6) should be [0.6] 126 126 PASS CSS Transitions: property <border-image-outset> from [0] to [1] at (1) should be [1] 127 FAIL CSS Transitions: property <border-image-outset> from [0] to [1] at (1.5) should be [1.5] assert_equals: expected "1 " but got "1.5 " 127 PASS CSS Transitions: property <border-image-outset> from [0] to [1] at (1.5) should be [1.5] 128 128 FAIL CSS Transitions with transition: all: property <border-image-outset> from [0] to [1] at (-0.3) should be [0] assert_equals: expected "0 " but got "- 0.3 " 129 129 PASS CSS Transitions with transition: all: property <border-image-outset> from [0] to [1] at (0) should be [0] 130 FAIL CSS Transitions with transition: all: property <border-image-outset> from [0] to [1] at (0.3) should be [0.3] assert_equals: expected "0 " but got "0.3 " 131 FAIL CSS Transitions with transition: all: property <border-image-outset> from [0] to [1] at (0.6) should be [0.6] assert_equals: expected "0 " but got "0.6 " 130 PASS CSS Transitions with transition: all: property <border-image-outset> from [0] to [1] at (0.3) should be [0.3] 131 PASS CSS Transitions with transition: all: property <border-image-outset> from [0] to [1] at (0.6) should be [0.6] 132 132 PASS CSS Transitions with transition: all: property <border-image-outset> from [0] to [1] at (1) should be [1] 133 FAIL CSS Transitions with transition: all: property <border-image-outset> from [0] to [1] at (1.5) should be [1.5] assert_equals: expected "1 " but got "1.5 " 133 PASS CSS Transitions with transition: all: property <border-image-outset> from [0] to [1] at (1.5) should be [1.5] 134 134 FAIL CSS Animations: property <border-image-outset> from [0] to [1] at (-0.3) should be [0] assert_equals: expected "0 " but got "- 0.3 " 135 135 PASS CSS Animations: property <border-image-outset> from [0] to [1] at (0) should be [0] 136 FAIL CSS Animations: property <border-image-outset> from [0] to [1] at (0.3) should be [0.3] assert_equals: expected "0 " but got "0.3 " 137 FAIL CSS Animations: property <border-image-outset> from [0] to [1] at (0.6) should be [0.6] assert_equals: expected "0 " but got "0.6 " 136 PASS CSS Animations: property <border-image-outset> from [0] to [1] at (0.3) should be [0.3] 137 PASS CSS Animations: property <border-image-outset> from [0] to [1] at (0.6) should be [0.6] 138 138 PASS CSS Animations: property <border-image-outset> from [0] to [1] at (1) should be [1] 139 FAIL CSS Animations: property <border-image-outset> from [0] to [1] at (1.5) should be [1.5] assert_equals: expected "1 " but got "1.5 " 139 PASS CSS Animations: property <border-image-outset> from [0] to [1] at (1.5) should be [1.5] 140 140 FAIL Web Animations: property <border-image-outset> from [0] to [1] at (-0.3) should be [0] assert_equals: expected "0 " but got "- 0.3 " 141 141 PASS Web Animations: property <border-image-outset> from [0] to [1] at (0) should be [0] 142 FAIL Web Animations: property <border-image-outset> from [0] to [1] at (0.3) should be [0.3] assert_equals: expected "0 " but got "0.3 " 143 FAIL Web Animations: property <border-image-outset> from [0] to [1] at (0.6) should be [0.6] assert_equals: expected "0 " but got "0.6 " 142 PASS Web Animations: property <border-image-outset> from [0] to [1] at (0.3) should be [0.3] 143 PASS Web Animations: property <border-image-outset> from [0] to [1] at (0.6) should be [0.6] 144 144 PASS Web Animations: property <border-image-outset> from [0] to [1] at (1) should be [1] 145 FAIL Web Animations: property <border-image-outset> from [0] to [1] at (1.5) should be [1.5] assert_equals: expected "1 " but got "1.5 " 145 PASS Web Animations: property <border-image-outset> from [0] to [1] at (1.5) should be [1.5] 146 146 FAIL CSS Transitions: property <border-image-outset> from [1 2 3px 4px] to [101 102 103px 104px] at (-0.3) should be [0 0 0px 0px] assert_equals: expected "0 0 0px 0px " but got "- 29 - 28 - 27px - 26px " 147 147 PASS CSS Transitions: property <border-image-outset> from [1 2 3px 4px] to [101 102 103px 104px] at (0) should be [1 2 3px 4px] -
trunk/Source/WebCore/ChangeLog
r273477 r273478 1 2021-02-25 Antoine Quint <graouts@webkit.org> 2 3 border-image-outset doesn't handle float values 4 https://bugs.webkit.org/show_bug.cgi?id=222389 5 6 Reviewed by Antti Koivisto. 7 8 We would get the int values rather than float values for the CSSValue created while parsing 9 the border-image-outset property. 10 11 * css/CSSToStyleMap.cpp: 12 (WebCore::CSSToStyleMap::mapNinePieceImageQuad): 13 1 14 2021-02-25 Ryosuke Niwa <rniwa@webkit.org> 2 15 -
trunk/Source/WebCore/css/CSSToStyleMap.cpp
r272805 r273478 594 594 Quad* slices = borderWidths.quadValue(); 595 595 if (slices->top()->isNumber()) 596 box.top() = Length(slices->top()-> intValue(), LengthType::Relative);596 box.top() = Length(slices->top()->floatValue(), LengthType::Relative); 597 597 else if (slices->top()->isPercentage()) 598 598 box.top() = Length(slices->top()->doubleValue(CSSUnitType::CSS_PERCENTAGE), LengthType::Percent); … … 601 601 602 602 if (slices->right()->isNumber()) 603 box.right() = Length(slices->right()-> intValue(), LengthType::Relative);603 box.right() = Length(slices->right()->floatValue(), LengthType::Relative); 604 604 else if (slices->right()->isPercentage()) 605 605 box.right() = Length(slices->right()->doubleValue(CSSUnitType::CSS_PERCENTAGE), LengthType::Percent); … … 608 608 609 609 if (slices->bottom()->isNumber()) 610 box.bottom() = Length(slices->bottom()-> intValue(), LengthType::Relative);610 box.bottom() = Length(slices->bottom()->floatValue(), LengthType::Relative); 611 611 else if (slices->bottom()->isPercentage()) 612 612 box.bottom() = Length(slices->bottom()->doubleValue(CSSUnitType::CSS_PERCENTAGE), LengthType::Percent); … … 615 615 616 616 if (slices->left()->isNumber()) 617 box.left() = Length(slices->left()-> intValue(), LengthType::Relative);617 box.left() = Length(slices->left()->floatValue(), LengthType::Relative); 618 618 else if (slices->left()->isPercentage()) 619 619 box.left() = Length(slices->left()->doubleValue(CSSUnitType::CSS_PERCENTAGE), LengthType::Percent);
Note: See TracChangeset
for help on using the changeset viewer.