Skip to content

[CSS-Typed-OM] Change reifying as from 'a CSSStyleValue' to 'an identifier' #1068

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 15, 2022

Conversation

DevSDK
Copy link
Contributor

@DevSDK DevSDK commented Apr 10, 2022

Step 2 of parse() [1] says "Reify a color value from result ".

However, "Reify a color value" algorithm [2] needs a second parameter,

which is a property to be consumed by step 9 only.

Therefore, Change step 9 from 'CSSStyleValue' to 'an identifier'[3] for reifying.

And the reify a color value algorithm no more need |prop|.

Hence, Remove the |prop| parameter of 'reifying a color value'.

[1] https://drafts.css-houdini.org/css-typed-om-1/#dom-csscolorvalue-parse
[2] https://drafts.css-houdini.org/css-typed-om-1/#reify-a-color-value
[3] https://drafts.css-houdini.org/css-typed-om-1/#reify-an-identifier

Working Chromium CL: https://chromium-review.googlesource.com/c/chromium/src/+/3522201
csswg issue: w3c/csswg-drafts#7174
cc. @xiaochengh

DevSDK added 2 commits April 10, 2022 16:48
Step 2 of  parse()  [1] says "Reify a color value from  result ".

However, "Reify a color value" algorithm [2] needs a second parameter,

which is a property to be consumed by step 9 only.

Therefore, Change step 9 from 'CSSStyleValue' to 'an identifier'[3] for reifying.

[1] https://drafts.css-houdini.org/css-typed-om-1/#dom-csscolorvalue-parse
[2] https://drafts.css-houdini.org/css-typed-om-1/#reify-a-color-value
[3] https://drafts.css-houdini.org/css-typed-om-1/#reify-an-identifier
The reify a color value algorithm no more need |prop|.

Hence, Remove the |prop| parameter of 'reifying a color value'.
@xiaochengh
Copy link
Contributor

@tabatkins Could you ptal?

@tabatkins tabatkins merged commit da6e8f9 into w3c:main Apr 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants