Commit c7efa85
fix: before paragraph spacing inside table cells (#1842)
* fix: before paragraph spacing inside table cells
* fix: remove extra code in layout bridge
* fix: extend test cases and remove unused code
* fix: failing test
* fix: consider padding for the first block in line
* fix: add helper/ improve test coverage
* refactor: clean up DX and add spacing.after test coverage
- Export mock-data constants directly, removing unnecessary _EXPORT aliases
- Use cleaner (block as ParagraphBlock) cast pattern in layout-bridge
- Add spacing.after absorption test for selectionToRects (two-paragraph cell)
---------
Co-authored-by: Caio Pizzol <caio@harbourshare.com>1 parent 5f54480 commit c7efa85
10 files changed
Lines changed: 857 additions & 42 deletions
File tree
- packages/layout-engine
- contracts/src
- layout-bridge
- src
- test
- measuring/dom/src
- painters/dom/src/table
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
1695 | 1695 | | |
1696 | 1696 | | |
1697 | 1697 | | |
1698 | | - | |
1699 | | - | |
1700 | | - | |
1701 | | - | |
| 1698 | + | |
| 1699 | + | |
| 1700 | + | |
| 1701 | + | |
| 1702 | + | |
| 1703 | + | |
1702 | 1704 | | |
1703 | 1705 | | |
1704 | 1706 | | |
| |||
1718 | 1720 | | |
1719 | 1721 | | |
1720 | 1722 | | |
1721 | | - | |
| 1723 | + | |
1722 | 1724 | | |
1723 | 1725 | | |
1724 | 1726 | | |
| |||
1731 | 1733 | | |
1732 | 1734 | | |
1733 | 1735 | | |
| 1736 | + | |
| 1737 | + | |
| 1738 | + | |
| 1739 | + | |
| 1740 | + | |
1734 | 1741 | | |
1735 | 1742 | | |
1736 | 1743 | | |
| |||
1768 | 1775 | | |
1769 | 1776 | | |
1770 | 1777 | | |
1771 | | - | |
| 1778 | + | |
| 1779 | + | |
1772 | 1780 | | |
1773 | 1781 | | |
1774 | 1782 | | |
| |||
0 commit comments