aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2017-12-01 18:10:03 +0100
committerEmilio Cobos Álvarez <emilio@crisal.io>2017-12-01 18:13:30 +0100
commita350a86e6ff89f12f356c9f1a426c06a56402e54 (patch)
treeac9a053a2a7e7a9657f6b185893b32bac376897c /tests
parent9da7663e29af1a00980c3e7f30f8e0ae4760979d (diff)
downloadservo-a350a86e6ff89f12f356c9f1a426c06a56402e54.tar.gz
servo-a350a86e6ff89f12f356c9f1a426c06a56402e54.zip
style: Test calc() percentage position in serialization.
The spec issue was resolved.
Diffstat (limited to 'tests')
-rw-r--r--tests/wpt/mozilla/meta/MANIFEST.json2
-rw-r--r--tests/wpt/mozilla/tests/css/calc-serialization.html9
2 files changed, 3 insertions, 8 deletions
diff --git a/tests/wpt/mozilla/meta/MANIFEST.json b/tests/wpt/mozilla/meta/MANIFEST.json
index a52e0f9feb4..436141455ed 100644
--- a/tests/wpt/mozilla/meta/MANIFEST.json
+++ b/tests/wpt/mozilla/meta/MANIFEST.json
@@ -61697,7 +61697,7 @@
"testharness"
],
"css/calc-serialization.html": [
- "628597eb36bf21a1ec982c7f6935ee7949c62044",
+ "d0bcbd402cb78e704dabc7f1665d40ba163e30eb",
"testharness"
],
"css/canvas_as_block_element_a.html": [
diff --git a/tests/wpt/mozilla/tests/css/calc-serialization.html b/tests/wpt/mozilla/tests/css/calc-serialization.html
index b423557a1b8..f92de7338d3 100644
--- a/tests/wpt/mozilla/tests/css/calc-serialization.html
+++ b/tests/wpt/mozilla/tests/css/calc-serialization.html
@@ -3,20 +3,15 @@
<title>CSS Values and Units: calc() serialization.</title>
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@mozilla.com">
<link rel="help" href="https://drafts.csswg.org/css-values/#calc-serialize">
+<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/1731">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
-<!-- FIXME(emilio): Upstream when spec stops being under discussion -->
<div id="content"></div>
<script>
-
-// NOTE(emilio): This intentionally doesn't test for order of percentages
-// because of:
-//
-// https://github.com/w3c/csswg-drafts/issues/1731
-
test(function() {
// specified -> expected
var values = {
+ "calc(10px + 1vmin + 10%)": "calc(10% + 10px + 1vmin)",
"calc(10px + 1vmin)": "calc(10px + 1vmin)",
"calc(10px + 1em)": "calc(1em + 10px)",
"calc(1vmin - 10px)": "calc(-10px + 1vmin)",