Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upImplement parsing and serialization of font-variant-{alternates,east-asian,ligatures,numeric} #15957
Comments
|
@highfive: assign me |
|
Hey @SebastinSanty! Thanks for your interest in working on this issue. It's now assigned to you! |
|
@SebastinSanty In general, it's discouraged to reserve issues that a person is not working on in the immediate future. Please finish the other issue first before claiming this one. |
|
@KiChjang Sorry for that. Thought of taking the easier one first. |
|
@highfive: assign me |
|
Hey @abhiQmar! Thanks for your interest in working on this issue. It's now assigned to you! |
|
Sorry, haven't been able to find time to complete this, anyone is free to take this up. |
|
cc @emilio |
|
@highfive: assign me |
|
Hey @streichgeorg! Thanks for your interest in working on this issue. It's now assigned to you! |
|
I managed to implement the longhands but when I try to add them to the shorthands the tests |
|
What are the failures? |
|
|
The first test is verifying that if all of the known font longhands are present, the serialized version is the font shorthand. https://dxr.mozilla.org/servo/rev/065f50014f321466c979120967da720e88ae2b29/tests/unit/style/properties/serialization.rs#640-652 should be updated to include the new properties that the shorthand now checks for. The second test looks like it might be failing to execute python correctly. It will be hard to provide any advice about that without seeing the changes you've made. You could check whether you see that failure on an unmodified version of master when running |
|
Sorry that it seems @hiikezoe has had some patches for this in bug 1354876. We will probably just take that and close this issue. Thanks for your work. |
|
In bug 1354876, I did not parse font-variant-alternates properly, so there are still remaining work. And I am hoping @streichgeorg fixes the remaining issue. |
|
Are you still working on this, @streichgeorg? |
|
Oh I'm sorry, I kinda forgot this and also didn't have any time in the past week. But I should be able to finish this in the following days, I just need to do some minor stuff. |
|
That's good to know. Thank you! |
|
@hiikezoe I saw you wrote a FIXME in font.mako.rs referring this issue, but it is not clear to me what is left there. Could you clarify? It seems to me this issue can be considered fixed. Is there anything I'm missing? |
|
Some values (e.g. styleset) involve feature-value-name(s). I did not implement that part (Honestly I did miss that part completely). Whereas @streichgeorg tries to parse them [1] (Great!). This is the left issue. |
|
That sounds like part of |
Their definitions can be found in CSS Font spec:
They should be added into https://github.com/servo/servo/blob/master/components/style/properties/longhand/font.mako.rs
And all of them should be added as subproperties of
fontandfont-variantshorthands in https://github.com/servo/servo/blob/master/components/style/properties/shorthand/font.mako.rsIt might not be too hard, but the work here isn't trivial either.