Commit 231c063a authored by Abhijeet Kandalkar's avatar Abhijeet Kandalkar Committed by Commit Bot

[css-grid] Migrate whitespace-in-grid-item.html test to WPT

Migrate this test out of t_p/blink/web_tests/fast/css-grid-layout and
into the WPT-specific directory, adding links to the relevant specs
and a test assertion describing its purpose.

Bug: 1063749, 767015
Change-Id: I45374678b3f35b7f41d99e94445a372d5e90d232
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2145529
Commit-Queue: Abhijeet Kandalkar <abhijeet@igalia.com>
Reviewed-by: default avatarManuel Rego <rego@igalia.com>
Reviewed-by: default avatarChristian Biesinger <cbiesinger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#759272}
parent 623e063e
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<link href="resources/grid.css" rel="stylesheet"> <link href="/css/support/grid.css" rel="stylesheet">
<style> <style>
.a { .item {
height: 100%; height: 100%;
width: 30px; width: 30px;
background: salmon; background: salmon;
} }
</style> </style>
<body> <body>
<p>This test passes if it has the same output than the reference. As spec states that child text runs containing only white space should not rendered (just as if its text nodes were display:none).</p>
<div class="grid"> <div class="grid">
<div class="a"></div> <div class="item"></div>
</div> </div>
</body> </body>
</html> </html>
<!DOCTYPE html>
<html>
<title>CSS Grid : Whitespace in grid item</title>
<link rel="author" title="Christian Biesinger" href="mailto:cbiesinger@chromium.org">
<link rel="help" href="https://drafts.csswg.org/css-grid/#grid-items">
<link rel="match" href="whitespace-in-grid-item-001-ref.html">
<link rel="help" href="https://codereview.chromium.org/16888008">
<meta name="assert" content="Grid items shouldn't be created for white spaces."/>
<link href="/css/support/grid.css" rel="stylesheet">
<style>
.grid {
white-space: pre;
}
.item {
height: 100%;
width: 30px;
background: salmon;
}
</style>
<body>
<p>This test passes if it has the same output than the reference. As spec states that child text runs containing only white space should not rendered (just as if its text nodes were display:none).</p>
<div class="grid">
<div class="item"></div> &#9;
</div>
</body>
</html>
<!DOCTYPE html>
<html>
<link href="resources/grid.css" rel="stylesheet">
<style>
.grid {
white-space: pre;
}
.a {
height: 100%;
width: 30px;
background: salmon;
}
</style>
<body>
<div class="grid">
<div class="a"></div> &#9;
</div>
</body>
</html>
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