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 writing-mode display fixup to check the right condition. #16123

Merged
merged 1 commit into from Mar 24, 2017

Conversation

@bzbarsky
Copy link
Contributor

bzbarsky commented Mar 24, 2017

It should be checking the value of the 'writing-mode' property, not the value of
the "writing mode" concept. The latter is influenced by other properties like
'direction' and whatnot. That was causing this code to convert inlines to
inline-blocks if they just had a different direction from their parent, which is
not correct


  • [] ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix #__ (github issue number if applicable).
  • There are tests for these changes OR
  • These changes do not require tests because there are tons of tests on the Gecko side.

This change is Reviewable

It should be checking the value of the 'writing-mode' property, not the value of
the "writing mode" concept.  The latter is influenced by other properties like
'direction' and whatnot.  That was causing this code to convert inlines to
inline-blocks if they just had a different direction from their parent, which is
not correct
@highfive
Copy link

highfive commented Mar 24, 2017

Heads up! This PR modifies the following files:

  • @bholley: components/style/properties/properties.mako.rs
  • @emilio: components/style/properties/properties.mako.rs
@highfive
Copy link

highfive commented Mar 24, 2017

warning Warning warning

  • These commits modify style code, but no tests are modified. Please consider adding a test!
@emilio
Copy link
Member

emilio commented Mar 24, 2017

@bors-servo delegate+

It'd be nice to modify the test case introduced in #16044 to also test this, but since it's tested also in Gecko, feel free to just r=me if you don't have the time for it.

@bors-servo
Copy link
Contributor

bors-servo commented Mar 24, 2017

✌️ @bzbarsky can now approve this pull request

@bzbarsky
Copy link
Contributor Author

bzbarsky commented Mar 24, 2017

@bors-servo r=emilio

@bors-servo
Copy link
Contributor

bors-servo commented Mar 24, 2017

📌 Commit 1625263 has been approved by emilio

@highfive highfive assigned emilio and unassigned glennw Mar 24, 2017
@bzbarsky
Copy link
Contributor Author

bzbarsky commented Mar 24, 2017

@bors-servo r=emilio p=10

@bors-servo
Copy link
Contributor

bors-servo commented Mar 24, 2017

💡 This pull request was already approved, no need to approve it again.

  • There's another pull request that is currently being tested, blocking this pull request: #16122
@bors-servo
Copy link
Contributor

bors-servo commented Mar 24, 2017

📌 Commit 1625263 has been approved by emilio

@bors-servo
Copy link
Contributor

bors-servo commented Mar 24, 2017

Testing commit 1625263 with merge d93151e...

bors-servo added a commit that referenced this pull request Mar 24, 2017
Fix writing-mode display fixup to check the right condition.

It should be checking the value of the 'writing-mode' property, not the value of
the "writing mode" concept.  The latter is influenced by other properties like
'direction' and whatnot.  That was causing this code to convert inlines to
inline-blocks if they just had a different direction from their parent, which is
not correct

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because there are tons of tests on the Gecko side.

<!-- 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/16123)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Mar 24, 2017

☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css, mac-rel-wpt1, mac-rel-wpt2, windows-msvc-dev
Approved by: emilio
Pushing d93151e to master...

@bors-servo bors-servo merged commit 1625263 into servo:master Mar 24, 2017
3 checks passed
3 checks passed
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
@bzbarsky bzbarsky mentioned this pull request Mar 24, 2017
4 of 5 tasks complete
@bzbarsky bzbarsky deleted the bzbarsky:writing-mode-confusion branch May 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

5 participants
You can’t perform that action at this time.