Repository navigation
Inline split fixes#12699 - #12760
Inline split fixes#12699#12760
Conversation
|
The thing I'm concerned about is that the test is not fully adequate. The sizes, even in em are font-dependant and the line breakage can happen in different places. |
| }; | ||
|
|
||
| let mut remaining_inline_size = max_inline_size; | ||
| let mut remaining_inline_size = max_inline_size - self.border_padding.inline_start_end(); |
There was a problem hiding this comment.
Disregard previous comment, I was very confused. Sorry about that.
|
Just had a couple of review nits to address and then this looks good. Thanks! |
|
Don't worry about the test; as long as it splits in the right place on at least one of our bots it will catch any regressions. |
|
Couldn't you use Ahem, the test font? |
|
@bors-servo try |
Inline split fixes#12699 <!-- Please describe your changes on the following line: --> Fix fragment splitting algorithm to set FIRST/LAST_FRAGMENT_OF_ELEMENT flag correctly, account for border_padding for border_box and set zero border_padding between for new fragments. --- <!-- 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 #12699 (github issue number if applicable). <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- 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/12760) <!-- Reviewable:end -->
|
💔 Test failed - linux-rel |
|
|
About your question, you can ask the bot for a particular reviewer using r? @notriddle |
…x and reset *_FRAGMENT_OF_ELEMENT flag for splitted fragments
e68e263 to
18438ef
Compare
|
@notriddle I've changed the tests, looking at other test, using Ahem font. Is this version looking better. I've also changed the div width to get the same result. |
| <meta content="ahem dom" name="flags"> | ||
| <style> | ||
| div { | ||
| width: 9em; |
There was a problem hiding this comment.
Make the div 20px Ahem font. That way the em size is consistent everywhere.
|
Other than that, looks awesome! Fix it, then r=me. |
18438ef to
98df0bf
Compare
|
Fixed |
|
@bors-servo: r=notriddle |
|
📌 Commit 98df0bf has been approved by |
|
@jdm argh... I should finally put the bot commands list somewhere in the bookmarks... Thanks. |
|
@splav Since I can't delegate, you wouldn't have been able to do it anyway. |
|
@notriddle OK, I see. |
|
⌛ Testing commit 98df0bf with merge 7ad120a... |
Inline split fixes#12699 <!-- Please describe your changes on the following line: --> Fix fragment splitting algorithm to set FIRST/LAST_FRAGMENT_OF_ELEMENT flag correctly, account for border_padding for border_box and set zero border_padding between for new fragments. --- <!-- 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 #12699 (github issue number if applicable). <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- 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/12760) <!-- Reviewable:end -->
|
💔 Test failed - mac-rel-css |
|
|
Platform-specific pass, probably because of Core Fonts. Just put something like this in: File: |
98df0bf to
9c8b3a6
Compare
|
@bors-servo: delegate=notriddle |
|
✌️ @notriddle can now approve this pull request |
|
@bors-servo r+ Thanks, @jdm! |
|
📌 Commit 9c8b3a6 has been approved by |
|
📌 Commit 9c8b3a6 has been approved by |
Inline split fixes#12699 <!-- Please describe your changes on the following line: --> Fix fragment splitting algorithm to set FIRST/LAST_FRAGMENT_OF_ELEMENT flag correctly, account for border_padding for border_box and set zero border_padding between for new fragments. --- <!-- 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 #12699 (github issue number if applicable). <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- 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/12760) <!-- Reviewable:end -->
|
☀️ Test successful - arm32, arm64, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt, windows-dev |
|
Awesome work here @splav, thanks! :) |
Fix fragment splitting algorithm to set FIRST/LAST_FRAGMENT_OF_ELEMENT flag correctly, account for border_padding for border_box and set zero border_padding between for new fragments.
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is