Skip to content

Commit 3410c19

Browse files
kojiishichromium-wpt-export-bot
authored andcommitted
[text-decorations] Fix first-line when there's a paint layer
An inline box with a paint layer uses `ScopedInlineBoxAncestors` to synchronize decoration boxes instead of `ScopedInlineItem`. This code path doesn't need to save decorating boxes, and thus `saved_decorating_boxes_` is `nullptr`. Fixes for `::first-line` in crrev.com/c/4545917 and crrev.com/c/4493872 assumed `saved_decorating_boxes_` exists. To reduce the complexity, this patch changes `saved_decorating_boxes_` to be required, and let `ScopedInlineBoxAncestors` to provide it. Fixed: 406109047 Change-Id: I0683a666250867f8c4c9fa9271c0d300e38cabf5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6546415 Reviewed-by: Philip Rogers <[email protected]> Auto-Submit: Koji Ishii <[email protected]> Commit-Queue: Philip Rogers <[email protected]> Cr-Commit-Position: refs/heads/main@{#1460175}
1 parent ad1bb91 commit 3410c19

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<!DOCTYPE html>
2+
<link rel="help" href="http://crbug.com/406109047">
3+
<style type="text/css">
4+
.c2 {
5+
float: right;
6+
text-decoration: overline;
7+
}
8+
9+
.c2::first-letter {
10+
vertical-align: super;
11+
opacity: 0.1;
12+
}
13+
14+
.c2::first-line {
15+
text-decoration: overline;
16+
}
17+
</style>
18+
<script>
19+
let element = document.createElement('q');
20+
element.setAttribute('class', 'c2');
21+
document.documentElement.appendChild(element);
22+
let text_node = document.createTextNode('appxgrxebpwykansiejjshzsznwgqyelwkrlpjsmtdhhfnywteevgcricqxp');
23+
window.requestAnimationFrame(function() {
24+
element.appendChild(text_node);
25+
});
26+
</script>

0 commit comments

Comments
 (0)