Commit d37409a1 authored by Koji Ishii's avatar Koji Ishii Committed by Commit Bot

Move a test for min-content for a soft-hyphen to wpt

This tests when the inline-size is [min-content]:
* A `­` produces a break opportunity when computing the
  min-content inline size.
* The hyphen character generated by `­` is included into
  the min-content inline size.

Originally developed in [CL:1111895].

[min-content]: https://www.w3.org/TR/css-sizing-3/#valdef-width-min-content
[CL:1111895] https://chromium-review.googlesource.com/c/chromium/src/+/1111895

Bug: 636993
Change-Id: Ib492b2db023a5169247ca00e5b745e42ec33d197
Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_layout_ng
Reviewed-on: https://chromium-review.googlesource.com/1113085
Commit-Queue: Christian Biesinger <cbiesinger@chromium.org>
Reviewed-by: default avatarChristian Biesinger <cbiesinger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#570066}
parent f70f003f
<!DOCTYPE html>
<title>The min-content inline size shold wrap at a soft-hyphen, and include its advance</title>
<link rel="help" href="https://www.w3.org/TR/css-sizing-3/#valdef-width-min-content">
<link rel="match" href="min-content-soft-hyphen-001-ref.html">
<style>
div {
width: min-content;
border: 5px blue solid;
}
</style>
<!--
This test relies on an undefined behavior and may fail if some
conditions do not stand.
The reference file of this test uses U+002D. Although `&shy;`
being rendered as U+002D is not defined, and most UA actually
use U+2010 when the font has a glyph for it, it looks like in
most common fonts the glyph for U+2010 and U+002D match, so
the use of U+002D seems to work in most cases.
-->
<div>0123&shy;45</div>
<!DOCTYPE html>
<style>
div {
width: min-content;
border: 5px blue solid;
}
</style>
<div>0123&shy;45</div>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment