Skip to content

Commit 92bb4ac

Browse files
lilleschromium-wpt-export-bot
authored andcommitted
Do not override kReattach for ::first-letter.
We incorrectly did an override with kForce for ::first-letter recalc when we were already recalculating style for re-attachment (kReattach). This caused crashes in FirstLetterPseudoElement::DidRecalcStyle. Bug: 853621, 853476, 853471, 853470, 853433, 853411 Change-Id: Id34e6bdbaaeb3b4933a3e963b68f0bffcda0e40e Reviewed-on: https://chromium-review.googlesource.com/1104176 Commit-Queue: Rune Lillesveen <[email protected]> Reviewed-by: Anders Ruud <[email protected]> Cr-Commit-Position: refs/heads/master@{#568006}
1 parent a6c9e70 commit 92bb4ac

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<!DOCTYPE html>
2+
<span style="color:green">This text should be green.</span>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!DOCTYPE html>
2+
<title>CSS Test: ::first-letter stops applying to element becoming inline.</title>
3+
<link rel="author" title="Rune Lillesveen" href="mailto:[email protected]">
4+
<link rel="match" href="first-letter-block-to-inline-ref.html">
5+
<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#first-letter-pseudo">
6+
<style>
7+
#outer.block::first-letter { color: red }
8+
#outer.block { display: block }
9+
</style>
10+
<span id="outer" class="block">
11+
<span id="inner">This text should be green.</span>
12+
</span>
13+
<script>
14+
outer.offsetTop;
15+
outer.className = "";
16+
inner.style.color = "green";
17+
</script>

0 commit comments

Comments
 (0)