Skip to content
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

Fix computation of {align,justify}-{content,items,self} (and add parsing / serialization if necessary) #15001

Closed
upsuper opened this issue Jan 13, 2017 · 5 comments

Comments

@upsuper
Copy link
Member

@upsuper upsuper commented Jan 13, 2017

It seems there are relatively complicated rules for computed value of those 6 properties, and currently Stylo's result of them seems to be mostly wrong.

Please see Gecko's test_align_justify_computed_values.html as a reference.

@upsuper upsuper added the A-stylo label Jan 13, 2017
@upsuper
Copy link
Member Author

@upsuper upsuper commented Jan 13, 2017

It seems some of the properties are either not implemented (justify-{items,self}), or not implemented for geckolib (justify-content and align-content).

@mbrubeck mbrubeck self-assigned this Feb 6, 2017
bors-servo added a commit that referenced this issue Feb 14, 2017
Stylo: Implement align-content and justify-content

This implements parsing and serialization of `align-content` and `justify-content` for Stylo. The implementation should match Gecko exactly (which means it's not exactly up-to-date with the latest draft spec). This is a Stylo-only change; it leaves the current Servo code (which matches an older spec) unchanged for now.  r? @Manishearth

- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix part of #15001 (github issue number if applicable).
- [x] These changes do not require tests because they are stylo-only

<!-- 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/15533)
<!-- Reviewable:end -->
bors-servo added a commit that referenced this issue Feb 16, 2017
stylo: Implement 'align-self' and 'justify-self'

Stylo-only patch to match Gecko property support. Part of #15001. r? @Manishearth

<!-- 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/15576)
<!-- Reviewable:end -->
bors-servo added a commit that referenced this issue Feb 16, 2017
stylo: Implement 'align-self' and 'justify-self'

Stylo-only patch to match Gecko property support. Part of #15001. r? @Manishearth

<!-- 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/15576)
<!-- Reviewable:end -->
@mbrubeck
Copy link
Contributor

@mbrubeck mbrubeck commented Feb 16, 2017

With the latest pull requests, all these properties are supported in Stylo but some are still not supported or only partially-supported in Servo.

In Stylo they are now representated by bitflags that are shared with Gecko. If we want to use the same representation in Servo, we'll need to change the way these bitflags are implemented to not depend on Gecko bindings.

@mbrubeck mbrubeck removed their assignment Feb 16, 2017
bors-servo added a commit that referenced this issue Feb 19, 2017
stylo: Implement align-items and justify-items

Stylo-only patch to match Gecko property support. Part of #15001. r? @Manishearth

<!-- 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/15606)
<!-- Reviewable:end -->
@upsuper
Copy link
Member Author

@upsuper upsuper commented Mar 15, 2017

@mbrubeck Although parsing and serialization are implemented, it still lacks gecko glue, and thus gecko still cannot get the computed result of these properties.

@nox
Copy link
Member

@nox nox commented Apr 20, 2017

Could you describe a bit more what is there to do, in which files, with what code?

@nox
Copy link
Member

@nox nox commented May 6, 2017

I took care of what remained, I think.

@nox nox closed this May 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.