-
Notifications
You must be signed in to change notification settings - Fork 682
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
[css-fonts] Should font-style: oblique 0deg
serialize as font-style: normal
?
#11430
Comments
Seems clear that browsers won't update to what the CSSWG decided and spec says, unless wpt are updated to match. |
Sounds like we should update the WPT then. |
I'm not sure I agree with this.
Interpolation accepts
I don't see anything in https://drafts.csswg.org/css-fonts-4/#font-style-prop indicating that If I animate It's not clear to me that the resolution in #2505 ever intended browsers to serialize the value as
(which browsers have implemented), but that's specifically about animation behavior, not about serialization. The spec says that the animation type is the computed value type, for which we agreed that the "0 degree" value should (continue to) serialize as |
The discussion IRC log specifically referred to what I mentioned.
This is how many of us have interpreted the following:
|
Yes, Myles suggested that the "computed value of normal should be oblique 0"; but then Elika objects that she doesn't think it will be backwards compatible, and indeed the resolution at the end of the discussion explicitly says "leave font-style computed values as-is" (in other words, Myles's suggestion here was not adopted, AIUI). |
Yeah, there was consensus to not serialize normal to oblique 0deg for backwards compat reasons. But whether |
According to the spec,
So surely they should serialize the same. The shortest-form principle (as well as backwards-compat concerns) dictates that this should be Is there a compelling reason to change this behavior? If it's just that the spec is a bit confusing (hence this discussion!), I suggest we add a note clarifying that |
Can we just say |
In #2505, there was consensus to not serialize
normal
tooblique 0deg
for backwards compat reasons, but interpolation should always useoblique 0deg
.This behavior is only implemented in Safari Technology Preview as it stands: https://wpt.fyi/results/css/css-fonts/animations/font-style-interpolation.html?label=master&label=experimental&aligned&q=font-style
Other browsers serialize as
normal
, which seems against the current specification: https://drafts.csswg.org/css-fonts-4/#font-style-propThere are a couple of options:
oblique 0deg
to benormal
all the time, even outside of animations (shortest serialization rule)font-style
:normal
vs.oblique 0deg;
#2505, interpolate withnormal
as current WPT expectcc @svgeesus @weinig @karlcow @jfkthame @tursunova @drott @tabatkins @fantasai
The text was updated successfully, but these errors were encountered: