-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TableFragmentation] Paint column backgrounds correctly when fragmented.
This correctly calculates the columns-rect when fragmentation is present. Instead of relying on the table-grid-rect - union the section fragments of the table. Typically this will be relatively fast, as tables typically only have one fragment, and one section as a child of that fragment. Bug: 1078927 Change-Id: I10c293ea0b5f307342efe83761fc4257b316848b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3632008 Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org> Reviewed-by: Philip Rogers <pdr@chromium.org> Reviewed-by: Morten Stenshorne <mstensho@chromium.org> Cr-Commit-Position: refs/heads/main@{#1001001}
- Loading branch information
Showing
8 changed files
with
241 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
...d_party/blink/web_tests/external/wpt/css/css-break/table/table-col-paint-htb-ltr-ref.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!DOCTYPE html> | ||
<style> | ||
.multicol { | ||
inline-size: 400px; | ||
block-size: 100px; | ||
columns: 4; | ||
column-fill: auto; | ||
gap: 0; | ||
} | ||
.pattern1 { | ||
background: repeating-linear-gradient(lime, lime 20px, blue 20px, blue 40px); | ||
} | ||
.pattern2 { | ||
background: repeating-linear-gradient(orange, orange 30px, dodgerblue 30px, dodgerblue 60px); | ||
} | ||
</style> | ||
<div class="multicol"> | ||
<div style="position: relative; inline-size: 100%; block-size: 400px;"> | ||
<div style="position: absolute; inset-block-start: 0; inline-size: 100%; background: red; block-size: 50px;"></div> | ||
<div class="pattern1" style="position: absolute; inset-block-start: 60px; inset-inline-start: 10px; inline-size: calc(50% - 15px); block-size: 255px;"></div> | ||
<div class="pattern2" style="position: absolute; inset-block-start: 60px; inset-inline-start: 55px; inline-size: calc(50% - 15px); block-size: 255px;"></div> | ||
<div style="position: absolute; inset-block-start: 170px; inline-size: 100%; block-size: 10px; background: white;"></div> | ||
<div style="position: absolute; inset-block-end: 0; inline-size: 100%; background: red; block-size: 75px;"></div> | ||
</div> | ||
</div> |
35 changes: 35 additions & 0 deletions
35
third_party/blink/web_tests/external/wpt/css/css-break/table/table-col-paint-htb-ltr.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<!DOCTYPE html> | ||
<link rel="match" href="table-col-paint-htb-ltr-ref.html"> | ||
<link rel="help" href="https://drafts.csswg.org/css-tables-3/#fragmentation"> | ||
<link rel="help" href="https://drafts.csswg.org/css-tables-3/#rendering"> | ||
<style> | ||
.multicol { | ||
inline-size: 400px; | ||
block-size: 100px; | ||
columns: 4; | ||
column-fill: auto; | ||
gap: 0; | ||
} | ||
.pattern1 { | ||
background: repeating-linear-gradient(lime, lime 20px, blue 20px, blue 40px); | ||
} | ||
.pattern2 { | ||
background: repeating-linear-gradient(orange, orange 30px, dodgerblue 30px, dodgerblue 60px); | ||
} | ||
</style> | ||
<div class="multicol"> | ||
<table style="border-spacing: 10px; inline-size: 100%;"> | ||
<caption style="background: red; block-size: 50px;"></caption> | ||
<col class="pattern1"></col> | ||
<col class="pattern2"></col> | ||
<tr style="block-size: 110px;"> | ||
<td></td> | ||
<td></td> | ||
</tr> | ||
<tr style="block-size: 135px;"> | ||
<td></td> | ||
<td></td> | ||
</tr> | ||
<caption style="caption-side: bottom; background: red; block-size: 75px;"></caption> | ||
</table> | ||
</div> |
29 changes: 29 additions & 0 deletions
29
...d_party/blink/web_tests/external/wpt/css/css-break/table/table-col-paint-vlr-rtl-ref.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<!DOCTYPE html> | ||
<style> | ||
body { | ||
writing-mode: vertical-lr; | ||
direction: rtl; | ||
} | ||
.multicol { | ||
inline-size: 400px; | ||
block-size: 100px; | ||
columns: 4; | ||
column-fill: auto; | ||
gap: 0; | ||
} | ||
.pattern1 { | ||
background: repeating-linear-gradient(to right, lime, lime 20px, blue 20px, blue 40px); | ||
} | ||
.pattern2 { | ||
background: repeating-linear-gradient(to right, orange, orange 30px, dodgerblue 30px, dodgerblue 60px); | ||
} | ||
</style> | ||
<div class="multicol"> | ||
<div style="position: relative; inline-size: 100%; block-size: 400px;"> | ||
<div style="position: absolute; inset-block-start: 0; inline-size: 100%; background: red; block-size: 50px;"></div> | ||
<div class="pattern1" style="position: absolute; inset-block-start: 60px; inset-inline-start: 10px; inline-size: calc(50% - 15px); block-size: 255px;"></div> | ||
<div class="pattern2" style="position: absolute; inset-block-start: 60px; inset-inline-start: 55px; inline-size: calc(50% - 15px); block-size: 255px;"></div> | ||
<div style="position: absolute; inset-block-start: 170px; inline-size: 100%; block-size: 10px; background: white;"></div> | ||
<div style="position: absolute; inset-block-end: 0; inline-size: 100%; background: red; block-size: 75px;"></div> | ||
</div> | ||
</div> |
39 changes: 39 additions & 0 deletions
39
third_party/blink/web_tests/external/wpt/css/css-break/table/table-col-paint-vlr-rtl.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<!DOCTYPE html> | ||
<link rel="match" href="table-col-paint-vlr-rtl-ref.html"> | ||
<link rel="help" href="https://drafts.csswg.org/css-tables-3/#fragmentation"> | ||
<link rel="help" href="https://drafts.csswg.org/css-tables-3/#rendering"> | ||
<style> | ||
body { | ||
writing-mode: vertical-lr; | ||
direction: rtl; | ||
} | ||
.multicol { | ||
inline-size: 400px; | ||
block-size: 100px; | ||
columns: 4; | ||
column-fill: auto; | ||
gap: 0; | ||
} | ||
.pattern1 { | ||
background: repeating-linear-gradient(to right,lime, lime 20px, blue 20px, blue 40px); | ||
} | ||
.pattern2 { | ||
background: repeating-linear-gradient(to right, orange, orange 30px, dodgerblue 30px, dodgerblue 60px); | ||
} | ||
</style> | ||
<div class="multicol"> | ||
<table style="border-spacing: 10px; inline-size: 100%;"> | ||
<caption style="background: red; block-size: 50px;"></caption> | ||
<col class="pattern1"></col> | ||
<col class="pattern2"></col> | ||
<tr style="block-size: 110px;"> | ||
<td></td> | ||
<td></td> | ||
</tr> | ||
<tr style="block-size: 135px;"> | ||
<td></td> | ||
<td></td> | ||
</tr> | ||
<caption style="caption-side: bottom; background: red; block-size: 75px;"></caption> | ||
</table> | ||
</div> |
29 changes: 29 additions & 0 deletions
29
...d_party/blink/web_tests/external/wpt/css/css-break/table/table-col-paint-vrl-rtl-ref.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<!DOCTYPE html> | ||
<style> | ||
body { | ||
writing-mode: vertical-rl; | ||
direction: rtl; | ||
} | ||
.multicol { | ||
inline-size: 400px; | ||
block-size: 100px; | ||
columns: 4; | ||
column-fill: auto; | ||
gap: 0; | ||
} | ||
.pattern1 { | ||
background: repeating-linear-gradient(to left, lime, lime 20px, blue 20px, blue 40px); | ||
} | ||
.pattern2 { | ||
background: repeating-linear-gradient(to left, orange, orange 30px, dodgerblue 30px, dodgerblue 60px); | ||
} | ||
</style> | ||
<div class="multicol"> | ||
<div style="position: relative; inline-size: 100%; block-size: 400px;"> | ||
<div style="position: absolute; inset-block-start: 0; inline-size: 100%; background: red; block-size: 50px;"></div> | ||
<div class="pattern1" style="position: absolute; inset-block-start: 60px; inset-inline-start: 10px; inline-size: calc(50% - 15px); block-size: 255px;"></div> | ||
<div class="pattern2" style="position: absolute; inset-block-start: 60px; inset-inline-start: 55px; inline-size: calc(50% - 15px); block-size: 255px;"></div> | ||
<div style="position: absolute; inset-block-start: 170px; inline-size: 100%; block-size: 10px; background: white;"></div> | ||
<div style="position: absolute; inset-block-end: 0; inline-size: 100%; background: red; block-size: 75px;"></div> | ||
</div> | ||
</div> |
39 changes: 39 additions & 0 deletions
39
third_party/blink/web_tests/external/wpt/css/css-break/table/table-col-paint-vrl-rtl.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<!DOCTYPE html> | ||
<link rel="match" href="table-col-paint-vrl-rtl-ref.html"> | ||
<link rel="help" href="https://drafts.csswg.org/css-tables-3/#fragmentation"> | ||
<link rel="help" href="https://drafts.csswg.org/css-tables-3/#rendering"> | ||
<style> | ||
body { | ||
writing-mode: vertical-rl; | ||
direction: rtl; | ||
} | ||
.multicol { | ||
inline-size: 400px; | ||
block-size: 100px; | ||
columns: 4; | ||
column-fill: auto; | ||
gap: 0; | ||
} | ||
.pattern1 { | ||
background: repeating-linear-gradient(to left,lime, lime 20px, blue 20px, blue 40px); | ||
} | ||
.pattern2 { | ||
background: repeating-linear-gradient(to left, orange, orange 30px, dodgerblue 30px, dodgerblue 60px); | ||
} | ||
</style> | ||
<div class="multicol"> | ||
<table style="border-spacing: 10px; inline-size: 100%;"> | ||
<caption style="background: red; block-size: 50px;"></caption> | ||
<col class="pattern1"></col> | ||
<col class="pattern2"></col> | ||
<tr style="block-size: 110px;"> | ||
<td></td> | ||
<td></td> | ||
</tr> | ||
<tr style="block-size: 135px;"> | ||
<td></td> | ||
<td></td> | ||
</tr> | ||
<caption style="caption-side: bottom; background: red; block-size: 75px;"></caption> | ||
</table> | ||
</div> |