Repository navigation
layout: Fix float speculation with percentage inline sizes, rewrite vertical alignment, fix inline block ascent/descent computation, and fix absolute inline-block hypothetical boxes. - #10691
Conversation
|
@bors-servo: try |
layout: Various fixes for floats. (NOT READY YET; DO NOT MERGE)
|
|
||
| self.base.intrinsic_inline_sizes = computation.finish(); | ||
| /*if self.base.flags.is_float() { | ||
| println!("intrinsic inline sizes for float={:?}", self.base.intrinsic_inline_sizes); |
There was a problem hiding this comment.
Heh, printf-based debugging is the best kind of debugging ;-)
Jokes aside, great work trying to take all this floats bugs down!
|
💔 Test failed - linux-rel |
Andd... A bunch of failing tests in EDIT: Moved them into a gist EDIT 2: Actually there are a few passes: |
| // it has nonzero inline-size and that causes problems. | ||
| let placement_inline_size = if first_fragment.can_split() { | ||
| Au(0) | ||
| first_fragment.minimum_splittable_inline_size() |
|
r? @mbrubeck |
|
@bors-servo: try |
layout: Various fixes for floats. (NOT READY YET; DO NOT MERGE) <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10691) <!-- Reviewable:end -->
|
💔 Test failed - mac-rel-wpt |
|
@bors-servo: try |
layout: Rewrite the vertical alignment code to integrate properly with float placement. (NOT READY YET; DO NOT MERGE) <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10691) <!-- Reviewable:end -->
|
💔 Test failed - mac-rel-wpt |
|
Nevermind, I didn't realize that #10809 hadn't merged yet. Ignore the previous comment. |
|
☔ The latest upstream changes (presumably #10809) made this pull request unmergeable. Please resolve the merge conflicts. |
|
@bors-servo: try |
|
⌛ Trying commit 9189fa0 with merge 007597f... |
|
@bors-servo: try |
|
💔 Test failed - linux-rel |
|
|
The non-reference button is offset downwards by 1 or 2 pixels, according to the reftest analyzer. |
|
☔ The latest upstream changes (presumably #10979) made this pull request unmergeable. Please resolve the merge conflicts. |
inline sizes are nonzero. This is a bit of a hack.
baselines when aligning inline fragments per CSS 2.1 § 10.8.1.
This makes the line breaker determine the final block positions of each line rather than doing it in a separate pass afterward. Not only does this simplify the code, it makes `vertical-align` and float placement interact properly.
`position: absolute` inline per CSS 2.1 § 10.3.7.
information about each float.
properly push text down.
It depends on the vertical alignment of button text, which is a spec bug.
|
@bors-servo: r=mbrubeck Just updated a test (the test fails on Gecko without this fix) |
|
📌 Commit dacc482 has been approved by |
|
☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt, windows |
|
regression: #11063 |
This change is