fune/testing/web-platform/tests/css/css-flexbox/inline-flex-editing-crash.html
Julie Jeongeun Kim 2d173f4c0a Bug 1630574 [wpt PR 22998] - [css-flexbox] Move inline-flex-crash2.html to WPT, a=testonly
Automatic update from web-platform-tests
[css-flexbox] Move inline-flex-crash2.html to WPT

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

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

--

wpt-commits: ffbec9e0390c2e33609e9f35717a1601dacdb2a1
wpt-pr: 22998
2020-04-24 13:16:24 +00:00

19 lines
770 B
HTML

<!DOCTYPE html>
<title>CSS Flexbox: inline-flex layout with 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 editing operations.">
<style>#el0::first-letter, #el0:first-child { height: 100px; }</style>
<div id='container' contentEditable>
<a>
<img>
<div id="el0" style="display: inline-flex">
<pre>AAAAA</pre>
</div>
</a>
</div>
<script>
window.getSelection().selectAllChildren(document.getElementById('container'));
document.execCommand('FormatBlock', false, '<h5>');
</script>