| Index: third_party/WebKit/LayoutTests/fast/css/variables/longhand-pending-shorthand-substitution.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/css/variables/longhand-pending-shorthand-substitution.html b/third_party/WebKit/LayoutTests/fast/css/variables/longhand-pending-shorthand-substitution.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e6755b4135eee5072db66c47e6444aed746d7d6e
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/fast/css/variables/longhand-pending-shorthand-substitution.html
|
| @@ -0,0 +1,26 @@
|
| +<!DOCTYPE html>
|
| +<script src="../../../resources/testharness.js"></script>
|
| +<script src="../../../resources/testharnessreport.js"></script>
|
| +<style>
|
| + div {
|
| + --height: 30px;
|
| + --size: 12px;
|
| + --size-and-height: var(--size)/var(--height);
|
| + }
|
| + div {
|
| + font: italic bold var(--size-and-height) serif, sans-serif;
|
| + }
|
| +</style>
|
| +
|
| +<div id='testElem'></div>
|
| +<script>
|
| +
|
| +test(function() {
|
| + var te = getComputedStyle(testElem);
|
| + assert_equals(te.fontSize, '12px');
|
| + assert_equals(te.lineHeight, '30px');
|
| + assert_equals(te.fontStyle, 'italic');
|
| + assert_equals(te.fontWeight, 'bold');
|
| + assert_equals(te.fontFamily, 'serif, sans-serif');
|
| +}, "shorthand substitution works properly.");
|
| +</script>
|
|
|