Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Unified Diff: third_party/WebKit/LayoutTests/fast/css/variables/longhand-pending-shorthand-substitution.html

Issue 2089593002: Add expansion of shorthands with custom properties to longhands using a pending substition value. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix dates and remove unnecessary comments Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698