WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
231334
[css-ui] Parsing support for accent-color
https://bugs.webkit.org/show_bug.cgi?id=231334
Summary
[css-ui] Parsing support for accent-color
Aditya Keerthi
Reported
2021-10-06 15:42:24 PDT
https://www.w3.org/TR/css-ui-4/#widget-accent
Attachments
Patch
(200.30 KB, patch)
2021-10-06 15:47 PDT
,
Aditya Keerthi
ews-feeder
: commit-queue-
Details
Formatted Diff
Diff
Patch
(201.80 KB, patch)
2021-10-06 16:01 PDT
,
Aditya Keerthi
ews-feeder
: commit-queue-
Details
Formatted Diff
Diff
Patch
(201.83 KB, patch)
2021-10-06 16:46 PDT
,
Aditya Keerthi
koivisto
: review+
Details
Formatted Diff
Diff
Patch for landing
(198.74 KB, patch)
2021-10-07 10:53 PDT
,
Aditya Keerthi
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2021-10-06 15:42:59 PDT
<
rdar://problem/83955508
>
Aditya Keerthi
Comment 2
2021-10-06 15:47:06 PDT
Created
attachment 440446
[details]
Patch
Aditya Keerthi
Comment 3
2021-10-06 16:01:54 PDT
Created
attachment 440452
[details]
Patch
Aditya Keerthi
Comment 4
2021-10-06 16:36:20 PDT
Needs to be rebased after
r283676
.
Aditya Keerthi
Comment 5
2021-10-06 16:46:16 PDT
Created
attachment 440456
[details]
Patch
Antti Koivisto
Comment 6
2021-10-07 09:47:43 PDT
Comment on
attachment 440456
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=440456&action=review
> Source/WebCore/css/CSSProperties.json:225 > + "codegen-properties": { > + "color-property": true, > + "custom": "All", > + "settings-flag": "accentColorEnabled" > + },
Does this really need custom codegen? Wouldn't "auto-functions": true; be sufficient?
> Source/WebCore/css/parser/CSSParserContext.cpp:159 > - | context.aspectRatioEnabled << 4 > - | context.colorContrastEnabled << 5 > - | context.colorFilterEnabled << 6 > - | context.colorMixEnabled << 7 > - | context.constantPropertiesEnabled << 8 > - | context.containmentEnabled << 9 > - | context.cssColor4 << 10 > - | context.deferredCSSParserEnabled << 11 > - | context.individualTransformPropertiesEnabled << 12 > + | context.accentColorEnabled << 4
Could have just added this to the end and avoided all the movement. Not like these are consistently in sorted order.
Aditya Keerthi
Comment 7
2021-10-07 10:53:06 PDT
Created
attachment 440513
[details]
Patch for landing
Aditya Keerthi
Comment 8
2021-10-07 10:59:42 PDT
(In reply to Antti Koivisto from
comment #6
)
> Comment on
attachment 440456
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=440456&action=review
> > > Source/WebCore/css/CSSProperties.json:225 > > + "codegen-properties": { > > + "color-property": true, > > + "custom": "All", > > + "settings-flag": "accentColorEnabled" > > + }, > > Does this really need custom codegen? Wouldn't > > "auto-functions": true; > > be sufficient?
This doesn't currently work for color properties. I'll add support here:
https://bugs.webkit.org/show_bug.cgi?id=231376
, and then make this change.
> > Source/WebCore/css/parser/CSSParserContext.cpp:159 > > - | context.aspectRatioEnabled << 4 > > - | context.colorContrastEnabled << 5 > > - | context.colorFilterEnabled << 6 > > - | context.colorMixEnabled << 7 > > - | context.constantPropertiesEnabled << 8 > > - | context.containmentEnabled << 9 > > - | context.cssColor4 << 10 > > - | context.deferredCSSParserEnabled << 11 > > - | context.individualTransformPropertiesEnabled << 12 > > + | context.accentColorEnabled << 4 > > Could have just added this to the end and avoided all the movement. Not like > these are consistently in sorted order.
Added to the end.
EWS
Comment 9
2021-10-07 14:08:18 PDT
Committed
r283742
(
242664@main
): <
https://commits.webkit.org/242664@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 440513
[details]
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug