зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1523562 [wpt PR 14805] - [LayoutNG] Fix crash when inserting element inside a :first-line pseudo., a=testonly
Automatic update from web-platform-tests [LayoutNG] Fix crash when inserting element inside a :first-line pseudo. We were incorrectly trying to Split a LayoutInline as we didn't have this check. In LayoutNG we create an anonymous LayoutInline wrapper for the first-line pseudo which we weren't accounting for. See: https://cs.chromium.org/chromium/src/third_party/blink/renderer/core/layout/layout_block_flow.cc?l=3175 Bug: 920583 Change-Id: I2736a65eae4c12f9d25a51bb17949818c495d87c Reviewed-on: https://chromium-review.googlesource.com/c/1405884 Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org> Commit-Queue: Emil A Eklund <eae@chromium.org> Reviewed-by: Emil A Eklund <eae@chromium.org> Reviewed-by: Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/master@{#621834} -- wpt-commits: a302d8c671834920f0eba92133047bc0c85f18dd wpt-pr: 14805
This commit is contained in:
Родитель
e49c1d0cd6
Коммит
86917914fd
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE html>
|
||||
<title>Should not crash when inserting an element inside a :first-line pseudo.</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/">
|
||||
<style>
|
||||
p:first-line, p:first-letter {
|
||||
font-family: serif;
|
||||
}
|
||||
</style>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<p id=target>
|
||||
test<sup>sup</sup>
|
||||
</p>
|
||||
<script>
|
||||
test(()=>{
|
||||
const target = document.getElementById('target');
|
||||
target.insertBefore(document.createElement('img'), target.lastChild)
|
||||
});
|
||||
</script>
|
Загрузка…
Ссылка в новой задаче