Commit 84e76538 authored by Javier Fernandez's avatar Javier Fernandez Committed by Commit Bot

Import 'line-break: anywhere ' tests

Since we are already working on the implementation of this feature, we
can unskip the import of the related tests. We can skip them from being
run while the feature is not ready.

Bug: 720205
Change-Id: I15d7e9b4ca7a12877c13dc35b85335fd6d56a7b0
Reviewed-on: https://chromium-review.googlesource.com/c/1495974
Commit-Queue: Javier Fernandez <jfernandez@igalia.com>
Reviewed-by: default avatarManuel Rego <rego@igalia.com>
Cr-Commit-Position: refs/heads/master@{#636763}
parent 8eb8e09f
......@@ -2152,6 +2152,10 @@ crbug.com/626703 [ Win ] external/wpt/css/css-text/word-break/word-break-normal-
crbug.com/626703 external/wpt/css/css-text/word-break/word-break-normal-tdd-000.html [ Failure ]
crbug.com/40634 external/wpt/css/css-text/white-space/trailing-space-before-br-001.html [ Failure ]
# The 'line-break: anywhere' feature is not implemented yet
crbug.com/720205 external/wpt/css/css-text/line-break/line-break-anywhere-001.html [ Skip ]
crbug.com/720205 external/wpt/css/css-text/line-break/line-break-anywhere-002.html [ Skip ]
crbug.com/666657 external/wpt/css/css-text-decor/text-emphasis-color-001.xht [ Failure ]
crbug.com/666657 external/wpt/css/css-text-decor/text-emphasis-position-above-left-001.xht [ Failure ]
crbug.com/666657 external/wpt/css/css-text-decor/text-emphasis-position-above-left-002.xht [ Failure ]
......
......@@ -177,8 +177,6 @@ external/wpt/html/semantics/embedded-content/media-elements/loading-the-media-re
# CSS Text Level 3
# There are no active plans to implement these features at this point.
external/wpt/css/css-text/hanging-punctuation [ Skip ]
external/wpt/css/css-text/line-break/line-break-anywhere-001.html [ Skip ]
external/wpt/css/css-text/line-break/line-break-anywhere-002.html [ Skip ]
external/wpt/css/css-text/text-align/text-align-justifyall-001.html [ Skip ]
external/wpt/css/css-text/text-align/text-align-justifyall-002.html [ Skip ]
external/wpt/css/css-text/text-align/text-align-justifyall-003.html [ Skip ]
......
<!DOCTYPE html>
<html lang=en>
<meta charset="utf-8">
<title>CSS Text Test: line-break: anywhere</title>
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-line-break-anywhere">
<link rel="match" href="reference/line-break-anywhere-001-ref.html">
<meta name="flags" content="">
<meta name="assert" content="line-break:anywhere puts a soft wrap opportunity around every typographic character unit,
including around punctuation or in the middle of words,
disregarding any prohibition against line breaks introduced by characters with the GL, JW, or ZJW character class.">
<style>
#green {
position: absolute;
background: green;
font-family: monospace;
width: 1ch;
height: 20em;
}
#test {
width: 1ch;
line-height: 1;
color: red;
font-family: monospace;
line-break: anywhere;
}
</style>
<p>Test passes if there is a green rectangle below and no red.</p>
<div id=green></div>
<!-- with line breaks everywhere, none of the following characters should stick out from under the green div -->
<div id=test>aa-a.a)a,a)a&nbsp;a&#xfeff;a&#x2060;a&#x200d;a・a</div>
<!DOCTYPE html>
<html lang=en>
<meta charset="utf-8">
<title>CSS Text Test: line-break: anywhere</title>
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-line-break-anywhere">
<link rel="match" href="reference/line-break-anywhere-001-ref.html">
<meta name="flags" content="">
<meta name="assert" content="line-break:anywhere puts a soft wrap opportunity betwwen letters in the middle of words and hyphenation is not applied.">
<style>
#green {
position: absolute;
background: green;
font-family: monospace;
width: 1ch;
height: 20em;
}
#test {
width: 1ch;
line-height: 1;
color: red;
font-family: monospace;
line-break: anywhere;
hyphens: auto;
}
</style>
<p>Test passes if there is a green rectangle below and no red.</p>
<div id=green></div>
<!-- Hyphenation, if it occurs, will produce a hyphen that sticks out from under the green rectangle.
Also, if the words fails to be wrapped between all letters, letters will also stick out from under the green rectangle -->
<div id=test>no hyphenation</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