gecko-dev/testing/web-platform/tests/css/css-flexbox/inline-flex-editing-with-updating-text-crash.html
Julie Jeongeun Kim 02aab1daae Bug 1630560 [wpt PR 22996] - [css-flexbox] Move inline-flex-crash.html to WPT, a=testonly
Automatic update from web-platform-tests
[css-flexbox] Move inline-flex-crash.html to WPT

This CL migrates this test out of
third_party/blink/web_tests/css3/filters and into the WPT-specific
directory, adding links to the relevant specs and a test assertion
describing its purpose and renames
inline-flex-editing-with-updating-text-crash.html

Bug: 1063749
Change-Id: I62ca5c5f28b14b6258eec90ce029289a70e7c14f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2152135
Reviewed-by: David Grogan <dgrogan@chromium.org>
Reviewed-by: Christian Biesinger <cbiesinger@chromium.org>
Reviewed-by: Robert Ma <robertma@chromium.org>
Commit-Queue: David Grogan <dgrogan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#759735}

--

wpt-commits: 08232b300874326409731035f3096b4ebf60a4ad
wpt-pr: 22996
2020-04-24 13:16:16 +00:00

20 lines
856 B
HTML

<!DOCTYPE html>
<title>CSS Flexbox: inline-flex layout with updating text and editing operations</title>
<link rel="help" href="https://drafts.csswg.org/css-flexbox/#flex-containers">
<link rel="help" href="https://bugs.webkit.org/show_bug.cgi?id=77772">
<link rel="help" href="https://crbug.com/118662">
<meta name="assert" content="This test ensures that inline-flex layout does not crash with updating text and editing operations.">
<style>#el0::first-letter, #el0:first-child { height: 10px; }</style>
<div id='container' contentEditable>
<a>
<img>
<div id="el0" style="display: inline-flex">
<pre></pre>
</div>
</a>
</div>
<script>
document.querySelector('pre').textContent = 'AA\u0605';
window.getSelection().selectAllChildren(document.getElementById('container'));
document.execCommand('FormatBlock', false, '<h1>');
</script>