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

Unified Diff: third_party/WebKit/LayoutTests/svg/css/attribute-selector.svg

Issue 2490393002: Match camelCased SVG attributes selectors in html documents. (Closed)
Patch Set: Rebased and fixed return statement Created 4 years, 1 month 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/LayoutTests/svg/css/attribute-selector-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/svg/css/attribute-selector.svg
diff --git a/third_party/WebKit/LayoutTests/svg/css/attribute-selector.svg b/third_party/WebKit/LayoutTests/svg/css/attribute-selector.svg
new file mode 100644
index 0000000000000000000000000000000000000000..db30b43b7e806beb668445d465b78f3a27e38fae
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/svg/css/attribute-selector.svg
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
+<svg version="1.1" viewBox="0 0 800 600" xmlns="http://www.w3.org/2000/svg" width="600" height="500">
+<style>
+ [viewBox] { background-color: green; }
+ [viewbox], [VIEWBOX] { background-color: red; }
+</style>
+<text y="20">You should see the word PASS below and the background should be green.</text>
+<text y="40" id="result">FAIL</text>
+<script>
+ if (window.testRunner)
+ testRunner.dumpAsText();
+
+ if (getComputedStyle(document.querySelector("svg")).backgroundColor == "rgb(0, 128, 0)")
+ document.getElementById("result").firstChild.data = "PASS";
+</script>
+</svg>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/svg/css/attribute-selector-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698