Bug 238746 - Update 'features.json' for current state of WebKit
Summary: Update 'features.json' for current state of WebKit
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Website (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Brent Fulgham
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-04-04 10:33 PDT by Brent Fulgham
Modified: 2022-04-04 12:46 PDT (History)
6 users (show)

See Also:


Attachments
Patch (9.37 KB, patch)
2022-04-04 10:39 PDT, Brent Fulgham
no flags Details | Formatted Diff | Diff
Patch for landing (8.98 KB, patch)
2022-04-04 11:33 PDT, Brent Fulgham
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brent Fulgham 2022-04-04 10:33:14 PDT
I noticed that the current 'features.json' file is out of date. I think the attached changes more accurately reflect the state of the engine.
Comment 1 Brent Fulgham 2022-04-04 10:39:40 PDT
Created attachment 456588 [details]
Patch
Comment 2 Tim Nguyen (:ntim) 2022-04-04 10:51:16 PDT
Comment on attachment 456588 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=456588&action=review

> Source/WebCore/features.json:1724
> -            "enabled-by-default": false
> +            "enabled-by-default": true

I would just remove this `"enabled-by-default"` line.
Comment 3 Brent Fulgham 2022-04-04 10:54:12 PDT
Comment on attachment 456588 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=456588&action=review

>> Source/WebCore/features.json:1724
>> +            "enabled-by-default": true
> 
> I would just remove this `"enabled-by-default"` line.

Will do!
Comment 4 Simon Fraser (smfr) 2022-04-04 11:05:29 PDT
Comment on attachment 456588 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=456588&action=review

> Source/WebCore/features.json:182
> +        "description": "The Custom Highlight API extends the concept of highlight pseudo-elements (see CSS Pseudo-Elements 4 § 3 Highlight Pseudo-elements) by providing a way for web developers to style the text of arbitrary Range objects, rather than being limited to the user agent defined ::selection, ::inactive-selection, ::spelling-error, and '::grammar-error'."

Not sure why ::grammar-error has single quotes.

> Source/WebCore/features.json:248
> +        "description": "This specification defines a set of CSS properties that allow authors to specify a path. The object can be positioned, transitioned and animated along this path over a given period of time. The time may be static if no animation was specified."

specify a path -> specify position along a path. Remove "The time may be static if no animation was specified."

> Source/WebCore/features.json:253
> +            "status": "In Development"

Supported

> Source/WebCore/features.json:257
> +        "description": "A content author does not necessarily want scroll chaining to occur for all scroll containers. Some scroll containers may be part of a containing block chain but may serve a different logical purpose in the document and may want to prevent scrolling from continuing up the scroll chain. The overscroll-behavior property allows content authors to control scroll chaining and overscroll in a robust, performant and forward compatible way."

I would just say:
"Allow authors to control whether scrolling results in overscroll ("rubber-banding") and propagates to enclosing scroll containers."

> Source/WebCore/features.json:880
> +            "status": "Supported"

Do we support the SpeechRecognition part of this? I don't think so, so In Development.
Comment 5 Brent Fulgham 2022-04-04 11:33:21 PDT
Comment on attachment 456588 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=456588&action=review

>> Source/WebCore/features.json:182
>> +        "description": "The Custom Highlight API extends the concept of highlight pseudo-elements (see CSS Pseudo-Elements 4 § 3 Highlight Pseudo-elements) by providing a way for web developers to style the text of arbitrary Range objects, rather than being limited to the user agent defined ::selection, ::inactive-selection, ::spelling-error, and '::grammar-error'."
> 
> Not sure why ::grammar-error has single quotes.

Fixed.

>> Source/WebCore/features.json:248
>> +        "description": "This specification defines a set of CSS properties that allow authors to specify a path. The object can be positioned, transitioned and animated along this path over a given period of time. The time may be static if no animation was specified."
> 
> specify a path -> specify position along a path. Remove "The time may be static if no animation was specified."

Fixed.

>> Source/WebCore/features.json:253
>> +            "status": "In Development"
> 
> Supported

Fixed.

>> Source/WebCore/features.json:257
>> +        "description": "A content author does not necessarily want scroll chaining to occur for all scroll containers. Some scroll containers may be part of a containing block chain but may serve a different logical purpose in the document and may want to prevent scrolling from continuing up the scroll chain. The overscroll-behavior property allows content authors to control scroll chaining and overscroll in a robust, performant and forward compatible way."
> 
> I would just say:
> "Allow authors to control whether scrolling results in overscroll ("rubber-banding") and propagates to enclosing scroll containers."

Fixed.

>> Source/WebCore/features.json:880
>> +            "status": "Supported"
> 
> Do we support the SpeechRecognition part of this? I don't think so, so In Development.

We do! That was a big part of our Safari feature work for iOS 14 and Big Sur.
Comment 6 Brent Fulgham 2022-04-04 11:33:42 PDT
Created attachment 456595 [details]
Patch for landing
Comment 7 EWS 2022-04-04 12:45:28 PDT
Committed r292311 (249204@main): <https://commits.webkit.org/249204@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 456595 [details].
Comment 8 Radar WebKit Bug Importer 2022-04-04 12:46:18 PDT
<rdar://problem/91256246>