You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[css-fonts-4] absolute-color in override-colors unspecified #7010
9.2.3. Overriding a colors from a palette: The override-colors descriptor
says:
Value: | [<integer [0,∞]> <absolute-color> ]#
But I can't find a reference for absolute-color. Has the color spec changed after this? I assume the intention is to allow <<absolute-color-base>> | currentcolor but not | <<system-color>> | <<device-cmyk()>>.
I intentionally omitted currentColor . c790f28 is the edit. You can see how currentColor was supposed to be part of the <color> production, not the <absolute-color> production.
Okay in that case, what we currently have is correct
But if it was <<absolute-color>> before, and now we use <<absolute-color-base>>, it means dropping <<absolute-device-cmyk>> - is that intended (I may have missed a continuation of the conversation in #6681 (review).
I am in favour of excluding currentColor, see also my comment: web-platform-tests/wpt#31517 - font-palette-35.html and font-palette-36.html WPT tests should probably be deleted. (CC @faceless2 )
From an implementation perspective, I find it difficult to resolve currentColor at the time of font instantiation, or vice versa: The time of being able to resolve currentColor is not the time of when the font is getting instantiated (for which resolved/absolute colors are needed). For the purpose of current color usage, I suggest a COLRv0/COLRv1 font that uses color index 0xFFFF in the glyph descriptions (which can't be overridden).
Activity
litherum commentedon Feb 3, 2022
Yes, IIRC the change that added that grammar also modified the color spec.
svgeesus commentedon Feb 4, 2022
Bikeshed reports, on building CSS Fonts 4
probably because CSS Color 4 has
So, the fix is to change Fonts 4 to use the actual exported term :)
svgeesus commentedon Feb 4, 2022
Oh I just noticed
If that is correct, I need to make a different edit. Is currentColor to be included?
litherum commentedon Feb 5, 2022
I intentionally omitted
currentColor. c790f28 is the edit. You can see howcurrentColorwas supposed to be part of the<color>production, not the<absolute-color>production.svgeesus commentedon Feb 7, 2022
Okay in that case, what we currently have is correct
drott commentedon Feb 7, 2022
Thanks for fixing the reference.
But if it was
<<absolute-color>>before, and now we use<<absolute-color-base>>, it means dropping<<absolute-device-cmyk>>- is that intended (I may have missed a continuation of the conversation in #6681 (review).svgeesus commentedon Feb 9, 2022
Ah, I see. At the time of c790f28
device-cmyk()had a fallback color so it was necessary to split off an<<absolute-device-cmyk>>with no fallback.So yes this needs a further edit to add back
device-cmyk.drott commentedon Feb 10, 2022
I am in favour of excluding
currentColor, see also my comment: web-platform-tests/wpt#31517 - font-palette-35.html and font-palette-36.html WPT tests should probably be deleted. (CC @faceless2 )From an implementation perspective, I find it difficult to resolve
currentColorat the time of font instantiation, or vice versa: The time of being able to resolvecurrentColoris not the time of when the font is getting instantiated (for which resolved/absolute colors are needed). For the purpose of current color usage, I suggest a COLRv0/COLRv1 font that uses color index 0xFFFF in the glyph descriptions (which can't be overridden).svgeesus commentedon Feb 10, 2022
Yes, I think we are all agreed that
currentcolorshould (continue to be) excluded. So yes, I agree WPT using it should be removed.The remaining question is whether to add the device-cmyk back, which I guess we should do.
Remove `currentcolor` from `override-colors:` example
Revert "New tets for use of currentColor in @font-palette-values"
Remove `currentcolor` from `override-colors:` example
Revert "New tets for use of currentColor in @font-palette-values"
Bug 1754944 [wpt PR 32812] - Revert "New tets for use of currentColor…
Revert "New tets for use of currentColor in @font-palette-values"
Bug 1754944 [wpt PR 32812] - Revert "New tets for use of currentColor…
Bug 1754944 [wpt PR 32812] - Revert "New tets for use of currentColor…
Bug 1754944 [wpt PR 32812] - Revert "New tets for use of currentColor…
svgeesus commentedon Nov 2, 2023
@drott see
<absolute-color-base>not enough anymore #9555[css-fonts-4] Use css 5 absolute color definition for override-colors #…
Bug 1754944 [wpt PR 32812] - Revert "New tets for use of currentColor…
Bug 1754944 [wpt PR 32812] - Revert "New tets for use of currentColor…