style: Fix ex computation with more than one operand.

This commit is contained in:
Emilio Cobos Álvarez 2017-10-10 18:10:55 +02:00
parent 826352ab4c
commit 90ee40f43f
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
4 changed files with 56 additions and 1 deletions

View file

@ -0,0 +1,11 @@
<!doctype html>
<title>CSS Test Reference</title>
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
<style>
div {
width: 2ex;
height: 2ex;
background: green;
}
</style>
<div></div>

View file

@ -0,0 +1,19 @@
<!doctype html>
<meta charset="utf-8">
<title>CSS Test: Calc expression using multiple ex operands</title>
<link rel="match" href="ex-calc-expression-001-ref.html">
<link rel="help" href="https://drafts.csswg.org/css-values/#funcdef-calc">
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
<style>
/*
This is a regression test for:
https://github.com/servo/servo/pull/18807
https://bugzilla.mozilla.org/show_bug.cgi?id=1407092
*/
div {
width: calc(1ex + 1ex);
height: calc(1ex + 1ex);
background: green;
}
</style>
<div></div>