bug 222280 fixed: > CSS.supports("overscroll-behavior: inherit") < true however, even after that: > CSS.supports("overscroll-behavior: inherit") < false > CSS.supports("overscroll-behavior", "inherit") < true
<rdar://problem/75377891>
There's a different entry point for the comma separated list version: DOMCSSNamespace::supports(Document& document, const String& property, const String& value)
Created attachment 423362 [details] Patch
Comment on attachment 423362 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=423362&action=review > Source/WebCore/css/DOMCSSNamespace.cpp:67 > > + CSSParserContext parserContext(document); > + if (parserContext.isPropertyRuntimeDisabled(propertyID)) > + propertyID = CSSPropertyInvalid; > + > if (propertyID == CSSPropertyInvalid) > return false; You can just return false in the first branch
https://trac.webkit.org/changeset/274520/webkit
Comment on attachment 423362 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=423362&action=review Tiny clean-up suggestions on moved code. > Source/WebCore/css/parser/CSSParserContext.cpp:161 > +#if ENABLE(TEXT_AUTOSIZING) > + case CSSPropertyWebkitTextSizeAdjust: > +#if !PLATFORM(IOS_FAMILY) > + return !textAutosizingEnabled; > +#endif > + return false; > +#endif // ENABLE(TEXT_AUTOSIZING) This can be written in a less strange way: #if ENABLE(TEXT_AUTOSIZING) && !PLATFORM(IOS_FAMILY) case CSSPropertyWebkitTextSizeAdjust: return !textAutosizingEnabled; #endif No need for the nested #if and double return statements. > Source/WebCore/css/parser/CSSParserContext.cpp:169 > + return false; This unreachable code should be removed.
Followups in https://trac.webkit.org/changeset/274725/webkit and https://trac.webkit.org/changeset/274756/webkit