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 place-{content,self,items} shorthand properties #15954
Comments
|
Hi! If you have any questions regarding this issue, feel free to make a comment here, or ask it in the If you intend to work on this issue, then add |
|
I think this would be similar to the other issue I am solving and hence would like to work on this too. @highfive: assign me |
|
Hey @SebastinSanty! Thanks for your interest in working on this issue. It's now assigned to you! |
|
@SebastinSanty Have you made any progress? Any questions? |
|
@wafflespeanut Yep! I'm almost done. I'll put in a PR in some time. |
|
cc @emilio |
|
@SebastinSanty Any news? |
|
Is this issue now open? If so, I’ll give it a shot. |
|
Yes it is. Go for it! (and, spelling) |
|
Typo! Oops ... well, what I should do is to implement the shorthands properties in |
|
You're right! And yeah, it'd be nice to have some tests in |
|
Can I ask a question? I don't know how to import
As requirements of
so I probably should use the type to convert an |
|
Ah, it seems Maybe we can just skip testing for this for now... @Manishearth what do you think? |
|
Or @wafflespeanut if you have any suggestion here. |
|
yes, skipping testing is fine, provided the geckolib build works and it works in stylo |
|
oh. don't remove the property from testing. not writing tests for it is fine (we have stylo reftests). Instead of importing |
|
OK, I have done And another question; one of
|
|
No, it has to build. Mark the shorthand with |
|
I already marked with that, and also building has succeeded. |
[WIP] Implement alignment shorthand properties <!-- Please describe your changes on the following line: --> I implemented the shorthand properties, but it may includes some bugs. Currently, `mach test-unit -p style` caught some errors (see #15954). I already tried `mach build-geckolib`, though there is no improvement. Please check my code. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #15954 <!-- Either: --> - [x] There are tests for these changes <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16322) <!-- Reviewable:end -->
Implement alignment shorthand properties <!-- Please describe your changes on the following line: --> I implemented the shorthand properties, but it may includes some bugs. Currently, `mach test-unit -p style` caught some errors (see #15954). I already tried `mach build-geckolib`, though there is no improvement. Please check my code. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #15954 <!-- Either: --> - [x] There are tests for these changes <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16322) <!-- Reviewable:end -->
Spec:
They are basically just shorthands of several existing properties, so it should be easy to implement.
This should be implemented in https://github.com/servo/servo/blob/master/components/style/properties/shorthand/position.mako.rs
and the related sub-properties are defined in https://github.com/servo/servo/blob/master/components/style/properties/longhand/position.mako.rs