summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/css/variables/reference-with-no-closing-parenthesis.html
diff options
context:
space:
mode:
authorleviw <leviw@chromium.org>2015-11-02 14:20:53 -0800
committerCommit bot <commit-bot@chromium.org>2015-11-02 22:21:47 +0000
commit9c1158564a3da22aff4d6519ca876492d8c74105 (patch)
treeeaf91df46347f3fea65253390435c6775a6fdbde /third_party/WebKit/LayoutTests/fast/css/variables/reference-with-no-closing-parenthesis.html
parent855a754c04bc580c6d4db3b63f63c97cf4c51b10 (diff)
downloadchromium_src-9c1158564a3da22aff4d6519ca876492d8c74105.zip
chromium_src-9c1158564a3da22aff4d6519ca876492d8c74105.tar.gz
chromium_src-9c1158564a3da22aff4d6519ca876492d8c74105.tar.bz2
CSS Custom Properties (Variables)
Support for CSS Custom Properties level 1: https://drafts.csswg.org/css-variables/ When enabled, the CSS parser falls back on checking for variable references instead of just clearing for most parser errors (see CSSParserValueList::checkForVariableReferencesOrDestroyAndClear). In these cases, CSS parser tokens are copied into a CSSVariableData object which also copies and concatenates the strings referenced by the tokens into a single backing string. CSSVariableParser handles validating the token ranges pass the relatively permissive parsing specifications for custom properties. An additional applyMatchedProperties phase is added to handle resolving variables before high/low priority properties so they can use the resolved values from variable references. This should be gated on the presence of variable references in the document. CSSVariableResolver handles validating and resolving variable references in both custom and standard properties. Notable pieces left to implement: - support pending-substitution values for shorthands. - support for custom properties in the CSSOM (not specced). - optimize style recalc for changing properties. The included tests (save one timloh suggested) are imported from Mozilla's test suite. Intent to implement: https://groups.google.com/a/chromium.org/forum/#!msg/blink-dev/vZ0am_AdxxE/9MD8cDitXxMJ BUG=465126 Review URL: https://codereview.chromium.org/1192983003 Cr-Commit-Position: refs/heads/master@{#357448}
Diffstat (limited to 'third_party/WebKit/LayoutTests/fast/css/variables/reference-with-no-closing-parenthesis.html')
-rw-r--r--third_party/WebKit/LayoutTests/fast/css/variables/reference-with-no-closing-parenthesis.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/third_party/WebKit/LayoutTests/fast/css/variables/reference-with-no-closing-parenthesis.html b/third_party/WebKit/LayoutTests/fast/css/variables/reference-with-no-closing-parenthesis.html
new file mode 100644
index 0000000..7bfbdc4
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/css/variables/reference-with-no-closing-parenthesis.html
@@ -0,0 +1,3 @@
+<!DOCTYPE html>
+<style>div { color: var(--a, green</style>
+<div>This text should be green.</div> \ No newline at end of file