Bug 1452870 - Add WPT test for white space between adjacent elements in the same anonymous table cell. r=dholbert draft
authorCameron McCormack <cam@mcc.id.au>
Tue, 17 Apr 2018 18:07:00 +1000
changeset 783975 2f8071e8a891303050c62372f124f5a3b4872a9a
parent 783258 0ceabd10aac2272e83850e278c7876f32dbae42e
push id106828
push userbmo:cam@mcc.id.au
push dateTue, 17 Apr 2018 23:22:05 +0000
reviewersdholbert
bugs1452870
milestone61.0a1
Bug 1452870 - Add WPT test for white space between adjacent elements in the same anonymous table cell. r=dholbert MozReview-Commit-ID: D5zw2e4JUSy
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/css/css-tables/anonymous-table-ws-001-ref.html
testing/web-platform/tests/css/css-tables/anonymous-table-ws-001.html
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -127546,16 +127546,28 @@
       [
        "/css/css-style-attr/reference/ref-green-on-green.xht",
        "=="
       ]
      ],
      {}
     ]
    ],
+   "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",
      [
       [
        "/css/reference/ref-filled-green-100px-square-only.html",
        "=="
       ]
@@ -252953,16 +252965,21 @@
      {}
     ]
    ],
    "css/css-tables/OWNERS": [
     [
      {}
     ]
    ],
+   "css/css-tables/anonymous-table-ws-001-ref.html": [
+    [
+     {}
+    ]
+   ],
    "css/css-tables/floats/floats-wrap-bfc-006b-ref.xht": [
     [
      {}
     ]
    ],
    "css/css-tables/floats/floats-wrap-bfc-006c-ref.xht": [
     [
      {}
@@ -490323,17 +490340,17 @@
    "b00b06641c653af5ab91a6156a726ff2d4ea9b00",
    "reftest"
   ],
   "css/css-display/display-contents-computed-style.html": [
    "bf523ee19c5ff481a3f91f8eb124eb83301738c5",
    "testharness"
   ],
   "css/css-display/display-contents-details-001-ref.html": [
-   "bee1115524772a38c49bb756971477ff303c4ab0",
+   "e0007ee36bb388a8ca7bfb9845a77fec8503197e",
    "support"
   ],
   "css/css-display/display-contents-details-001.html": [
    "7eb2da8b522cddb5f66f9957fa113dabfbfa84af",
    "reftest"
   ],
   "css/css-display/display-contents-details.html": [
    "d1f62084c5adc3ba7a86306704f804d4cbe0428c",
@@ -512378,16 +512395,24 @@
   "css/css-syntax/ident-three-code-points.html": [
    "7ce37259edc09da4e36f40c026ac76f33d829720",
    "testharness"
   ],
   "css/css-tables/OWNERS": [
    "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"
   ],
   "css/css-tables/bounding-box-computation-2.html": [
    "303da96792f188f997d71dcb07d5881b7a797581",
    "testharness"
   ],
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/css-tables/anonymous-table-ws-001-ref.html
@@ -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>
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/css-tables/anonymous-table-ws-001.html
@@ -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>