-
Notifications
You must be signed in to change notification settings - Fork 56
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
FYI Review of CSS Fonts 4 font-palette
and @font-palette-values
#719
Comments
font-palette
and @font-palette-values
font-palette
and @font-palette-values
Preliminary positive feedback towards a "worth prototyping" standards position from Mozilla as well from @jfkthame in mozilla/standards-positions#617 (comment) - Thank you, Jonathan. Update: Now finalized as "worth prototyping" in that issue. |
In the current spec, |
Why not? From https://www.w3.org/TR/css-fonts-4/#font-palette-values
I interpret to mean |
@drott I misunderstood, it's just that current browsers don't implement |
The current specification allows |
@plinss the explainer PR was merged, the explainer is here |
Is it intentional that authors still need to create an p::first-letter {
font: 2.9em/.8 "Fancy color font";
float: left;
font-palette: --lilac-blossom;
}
@font-palette-values --lilac-blossom {
font-family: "Fancy color font";
base-palette: 7;
} instead of just: p::first-letter {
font: 2.9em/.8 "Fancy color font";
float: left;
font-palette: 7;
} |
@LeaVerou I see that the current specification can only change the Syntactically speaking,
As a CSS creator, I would definitely like to be able to modify the font-palette straight away. I wonder if there are some difficulties with this in the spec or browser implementation? |
Yes, because of font fallback. Authors don’t actually know which font will be used. If their desired font doesn’t load and the fallback font also happens to be a color font, palette 7 will be something totally arbitrary. At least with the at-rule, the fallback will be the default palette. |
We took a look at this today and don't have any concerns. Looks good to us. Thanks for flying TAG. |
Braw mornin' TAG!
Review Request
I'm requesting a TAG review of
font-palette
and@font-palette-values
and intent to inform the TAG about the existing plans to ship this feature in two engines, see below.font-palette
w3c/csswg-drafts#7138 & https://github.com/drott/csswg-drafts/blob/paletteExplainer/css-fonts-4/palette-explainer.mdFurther details:
You should also know that...
Real word example
There's a polyfilled example of custom palette usage at https://underware.nl/fonts/plakato/features/color/ where font foundry Underware hosts their Plakato Color Grade experiment.
Shipping intentions
Safari publishes this feature in their Safari 15.4 Beta Release Notes, indicating a plan to ship this soon.
For Blink @drott posted an intent-to ship as well. So two engines are planning to ship this feature in the near future.
Feedback Channel
We'd prefer the TAG provide feedback as comments on this issue.
The text was updated successfully, but these errors were encountered: