Changeset 275273 in webkit
- Timestamp:
- Mar 31, 2021 1:30:41 AM (16 months ago)
- Location:
- trunk
- Files:
-
- 6 edited
-
LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-backgrounds/animations/border-radius-interpolation-expected.txt (modified) (4 diffs)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-backgrounds/parsing/border-radius-computed-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-backgrounds/parsing/border-radius-computed.html (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/style/StyleBuilderConverter.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r275272 r275273 1 2021-03-30 Antoine Quint <graouts@webkit.org> 2 3 Computed style for a border-radius corner should never be 0px when the provided width isn't 0px 4 https://bugs.webkit.org/show_bug.cgi?id=223927 5 6 Reviewed by Dean Jackson. 7 8 Mark 5 tests as PASS results as a result of returning the correct computed style for 9 "border-top-left-radius: 40px 0px". This is importing a change made to WPT via 10 https://github.com/web-platform-tests/wpt/pull/28310. 11 12 * web-platform-tests/css/css-backgrounds/animations/border-radius-interpolation-expected.txt: 13 * web-platform-tests/css/css-backgrounds/parsing/border-radius-computed-expected.txt: 14 * web-platform-tests/css/css-backgrounds/parsing/border-radius-computed.html: 15 1 16 2021-03-30 Antoine Quint <graouts@webkit.org> 2 17 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-backgrounds/animations/border-radius-interpolation-expected.txt
r274353 r275273 168 168 PASS Web Animations: property <border-top-left-radius> from [10px] to [100%] at (1) should be [100%] 169 169 FAIL Web Animations: property <border-top-left-radius> from [10px] to [100%] at (1.5) should be [calc(-5px + 150%)] assert_equals: expected "calc ( 150 % - 5px ) " but got "calc ( ( 10px * - 0.5 ) + ( 100 % * 1.5 ) ) " 170 FAIL CSS Transitions: property <border-top-left-radius> from [20px] to [10px 30px] at (-2) should be [40px 0px] assert_equals: expected "0px " but got "40px 0px " 170 PASS CSS Transitions: property <border-top-left-radius> from [20px] to [10px 30px] at (-2) should be [40px 0px] 171 171 PASS CSS Transitions: property <border-top-left-radius> from [20px] to [10px 30px] at (-0.3) should be [23px 17px] 172 172 PASS CSS Transitions: property <border-top-left-radius> from [20px] to [10px 30px] at (0) should be [20px] … … 175 175 PASS CSS Transitions: property <border-top-left-radius> from [20px] to [10px 30px] at (1) should be [10px 30px] 176 176 PASS CSS Transitions: property <border-top-left-radius> from [20px] to [10px 30px] at (1.5) should be [5px 35px] 177 FAIL CSS Transitions with transition: all: property <border-top-left-radius> from [20px] to [10px 30px] at (-2) should be [40px 0px] assert_equals: expected "0px " but got "40px 0px " 177 PASS CSS Transitions with transition: all: property <border-top-left-radius> from [20px] to [10px 30px] at (-2) should be [40px 0px] 178 178 PASS CSS Transitions with transition: all: property <border-top-left-radius> from [20px] to [10px 30px] at (-0.3) should be [23px 17px] 179 179 PASS CSS Transitions with transition: all: property <border-top-left-radius> from [20px] to [10px 30px] at (0) should be [20px] … … 182 182 PASS CSS Transitions with transition: all: property <border-top-left-radius> from [20px] to [10px 30px] at (1) should be [10px 30px] 183 183 PASS CSS Transitions with transition: all: property <border-top-left-radius> from [20px] to [10px 30px] at (1.5) should be [5px 35px] 184 FAIL CSS Animations: property <border-top-left-radius> from [20px] to [10px 30px] at (-2) should be [40px 0px] assert_equals: expected "0px " but got "40px 0px " 184 PASS CSS Animations: property <border-top-left-radius> from [20px] to [10px 30px] at (-2) should be [40px 0px] 185 185 PASS CSS Animations: property <border-top-left-radius> from [20px] to [10px 30px] at (-0.3) should be [23px 17px] 186 186 PASS CSS Animations: property <border-top-left-radius> from [20px] to [10px 30px] at (0) should be [20px] … … 189 189 PASS CSS Animations: property <border-top-left-radius> from [20px] to [10px 30px] at (1) should be [10px 30px] 190 190 PASS CSS Animations: property <border-top-left-radius> from [20px] to [10px 30px] at (1.5) should be [5px 35px] 191 FAIL Web Animations: property <border-top-left-radius> from [20px] to [10px 30px] at (-2) should be [40px 0px] assert_equals: expected "0px " but got "40px 0px " 191 PASS Web Animations: property <border-top-left-radius> from [20px] to [10px 30px] at (-2) should be [40px 0px] 192 192 PASS Web Animations: property <border-top-left-radius> from [20px] to [10px 30px] at (-0.3) should be [23px 17px] 193 193 PASS Web Animations: property <border-top-left-radius> from [20px] to [10px 30px] at (0) should be [20px] -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-backgrounds/parsing/border-radius-computed-expected.txt
r267650 r275273 13 13 PASS Property border-bottom-right-radius value 'calc(0.5em + 10px) 40%' 14 14 PASS Property border-bottom-left-radius value '50% 60px' 15 PASS Property border-top-left-radius value '40px 0px' 15 16 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-backgrounds/parsing/border-radius-computed.html
r255239 r275273 33 33 test_computed_value("border-bottom-right-radius", "calc(0.5em + 10px) 40%", "30px 40%"); 34 34 test_computed_value("border-bottom-left-radius", "50% 60px"); 35 36 test_computed_value("border-top-left-radius", "40px 0px", "40px 0px"); 35 37 </script> 36 38 </body> -
trunk/Source/WebCore/ChangeLog
r275272 r275273 1 2021-03-30 Antoine Quint <graouts@webkit.org> 2 3 Computed style for a border-radius corner should never be 0px when the provided width isn't 0px 4 https://bugs.webkit.org/show_bug.cgi?id=223927 5 6 Reviewed by Dean Jackson. 7 8 If "border-top-left-radius: 40px 0px" is provided, the computed style would return "0px" since 9 BuilderConverter::convertRadius() would treat either of the dimensions for the radius being 0 10 as both being 0. 11 12 * style/StyleBuilderConverter.h: 13 (WebCore::Style::BuilderConverter::convertRadius): 14 1 15 2021-03-30 Antoine Quint <graouts@webkit.org> 2 16 -
trunk/Source/WebCore/style/StyleBuilderConverter.h
r274329 r275273 338 338 ASSERT(!radius.width.isNegative()); 339 339 ASSERT(!radius.height.isNegative()); 340 if (radius.width.isZero() || radius.height.isZero())341 return { { 0, LengthType::Fixed }, { 0, LengthType::Fixed } };342 343 340 return radius; 344 341 }
Note: See TracChangeset
for help on using the changeset viewer.