Changeset 290422 in webkit
- Timestamp:
- Feb 24, 2022, 3:57:47 AM (3 years ago)
- Location:
- trunk
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r290380 r290422 1 2022-02-24 Martin Robinson <mrobinson@webkit.org> 2 3 Implement logical properties for CSS overscroll-behavior 4 https://bugs.webkit.org/show_bug.cgi?id=237080 5 6 Reviewed by Simon Fraser. 7 8 * web-platform-tests/css/css-overscroll-behavior/inheritance-expected.txt: Update expectations for passing tests. 9 * web-platform-tests/css/css-overscroll-behavior/overscroll-behavior-logical-expected.txt: Ditto. 10 * web-platform-tests/css/css-overscroll-behavior/parsing/overscroll-behavior-computed-expected.txt: Ditto. 11 * web-platform-tests/css/css-overscroll-behavior/parsing/overscroll-behavior-valid-expected.txt: Ditto. 12 1 13 2022-02-23 Antti Koivisto <antti@apple.com> 2 14 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-overscroll-behavior/inheritance-expected.txt
r270613 r290422 1 1 2 FAIL Property overscroll-behavior-block has initial value auto assert_true: overscroll-behavior-block doesn't seem to be supported in the computed style expected true got false 3 FAIL Property overscroll-behavior-block does not inherit assert_true: expected true got false 4 FAIL Property overscroll-behavior-inline has initial value auto assert_true: overscroll-behavior-inline doesn't seem to be supported in the computed style expected true got false 5 FAIL Property overscroll-behavior-inline does not inherit assert_true: expected true got false 2 PASS Property overscroll-behavior-block has initial value auto 3 PASS Property overscroll-behavior-block does not inherit 4 PASS Property overscroll-behavior-inline has initial value auto 5 PASS Property overscroll-behavior-inline does not inherit 6 6 PASS Property overscroll-behavior-x has initial value auto 7 7 PASS Property overscroll-behavior-x does not inherit -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-overscroll-behavior/overscroll-behavior-logical-expected.txt
r270613 r290422 1 1 2 FAIL Logical overscroll-behavior maps correctly when element has horizontal-tb writing mode assert_equals: expected "none" but got "auto" 3 FAIL Logical overscroll-behavior maps correctly when element has vertical-rl writing mode assert_equals: expected "contain" but got "auto" 4 FAIL Logical overscroll-behavior maps correctly when element has horizontal-tb writing mode and is not affected by rtl direction assert_equals: expected "none" but got "auto" 2 PASS Logical overscroll-behavior maps correctly when element has horizontal-tb writing mode 3 PASS Logical overscroll-behavior maps correctly when element has vertical-rl writing mode 4 PASS Logical overscroll-behavior maps correctly when element has horizontal-tb writing mode and is not affected by rtl direction 5 5 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-overscroll-behavior/parsing/overscroll-behavior-computed-expected.txt
r270613 r290422 6 6 PASS Property overscroll-behavior-y value 'none' 7 7 PASS Property overscroll-behavior-y value 'auto' 8 FAIL Property overscroll-behavior-inline value 'contain' assert_true: overscroll-behavior-inline doesn't seem to be supported in the computed style expected true got false 9 FAIL Property overscroll-behavior-inline value 'none' assert_true: overscroll-behavior-inline doesn't seem to be supported in the computed style expected true got false 10 FAIL Property overscroll-behavior-inline value 'auto' assert_true: overscroll-behavior-inline doesn't seem to be supported in the computed style expected true got false 11 FAIL Property overscroll-behavior-block value 'contain' assert_true: overscroll-behavior-block doesn't seem to be supported in the computed style expected true got false 12 FAIL Property overscroll-behavior-block value 'none' assert_true: overscroll-behavior-block doesn't seem to be supported in the computed style expected true got false 13 FAIL Property overscroll-behavior-block value 'auto' assert_true: overscroll-behavior-block doesn't seem to be supported in the computed style expected true got false 8 PASS Property overscroll-behavior-inline value 'contain' 9 PASS Property overscroll-behavior-inline value 'none' 10 PASS Property overscroll-behavior-inline value 'auto' 11 PASS Property overscroll-behavior-block value 'contain' 12 PASS Property overscroll-behavior-block value 'none' 13 PASS Property overscroll-behavior-block value 'auto' 14 14 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-overscroll-behavior/parsing/overscroll-behavior-valid-expected.txt
r270613 r290422 15 15 PASS e.style['overscroll-behavior-y'] = "none" should set the property value 16 16 PASS e.style['overscroll-behavior-y'] = "auto" should set the property value 17 FAIL e.style['overscroll-behavior-inline'] = "contain" should set the property value assert_not_equals: property should be set got disallowed value "" 18 FAIL e.style['overscroll-behavior-inline'] = "none" should set the property value assert_not_equals: property should be set got disallowed value "" 19 FAIL e.style['overscroll-behavior-inline'] = "auto" should set the property value assert_not_equals: property should be set got disallowed value "" 20 FAIL e.style['overscroll-behavior-block'] = "contain" should set the property value assert_not_equals: property should be set got disallowed value "" 21 FAIL e.style['overscroll-behavior-block'] = "none" should set the property value assert_not_equals: property should be set got disallowed value "" 22 FAIL e.style['overscroll-behavior-block'] = "auto" should set the property value assert_not_equals: property should be set got disallowed value "" 17 PASS e.style['overscroll-behavior-inline'] = "contain" should set the property value 18 PASS e.style['overscroll-behavior-inline'] = "none" should set the property value 19 PASS e.style['overscroll-behavior-inline'] = "auto" should set the property value 20 PASS e.style['overscroll-behavior-block'] = "contain" should set the property value 21 PASS e.style['overscroll-behavior-block'] = "none" should set the property value 22 PASS e.style['overscroll-behavior-block'] = "auto" should set the property value 23 23 -
trunk/Source/WebCore/ChangeLog
r290419 r290422 1 2022-02-24 Martin Robinson <mrobinson@webkit.org> 2 3 Implement logical properties for CSS overscroll-behavior 4 https://bugs.webkit.org/show_bug.cgi?id=237080 5 6 Reviewed by Simon Fraser. 7 8 No new tests. This is covered by existing WPT tests. 9 10 Add support for overscroll-behavior-block and overscroll-behavior-inline, the logical versions 11 of the overscroll behavior properties. 12 13 * css/CSSComputedStyleDeclaration.cpp: 14 (WebCore::ComputedStyleExtractor::valueForPropertyInStyle): 15 * css/CSSProperties.json: 16 * css/parser/CSSParserContext.cpp: 17 (WebCore::CSSParserContext::isPropertyRuntimeDisabled const): 18 * css/parser/CSSParserFastPaths.cpp: 19 (WebCore::CSSParserFastPaths::isValidKeywordPropertyAndValue): 20 (WebCore::CSSParserFastPaths::isKeywordPropertyID): 21 * css/parser/CSSPropertyParser.cpp: 22 (WebCore::CSSPropertyParser::parseSingleValue): 23 1 24 2022-02-24 Carlos Garcia Campos <cgarcia@igalia.com> 2 25 -
trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp
r290320 r290422 4211 4211 case CSSPropertyMarginInlineEnd: 4212 4212 case CSSPropertyMarginInlineStart: 4213 case CSSPropertyOverscrollBehaviorInline: 4214 case CSSPropertyOverscrollBehaviorBlock: 4213 4215 case CSSPropertyPaddingBlockEnd: 4214 4216 case CSSPropertyPaddingBlockStart: -
trunk/Source/WebCore/css/CSSProperties.json
r289876 r290422 3911 3911 ], 3912 3912 "codegen-properties": { 3913 "settings-flag": "overscrollBehaviorEnabled" 3913 "settings-flag": "overscrollBehaviorEnabled", 3914 "logical-property-group": { 3915 "name": "overscroll-behavior", 3916 "resolver": "horizontal" 3917 } 3914 3918 }, 3915 3919 "status": { … … 3927 3931 ], 3928 3932 "codegen-properties": { 3929 "settings-flag": "overscrollBehaviorEnabled" 3933 "settings-flag": "overscrollBehaviorEnabled", 3934 "logical-property-group": { 3935 "name": "overscroll-behavior", 3936 "resolver": "vertical" 3937 } 3930 3938 }, 3931 3939 "status": { … … 3934 3942 "specification": { 3935 3943 "url": "https://drafts.csswg.org/css-overscroll-1/#propdef-overscroll-behavior-y" 3944 } 3945 }, 3946 "overscroll-behavior-inline": { 3947 "values": [ 3948 "contain", 3949 "none", 3950 "auto" 3951 ], 3952 "codegen-properties": { 3953 "settings-flag": "overscrollBehaviorEnabled", 3954 "skip-builder": true, 3955 "logical-property-group": { 3956 "name": "overscroll-behavior", 3957 "resolver": "inline" 3958 } 3959 }, 3960 "status": { 3961 "status": "in development" 3962 }, 3963 "specification": { 3964 "url": "https://drafts.csswg.org/css-overscroll-1/#propdef-overscroll-behavior-x" 3965 } 3966 }, 3967 "overscroll-behavior-block": { 3968 "values": [ 3969 "contain", 3970 "none", 3971 "auto" 3972 ], 3973 "codegen-properties": { 3974 "settings-flag": "overscrollBehaviorEnabled", 3975 "skip-builder": true, 3976 "logical-property-group": { 3977 "name": "overscroll-behavior", 3978 "resolver": "block" 3979 } 3980 }, 3981 "status": { 3982 "status": "in development" 3983 }, 3984 "specification": { 3985 "url": "https://drafts.csswg.org/css-overscroll-1/#propdef-overscroll-behavior-x" 3936 3986 } 3937 3987 }, -
trunk/Source/WebCore/css/parser/CSSParserContext.cpp
r290394 r290422 245 245 return !individualTransformPropertiesEnabled; 246 246 case CSSPropertyOverscrollBehavior: 247 case CSSPropertyOverscrollBehaviorBlock: 248 case CSSPropertyOverscrollBehaviorInline: 247 249 case CSSPropertyOverscrollBehaviorX: 248 250 case CSSPropertyOverscrollBehaviorY: -
trunk/Source/WebCore/css/parser/CSSParserFastPaths.cpp
r288590 r290422 684 684 return true; 685 685 return valueID == CSSValueVisible || valueID == CSSValueHidden || valueID == CSSValueScroll || valueID == CSSValueAuto || valueID == CSSValueOverlay || valueID == CSSValueWebkitPagedX || valueID == CSSValueWebkitPagedY; 686 case CSSPropertyOverscrollBehaviorBlock: 687 case CSSPropertyOverscrollBehaviorInline: 686 688 case CSSPropertyOverscrollBehaviorX: 687 689 case CSSPropertyOverscrollBehaviorY: … … 950 952 case CSSPropertyOverflowX: 951 953 case CSSPropertyOverflowY: 954 case CSSPropertyOverscrollBehaviorBlock: 955 case CSSPropertyOverscrollBehaviorInline: 952 956 case CSSPropertyOverscrollBehaviorX: 953 957 case CSSPropertyOverscrollBehaviorY: -
trunk/Source/WebCore/css/parser/CSSPropertyParser.cpp
r289876 r290422 4348 4348 return nullptr; 4349 4349 return consumeScrollBehavior(m_range); 4350 case CSSPropertyOverscrollBehaviorBlock: 4351 case CSSPropertyOverscrollBehaviorInline: 4350 4352 case CSSPropertyOverscrollBehaviorX: 4351 4353 case CSSPropertyOverscrollBehaviorY:
Note:
See TracChangeset
for help on using the changeset viewer.