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

Side by Side Diff: LayoutTests/fast/css/attribute-selector-case-insensitive.html

Issue 252683011: Add support for case-insensitive attribute value selectors (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add runtime flag; fix selector serializing Created 6 years, 7 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2
3 <style type="text/css">
4 div { border: 2px solid red; }
5 div[attr1="LOWER"] { border-top-color: yellow }
6 div[attr1="lower"] { border-top-color: green }
7 div[attr2="upper"] { border-right-color: yellow }
8 div[attr2="UPPER"] { border-right-color: green }
9 div[attr3="lower" i] { border-bottom-color: green }
10 div[attr4="UPPER" i] { border-left-color: green }
11 </style>
12
13 <div id="element" attr1="lower" attr2="UPPER" attr3="LOWER" attr4="upper">
14 PASS if this element's border is all green, not red.
15 </div>
16
17 <script src="../../resources/js-test.js"></script>
18 <script>
19 if (window.testRunner)
20 testRunner.dumpAsText();
21
22 var element = document.getElementById("element");
23 shouldBe("window.getComputedStyle(element).borderTopColor", "'rgb(0, 128, 0)'" );
24 shouldBe("window.getComputedStyle(element).borderRightColor", "'rgb(0, 128, 0) '");
25 shouldBe("window.getComputedStyle(element).borderBottomColor", "'rgb(0, 128, 0 )'");
26 shouldBe("window.getComputedStyle(element).borderLeftColor", "'rgb(0, 128, 0)' ");
27 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/css/attribute-selector-case-insensitive-expected.txt » ('j') | Source/core/css/CSSSelector.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698