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

Improve containing block creation for position:absolute flows #18123

Merged
merged 1 commit into from Aug 18, 2017

Conversation

@mrobinson
Copy link
Member

mrobinson commented Aug 17, 2017

Instead of only promoting flows with positioned fragments to containing
blocks, also do this for flows which have the transform, perspective or
filter properties set. This is what the spec requires and also fixes
some failing tests. It will allow us to stop creating stacking contexts
for overflow:hidden and overflow:scroll flows.

Fixes #18091.


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix #18091 (github issue number if applicable).
  • There are tests for these changes OR
  • These changes do not require tests because _____

This change is Reviewable

@mrobinson mrobinson requested review from mbrubeck and pcwalton Aug 17, 2017
@highfive
Copy link

highfive commented Aug 17, 2017

Heads up! This PR modifies the following files:

  • @emilio: components/layout/fragment.rs, components/layout/block.rs, components/layout/flow.rs
@mrobinson mrobinson force-pushed the mrobinson:absolute-containing-blocks branch from 88ec02a to d0b0641 Aug 17, 2017

//fn is_absolute_containing_block(&self) -> bool {
// self.block_flow.is_absolute_containing_block()
//}

This comment has been minimized.

Copy link
@pcwalton

pcwalton Aug 17, 2017

Contributor

Why comment out?

This comment has been minimized.

Copy link
@mrobinson

mrobinson Aug 17, 2017

Author Member

Sorry. I accidentally left that in. I'll remove it and update the branch.

Instead of only promoting flows with positioned fragments to containing
blocks, also do this for flows which have the transform, perspective or
filter properties set. This is what the spec requires and also fixes
some failing tests. It will allow us to stop creating stacking contexts
for overflow:hidden and overflow:scroll flows.

Fixes #18091.
@mrobinson mrobinson force-pushed the mrobinson:absolute-containing-blocks branch from d0b0641 to 57704b0 Aug 17, 2017
@mrobinson
Copy link
Member Author

mrobinson commented Aug 17, 2017

The latest version of the branch should remove the commented out code and fix the manifest file.

Copy link
Contributor

pcwalton left a comment

r+

Always nice to clean up this code :)

@jdm
Copy link
Member

jdm commented Aug 17, 2017

@bors-servo: r=pcwalton

@bors-servo
Copy link
Contributor

bors-servo commented Aug 17, 2017

📌 Commit 57704b0 has been approved by pcwalton

@highfive highfive assigned pcwalton and unassigned glennw Aug 17, 2017
@bors-servo
Copy link
Contributor

bors-servo commented Aug 18, 2017

Testing commit 57704b0 with merge 1260753...

bors-servo added a commit that referenced this pull request Aug 18, 2017
Improve containing block creation for position:absolute flows

Instead of only promoting flows with positioned fragments to containing
blocks, also do this for flows which have the transform, perspective or
filter properties set. This is what the spec requires and also fixes
some failing tests. It will allow us to stop creating stacking contexts
for overflow:hidden and overflow:scroll flows.

Fixes #18091.

<!-- 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: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #18091  (github issue number if applicable).

<!-- Either: -->
- [x] There are tests for these changes OR
- [ ] These changes do not require tests because _____

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

bors-servo commented Aug 18, 2017

@bors-servo bors-servo merged commit 57704b0 into servo:master Aug 18, 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
@mrobinson mrobinson deleted the mrobinson:absolute-containing-blocks branch Aug 18, 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.

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