Skip to content

Commit

Permalink
[text-decorations] Fix a crash for ::first-line
Browse files Browse the repository at this point in the history
This patch fixes a crash when `text-decoration` is applied to
`::first-line`.

Fixed: 345562934
Change-Id: If26564ca3dcb913236771ef4a634928485b68eca
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5677308
Reviewed-by: Kent Tamura <tkent@chromium.org>
Auto-Submit: Koji Ishii <kojii@chromium.org>
Commit-Queue: Koji Ishii <kojii@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1323270}
  • Loading branch information
kojiishi authored and chromium-wpt-export-bot committed Jul 4, 2024
1 parent 4993c18 commit cbcca1c
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<link rel="help" href="https://crbug.com/345562934">
<link rel="help" href="https://drafts.csswg.org/css-text-decor-3/#text-decoration-line-property">
<style>
.c7 {
text-decoration: underline;
appearance: button;
}

.c7::first-line {
text-decoration: overline;
}

.c15 {
text-decoration: line-through;
}
</style>
<dfn class="c7"><strong class="c15">test</strong></dfn>

0 comments on commit cbcca1c

Please sign in to comment.