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

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 testcase 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/CSSMarkup.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..f2ace3b35304c6dee3d4390faba6953383f8a91b 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,8 @@
<style>
#color {
--color-value: blue;
+ --accordionColor:#0000ee;
+ --foo:#1\.;
background-color: var(--color-value);
}
@@ -42,6 +44,11 @@ test(function() {
}, 'background-color property, color value');
test(function() {
+ assert_equals(getComputedStyle(color).getPropertyValue('--accordionColor'), '#0000ee');
+ assert_equals(getComputedStyle(color).getPropertyValue('--foo'), '#1\\.');
+}, 'property value, accordionColor, foo');
+
+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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698