Bug 1495552 [wpt PR 13293] - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=157788, a=testonly
authoryouennf <youennf@users.noreply.github.com>
Fri, 05 Oct 2018 14:29:05 +0000
changeset 495832 ae0c31bd0b0f02b2631ea83fff8a14eacc97e5e0
parent 495831 dabfef752bbde656f1cd1cbc26ad0eae5690c13e
child 495833 af3fd1f92628de7ffad9caa96bee1d5b8e750662
push id9984
push userffxbld-merge
push dateMon, 15 Oct 2018 21:07:35 +0000
treeherdermozilla-beta@183d27ea8570 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1495552, 13293, 157788
milestone64.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1495552 [wpt PR 13293] - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=157788, a=testonly Automatic update from web-platform-testsMerge pull request #13293 from zcorpan/wpt-export-for-webkit-157788 WebKit export of https://bugs.webkit.org/show_bug.cgi?id=157788 -- wpt-commits: d085f7c8ac8e0fa51bc4d136251d41c8771ec5b6 wpt-pr: 13293
testing/web-platform/tests/html/rendering/non-replaced-elements/flow-content-0/form-margin-quirk.html
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/html/rendering/non-replaced-elements/flow-content-0/form-margin-quirk.html
@@ -0,0 +1,20 @@
+<!-- quirks -->
+<title>form margin quirk</title>
+<script src=/resources/testharness.js></script>
+<script src=/resources/testharnessreport.js></script>
+<style>
+form { writing-mode: vertical-lr; }
+#ref { margin: 0 1em 0 0; }
+</style>
+<form id=form></form>
+<div id=ref></div>
+<script>
+test(() => {
+  const formStyle = getComputedStyle(document.getElementById('form'));
+  const refStyle = getComputedStyle(document.getElementById('ref'));
+  assert_equals(formStyle.marginTop, refStyle.marginTop, 'marginTop');
+  assert_equals(formStyle.marginRight, refStyle.marginRight, 'marginRight');
+  assert_equals(formStyle.marginBottom, refStyle.marginBottom, 'marginBottom');
+  assert_equals(formStyle.marginLeft, refStyle.marginLeft, 'marginLeft');
+});
+</script>