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

Unified Diff: third_party/WebKit/LayoutTests/fast/css/variables/computed-style.html

Issue 2080723003: CSS Variable #0000ee is read as #\30 000ee (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated as per review 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/computed-style.html
diff --git a/third_party/WebKit/LayoutTests/fast/css/variables/computed-style.html b/third_party/WebKit/LayoutTests/fast/css/variables/computed-style.html
index da64b01340e95a8671c29baaf06b5645bc1c8f18..586d2ce09d8132b340713af55991fda0a0b7f0cf 100644
--- a/third_party/WebKit/LayoutTests/fast/css/variables/computed-style.html
+++ b/third_party/WebKit/LayoutTests/fast/css/variables/computed-style.html
@@ -5,6 +5,7 @@
<style>
#color {
--color-value: blue;
+ --accordionColor:#0000ee;
background-color: var(--color-value);
}
@@ -42,6 +43,10 @@ test(function() {
}, 'background-color property, color value');
test(function() {
+ assert_equals(getComputedStyle(color).getPropertyValue('--accordionColor'), '#0000ee');
+}, 'property value, accordionColor');
+
+test(function() {
assert_equals(getComputedStyle(float_pixel).borderWidth, '0px');
}, 'border-width property, border-style = none');
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/CSSMarkup.h » ('j') | third_party/WebKit/Source/core/css/CSSMarkup.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698