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
layout: Improve the interaction between baseline-offset-of-last-line-in-flow logic and inline absolute hypothetical boxes. #13470
layout: Improve the interaction between baseline-offset-of-last-line-in-flow logic and inline absolute hypothetical boxes. #13470
Conversation
and an inline flow has no applicable lines, continue checking previous sibling flows. Improves Twitter by placing the favorite icon in the right place.
None | ||
} else { | ||
Some(last_line.bounds.start.b + last_line.bounds.size.block - | ||
last_line.inline_metrics.depth_below_baseline) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In cases like this:
Some text<br><span style="position:absolute">la la la</span>
I would expect the last line to be made up entirely of hypothetical boxes ("la la la"), so baseline_offset_of_last_line
should, in this case, return the baseline offset of "Some text", not None
, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh yes, of course. I'll fix.
determining the baseline offset of the last line. Improves Twitter by placing the favorite icon in the right place vertically.
e26d260
to
b021952
Compare
Addressed. r? @notriddle |
} | ||
} | ||
None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a massive improvement!
@bors-servo r+ |
📌 Commit b021952 has been approved by |
📌 Commit b021952 has been approved by |
…, r=notriddle layout: Improve the interaction between baseline-offset-of-last-line-in-flow logic and inline absolute hypothetical boxes. See commits for details. These changes place the heart icon on Twitter in the right place. r? @notriddle <!-- 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/13470) <!-- Reviewable:end -->
☀️ Test successful - arm32, arm64, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt, windows-dev |
See commits for details. These changes place the heart icon on Twitter in the right place.
r? @notriddle
This change is