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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/invalidation/in-range-pseudo.html

Issue 2764023003: Updating :in-range should not rely on validation. (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../../resources/testharness.js"></script>
3 <script src="../../../resources/testharnessreport.js"></script>
4 <style>
5 #sibling { background-color: red }
6 input:in-range + #sibling { background-color: green }
7 </style>
8 <div>
9 <input id="input" type="number" min="1" max="10" value="20">
10 <span id="sibling">This text should have a green background</span>
11 </div>
12 <script>
13 test(() => {
14 assert_equals(getComputedStyle(sibling).backgroundColor, "rgb(255, 0, 0)",
15 "Sibling background initially red.");
16 input.setAttribute("value", "5");
17 assert_equals(getComputedStyle(sibling).backgroundColor, "rgb(0, 128, 0)",
18 "Sibling green after input value becomes in range.");
19 }, "Check that input.setAttribute('value') affects :in-range");
20 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698