Bug 251590 - [css-properties-values-api] non-inherited custom property fails to inherit from parent when "inherit" is set
Summary: [css-properties-values-api] non-inherited custom property fails to inherit fr...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Antoine Quint
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-02-02 08:17 PST by Antoine Quint
Modified: 2023-02-10 16:12 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Antoine Quint 2023-02-02 08:17:50 PST
This fails:

<div style="--foo: 100px">
    <div style="--foo: inherit"></div>
</div>

The value for --foo on the child is the initial value for that custom property rather than its parent's value.
Comment 1 Antoine Quint 2023-02-02 08:20:44 PST
Pull request: https://github.com/WebKit/WebKit/pull/9522
Comment 2 Antoine Quint 2023-02-02 08:40:55 PST
Submitted web-platform-tests pull request: https://github.com/web-platform-tests/wpt/pull/38330
Comment 3 EWS 2023-02-03 02:06:26 PST
Committed 259809@main (06e3540a49d0): <https://commits.webkit.org/259809@main>

Reviewed commits have been landed. Closing PR #9522 and removing active labels.
Comment 4 Radar WebKit Bug Importer 2023-02-03 02:07:37 PST
<rdar://problem/104998661>
Comment 5 EWS 2023-02-10 16:12:43 PST
Committed 259548.78@safari-7615-branch (a4202f6cb63a): <https://commits.webkit.org/259548.78@safari-7615-branch>

Reviewed commits have been landed. Closing PR #379 and removing active labels.