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

Place floats in layout 2020, but don't flow text around the floats yet. #27415

Closed
wants to merge 1 commit into from

Conversation

@pcwalton
Copy link
Contributor

pcwalton commented Jul 27, 2020

This commit puts floats behind the layout.floats.enabled pref, because of the
following issues and unimplemented features:

  • Inline formatting contexts don't take floats into account, so text doesn't
    flow around the floats yet.

  • Non-floated block formatting contexts don't take floats into account, so BFCs
    can overlap floats.

  • The clear property is only respected on floats, not on other elements; i.e.
    regular boxes can't clear past floats yet.

  • Block formatting contexts that contain floats don't expand vertically to
    contain all the floats. That is, floats can stick out the bottom of BFCs,
    contra spec.

  • Floats don't respect negative margins yet.

  • Floats are painted in the same order as regular content, contra spec.

r? @Manishearth


  • ./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 ___
@highfive
Copy link

highfive commented Jul 27, 2020

Heads up! This PR modifies the following files:

  • @emilio: components/style/properties/longhands/box.mako.rs, components/style/values/computed/length.rs
@pcwalton pcwalton force-pushed the pcwalton:floats-2020 branch 2 times, most recently from e231e1a to 7fb155a Jul 27, 2020
@bors-servo
Copy link
Contributor

bors-servo commented Jul 27, 2020

The latest upstream changes (presumably #27399) made this pull request unmergeable. Please resolve the merge conflicts.

@pcwalton pcwalton force-pushed the pcwalton:floats-2020 branch 2 times, most recently from 8d10eb1 to cba8088 Jul 27, 2020
@bors-servo
Copy link
Contributor

bors-servo commented Jul 28, 2020

The latest upstream changes (presumably #27422) made this pull request unmergeable. Please resolve the merge conflicts.

Copy link
Member

Manishearth left a comment

r=me

@pcwalton pcwalton force-pushed the pcwalton:floats-2020 branch from cba8088 to 3ece952 Jul 29, 2020
@pcwalton
Copy link
Contributor Author

pcwalton commented Jul 29, 2020

@bors-servo try=wpt-2020

bors-servo added a commit that referenced this pull request Jul 29, 2020
Place floats in layout 2020, but don't flow text around the floats yet.

This commit puts floats behind the `layout.floats.enabled` pref, because of the
following issues and unimplemented features:

* Inline formatting contexts don't take floats into account, so text doesn't
  flow around the floats yet.

* Non-floated block formatting contexts don't take floats into account, so BFCs
  can overlap floats.

* The `clear` property is only respected on floats, not on other elements; i.e.
  regular boxes can't clear past floats yet.

* Block formatting contexts that contain floats don't expand vertically to
  contain all the floats. That is, floats can stick out the bottom of BFCs,
  contra spec.

* Floats don't respect negative margins yet.

* Floats are painted in the same order as regular content, contra spec.

r? @Manishearth

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

<!-- Either: -->
- [ ] 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. -->
@bors-servo
Copy link
Contributor

bors-servo commented Jul 29, 2020

Trying commit 3ece952 with merge b58c358...

@bors-servo
Copy link
Contributor

bors-servo commented Jul 29, 2020

💔 Test failed - status-taskcluster

@pcwalton pcwalton force-pushed the pcwalton:floats-2020 branch from 3ece952 to 0d9ea6c Jul 29, 2020
@pcwalton
Copy link
Contributor Author

pcwalton commented Jul 29, 2020

@bors-servo try=wpt-2020

@bors-servo
Copy link
Contributor

bors-servo commented Jul 29, 2020

Trying commit 0d9ea6c with merge 5751f59...

bors-servo added a commit that referenced this pull request Jul 29, 2020
Place floats in layout 2020, but don't flow text around the floats yet.

This commit puts floats behind the `layout.floats.enabled` pref, because of the
following issues and unimplemented features:

* Inline formatting contexts don't take floats into account, so text doesn't
  flow around the floats yet.

* Non-floated block formatting contexts don't take floats into account, so BFCs
  can overlap floats.

* The `clear` property is only respected on floats, not on other elements; i.e.
  regular boxes can't clear past floats yet.

* Block formatting contexts that contain floats don't expand vertically to
  contain all the floats. That is, floats can stick out the bottom of BFCs,
  contra spec.

* Floats don't respect negative margins yet.

* Floats are painted in the same order as regular content, contra spec.

r? @Manishearth

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

<!-- Either: -->
- [ ] 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. -->
@bors-servo
Copy link
Contributor

bors-servo commented Jul 29, 2020

💔 Test failed - status-taskcluster

@pcwalton pcwalton force-pushed the pcwalton:floats-2020 branch from 0d9ea6c to a2e4279 Jul 29, 2020
@pcwalton
Copy link
Contributor Author

pcwalton commented Jul 29, 2020

@bors-servo try=wpt-2020

bors-servo added a commit that referenced this pull request Jul 29, 2020
Place floats in layout 2020, but don't flow text around the floats yet.

This commit puts floats behind the `layout.floats.enabled` pref, because of the
following issues and unimplemented features:

* Inline formatting contexts don't take floats into account, so text doesn't
  flow around the floats yet.

* Non-floated block formatting contexts don't take floats into account, so BFCs
  can overlap floats.

* The `clear` property is only respected on floats, not on other elements; i.e.
  regular boxes can't clear past floats yet.

* Block formatting contexts that contain floats don't expand vertically to
  contain all the floats. That is, floats can stick out the bottom of BFCs,
  contra spec.

* Floats don't respect negative margins yet.

* Floats are painted in the same order as regular content, contra spec.

r? @Manishearth

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

<!-- Either: -->
- [ ] 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. -->
@bors-servo
Copy link
Contributor

bors-servo commented Jul 29, 2020

Trying commit a2e4279 with merge 06ff19e...

@bors-servo
Copy link
Contributor

bors-servo commented Jul 30, 2020

💔 Test failed - status-taskcluster

@pcwalton pcwalton force-pushed the pcwalton:floats-2020 branch from a2e4279 to ea7b0f2 Jul 31, 2020
@pcwalton pcwalton force-pushed the pcwalton:floats-2020 branch from ea7b0f2 to e21e197 Jul 31, 2020
@pcwalton
Copy link
Contributor Author

pcwalton commented Jul 31, 2020

@bors-servo try=wpt-2020

@bors-servo
Copy link
Contributor

bors-servo commented Jul 31, 2020

Trying commit e21e197 with merge 8f14f1c...

bors-servo added a commit that referenced this pull request Jul 31, 2020
Place floats in layout 2020, but don't flow text around the floats yet.

This commit puts floats behind the `layout.floats.enabled` pref, because of the
following issues and unimplemented features:

* Inline formatting contexts don't take floats into account, so text doesn't
  flow around the floats yet.

* Non-floated block formatting contexts don't take floats into account, so BFCs
  can overlap floats.

* The `clear` property is only respected on floats, not on other elements; i.e.
  regular boxes can't clear past floats yet.

* Block formatting contexts that contain floats don't expand vertically to
  contain all the floats. That is, floats can stick out the bottom of BFCs,
  contra spec.

* Floats don't respect negative margins yet.

* Floats are painted in the same order as regular content, contra spec.

r? @Manishearth

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

<!-- Either: -->
- [ ] 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. -->
@@ -1,4 +1,2 @@
[localeCompare.html]
bug: https://github.com/servo/servo/issues/25802
[localeCompare should return the same as other browsers, even though it's implementation-dependent]
expected: FAIL

This comment has been minimized.

@jdm

jdm Jul 31, 2020

Member

This needs to be reverted.

@@ -1,4 +1,4 @@
[navigator.html]
[navigator.platform mac]
[navigator.platform linux]

This comment has been minimized.

@jdm

jdm Jul 31, 2020

Member

This needs to be reverted.

@@ -0,0 +1,19 @@
[promise.html]
[Resolve callback gets argument]

This comment has been minimized.

@jdm

jdm Jul 31, 2020

Member

These failures are very surprising.

@bors-servo
Copy link
Contributor

bors-servo commented Jul 31, 2020

💔 Test failed - status-taskcluster

This commit puts floats behind the `layout.floats.enabled` pref, because of the
following issues and unimplemented features:

* Inline formatting contexts don't take floats into account, so text doesn't
  flow around the floats yet.

* Non-floated block formatting contexts don't take floats into account, so BFCs
  can overlap floats.

* The `clear` property is only respected on floats, not on other elements; i.e.
  regular boxes can't clear past floats yet.

* Block formatting contexts that contain floats don't expand vertically to
  contain all the floats. That is, floats can stick out the bottom of BFCs,
  contra spec.

* Floats don't respect negative margins yet.

* Floats are painted in the same order as regular content, contra spec.
@pcwalton pcwalton force-pushed the pcwalton:floats-2020 branch from e21e197 to ca10b91 Jul 31, 2020
@pcwalton
Copy link
Contributor Author

pcwalton commented Jul 31, 2020

@bors-servo try=wpt-2020

@bors-servo
Copy link
Contributor

bors-servo commented Jul 31, 2020

Trying commit ca10b91 with merge 9b75aa7...

bors-servo added a commit that referenced this pull request Jul 31, 2020
Place floats in layout 2020, but don't flow text around the floats yet.

This commit puts floats behind the `layout.floats.enabled` pref, because of the
following issues and unimplemented features:

* Inline formatting contexts don't take floats into account, so text doesn't
  flow around the floats yet.

* Non-floated block formatting contexts don't take floats into account, so BFCs
  can overlap floats.

* The `clear` property is only respected on floats, not on other elements; i.e.
  regular boxes can't clear past floats yet.

* Block formatting contexts that contain floats don't expand vertically to
  contain all the floats. That is, floats can stick out the bottom of BFCs,
  contra spec.

* Floats don't respect negative margins yet.

* Floats are painted in the same order as regular content, contra spec.

r? @Manishearth

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

<!-- Either: -->
- [ ] 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. -->
@bors-servo
Copy link
Contributor

bors-servo commented Jul 31, 2020

☀️ Test successful - status-taskcluster
State: approved= try=True

@pcwalton pcwalton closed this Aug 7, 2020
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.