Bug 1452870 - Add WPT test for white space between adjacent elements in the same anonymous table cell. r=dholbert

MozReview-Commit-ID: D5zw2e4JUSy

--HG--
extra : rebase_source : 5e96b2961bdfa208ec9f4b667fd5c2b8811face3
This commit is contained in:
Cameron McCormack 2018-04-17 18:07:00 +10:00
parent 3f98737f56
commit c8b1d8c2cb
3 changed files with 45 additions and 1 deletions

View File

@ -127551,6 +127551,18 @@
{}
]
],
"css/css-tables/anonymous-table-ws-001.html": [
[
"/css/css-tables/anonymous-table-ws-001.html",
[
[
"/css/css-tables/anonymous-table-ws-001-ref.html",
"=="
]
],
{}
]
],
"css/css-tables/fixup-dynamic-anonymous-inline-table-001.html": [
[
"/css/css-tables/fixup-dynamic-anonymous-inline-table-001.html",
@ -252958,6 +252970,11 @@
{}
]
],
"css/css-tables/anonymous-table-ws-001-ref.html": [
[
{}
]
],
"css/css-tables/floats/floats-wrap-bfc-006b-ref.xht": [
[
{}
@ -490328,7 +490345,7 @@
"testharness"
],
"css/css-display/display-contents-details-001-ref.html": [
"bee1115524772a38c49bb756971477ff303c4ab0",
"e0007ee36bb388a8ca7bfb9845a77fec8503197e",
"support"
],
"css/css-display/display-contents-details-001.html": [
@ -512383,6 +512400,14 @@
"eccf10a7909e2358ac6425140e87c323ed786296",
"support"
],
"css/css-tables/anonymous-table-ws-001-ref.html": [
"90019ee8161096455c9266672a2a90ac203f6f23",
"support"
],
"css/css-tables/anonymous-table-ws-001.html": [
"88bb6c8ab9f30133f4b8a2f3628c4384b2f08f7e",
"reftest"
],
"css/css-tables/bounding-box-computation-1.html": [
"9402c84e354540f5b4e6dfb764cd199c55b30475",
"testharness"

View File

@ -0,0 +1,7 @@
<!DOCTYPE html>
<title>CSS Reference</title>
<style>
div { font: 16px monospace; }
</style>
<p>Test passes if there is a space between the "a" and "b".</p>
<div>a b</div>

View File

@ -0,0 +1,12 @@
<!DOCTYPE html>
<title>CSS Test: White space should not be removed between elements for which a single anonymous table cell is generated</title>
<link rel="author" title="Cameron McCormack" href="mailto:cam@mcc.id.au">
<link rel="match" href="anonymous-table-ws-001-ref.html">
<link rel="help" href="https://drafts.csswg.org/css-tables/#fixup-algorithm">
<style>
div { display: table; font: 16px monospace; }
</style>
<p>Test passes if there is a space between the "a" and "b".</p>
<div>
<span>a</span> <span>b</span>
</div>