Bug 1456713 [wpt PR 10625] - CSS-Flexbox: Add test for first-letter, a=testonly draft
authorGreg Whitworth <gregwhitworth@outlook.com>
Thu, 03 May 2018 22:24:01 +0000
changeset 791488 7feccba11bf0ac80ada685be93ca98bb8be6b02e
parent 791487 b76caf562e12410cd6c5213c607f525de2a77b00
child 791489 ce98143141f0fba7ea984337660efd5df57f51f2
push id108825
push userbmo:james@hoppipolla.co.uk
push dateFri, 04 May 2018 14:12:31 +0000
reviewerstestonly
bugs1456713, 10625
milestone61.0a1
Bug 1456713 [wpt PR 10625] - CSS-Flexbox: Add test for first-letter, a=testonly Automatic update from web-platform-testsMerge pull request #10625 from vfalconi/add_flexbox_first-letter_test CSS-Flexbox: Add test for first-letter -- wpt-commits: a6fdca312f0774eda1fcf6c524bc2de47941ede9 wpt-pr: 10625
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/css/css-flexbox/flexbox_first-letter.html
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -315230,16 +315230,22 @@
     ]
    ],
    "css/css-flexbox/display_inline-flex_exist.html": [
     [
      "/css/css-flexbox/display_inline-flex_exist.html",
      {}
     ]
    ],
+   "css/css-flexbox/flexbox_first-letter.html": [
+    [
+     "/css/css-flexbox/flexbox_first-letter.html",
+     {}
+    ]
+   ],
    "css/css-flexbox/getcomputedstyle/flexbox_computedstyle_align-content-center.html": [
     [
      "/css/css-flexbox/getcomputedstyle/flexbox_computedstyle_align-content-center.html",
      {}
     ]
    ],
    "css/css-flexbox/getcomputedstyle/flexbox_computedstyle_align-content-flex-end.html": [
     [
@@ -496927,16 +496933,20 @@
   "css/css-flexbox/flexbox_fbfc2-ref.html": [
    "34af791e2c410e4c77612831910190c5cdbf8f20",
    "support"
   ],
   "css/css-flexbox/flexbox_fbfc2.html": [
    "edbe32d6daa5527617fa7f0069c49616b1c1efec",
    "reftest"
   ],
+  "css/css-flexbox/flexbox_first-letter.html": [
+   "fbf5e6dd608d335ba902faefd21eae5ecb7c8387",
+   "testharness"
+  ],
   "css/css-flexbox/flexbox_first-line-ref.html": [
    "09592ea23ba4deef09d16b630c46611c528fe342",
    "support"
   ],
   "css/css-flexbox/flexbox_first-line.html": [
    "6acdb12035d56192708945dd73725de14221ef85",
    "reftest"
   ],
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/css-flexbox/flexbox_first-letter.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<title>flexbox | first-letter</title>
+<meta name="assert" content="This test is ensures that flexbox placement does not apply to ::first-letter psuedo-content">
+<link rel="author" title="Vince Falconi" href="vince.falconi@gmail.com">
+<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#placement">
+<style>
+  div { display: flex; }
+  div::first-letter { order: 2 }
+</style>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+
+<div>Triceratops</div>
+
+<script>
+  test(function() {
+    let order = getComputedStyle(document.querySelector('div'), '::first-letter').order;
+    assert_not_equals(order, '2');
+  });
+</script>