Bug 1516494 [wpt PR 14677] - [css-text] Tab size lengths inherit as lengths, a=testonly
authorFlorian Rivoal <git@florian.rivoal.net>
Thu, 31 Jan 2019 15:16:58 +0000
changeset 456798 b5276efff284b99df71c2afa09af51a333c90816
parent 456797 9a7d7e56f85dcee80165fa63bbc0285f27049e84
child 456799 f3faeaaab43be8f37c4dff19380d9112196af768
push id111705
push userjames@hoppipolla.co.uk
push dateTue, 05 Feb 2019 18:07:20 +0000
treeherdermozilla-inbound@9592b19c9b09 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1516494, 14677
milestone67.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 1516494 [wpt PR 14677] - [css-text] Tab size lengths inherit as lengths, a=testonly Automatic update from web-platform-tests [css-text] Tab size lengths inherit as lengths -- wpt-commits: 900ad7284cb30dc3620e348a7eb5ff0f69dfd519 wpt-pr: 14677
testing/web-platform/tests/css/css-text/tab-size/tab-size-inheritance-001-ref.html
testing/web-platform/tests/css/css-text/tab-size/tab-size-inheritance-001.html
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/css-text/tab-size/tab-size-inheritance-001-ref.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Text level 3 Test reference</title>
+<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/">
+<style>
+div {
+  margin-left: 50px;
+  width: 20px;
+  height: 20px;
+  background: green;
+}
+</style>
+
+<p>Test passes if there is a green square and no red.
+<div></div>
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/css-text/tab-size/tab-size-inheritance-001.html
@@ -0,0 +1,40 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Text level 3 Test: tab-size in lengths inherit as absolute lengths</title>
+<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/">
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#tab-size-property">
+<link rel="match" href="tab-size-inheritance-001-ref.html">
+<meta name="assert" content="tab-size in lengths inherit as absolute lengths">
+<style>
+.test {
+  font-family: monospace;
+  font-size: 10px;
+  tab-size: 5em;
+}
+.test div {
+  white-space: pre;
+  font-size: 20px
+}
+.test span {
+  display: inline-block;
+  width: 20px;
+  height: 20px;
+  background: green;
+}
+.ref {
+  z-index: -1;
+  margin-left: 50px;
+  position: absolute;
+  width: 20px;
+  height: 20px;
+  background: red;
+
+  /* this is to avoid antialiasing effects at the edge */
+  box-sizing: border-box;
+  border: 2px solid white;
+}
+</style>
+
+<p>Test passes if there is a green square and no red.
+<div class=ref></div>
+<div class=test><div>&#x09;<span></span></div></div>