-
Notifications
You must be signed in to change notification settings - Fork 74
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
Discrepancies with TypeStyle #20
Comments
Wow, this list is massive 😅 Some thoughts:
|
Looks like that can be safely disregarded: /**
* This property must not be used. It is no longer included in any standard or standard track specification, nor is it implemented in any browser. It is only used when the text-align-last property is set to size. It controls allowed adjustments of font-size to fit line content.
*/
maxFontSize?: any; (link) |
FYI I have a bit of code on a branch of typestyle to test discrepancies, so we can easily reevaluate after #21 and other changes are made to close the gap. |
Updated the list in the issue description based on
|
I've reduced the list again, filtering out known obsolete properties from here and those whose docs in TypeStyle indicate they are no longer valid. |
I found a comment in the TypeStyle code to the effect that their vendor prefixes were obtained from https://peter.sh/experiments/vendor-prefixed-css-property-overview/ I don't know how that compares to the MDN browser compat repo you linked, but thought I would mention it in case it's useful. |
Ah, nice. Never heard of that page before. Thanks. |
Updated the list based on
|
The next step beyond filling in missing properties is seeing where TypeStyle allows additional values for a given property not covered by csstype. I've added a list of those to the issue as well. The tall tentpole here seems to be the that TypeStyle's |
Waw, you're helping out a lot. I really appreciate it! Globals are manually defined so I guess I just missed it. I'll add it. |
Glad to help, I'm very excited for csstype to take over the world! 😄 |
@frenic ok, I've updated both lists. 88 properties disappeared from the "missing" list 🙌 |
I think all the remaining legitimate value discrepancies are accounted for in separate issues. The rest are where TypeStyle is using too broad of a type, e.g. |
Some of the important literals that was missing if fixed except for |
Hm, it seems like only |
Those were already not on the list for some reason... |
No, they are in the list with missing keywords. |
Ah, I was only referring to the missing properties list. But I also don't see |
I meant |
I've looked into some random properties that are missing and I can't find any documentation on anyone. I could walk them through one by one just to make sure. |
I updated the keywords list too... the diff is
|
Well, these are incorrect at TypeStyle for sure:
https://drafts.csswg.org/css-overflow-3/#line-clamp |
Yep, there are a lot of those where they’ve just put |
It's a lot of work going through all of these properties. I've found some hits on few properties where it points to old suggestions by W3C for around 15 years ago that never became standard nor got implemented anywhere. 😆 I mean |
I think it's time to update the PR over there and ask if there's really anything still missing that they think is necessary. If they want to include experimental properties/keywords they can always patch those in manually. |
They might want combined keywords and comments too before considering a merge I guess. But that's next on my list now. |
Is there a plan for how comments could be achieved? |
I've got MDN-links from |
That would be awesome! |
I guess this can be closed now since TyoeStyle uses csstype now. |
Hi, I've started a very preliminary PR to integrate csstype with TypeStyle at typestyle/typestyle#245. TypeStyle has some of the highest fidelity CSS typings I've seen outside of this library, and I want to make sure to capture and work through the differences that exist. To kick things off, here are the properties that TypeStyle has but
csstype
doesn't currently:Properties in
typestyle
but notcsstype
:Where
csstype
's properties overlap withtypestyle
but it's missing some allowed values:The text was updated successfully, but these errors were encountered: