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

Unified Diff: LayoutTests/fast/css/recalc-optgroup-inherit.html

Issue 165433002: Recalc OPTION and OPTGROUP from recalcOwnStyle. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Removed unnecessary branch. Created 6 years, 10 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 | LayoutTests/fast/css/recalc-optgroup-inherit-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/css/recalc-optgroup-inherit.html
diff --git a/LayoutTests/fast/css/recalc-optgroup-inherit.html b/LayoutTests/fast/css/recalc-optgroup-inherit.html
new file mode 100644
index 0000000000000000000000000000000000000000..90be4abfbcefaff2f4efef7fe434f6cf3a7d5e94
--- /dev/null
+++ b/LayoutTests/fast/css/recalc-optgroup-inherit.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<script src="../../resources/js-test.js"></script>
+<select id="s">
+ <optgroup id="g" style="color:red">
+ <option id="o">Green</option>
+ </optgroup>
+</select>
+<script>
+description("Check that OPTION inherits the modified OPTGROUP color.");
+
+document.body.offsetTop; // force style recalc.
+document.getElementById("g").style.color = "green";
+shouldBe("getComputedStyle(document.getElementById('o'), null).color", "'rgb(0, 128, 0)'");
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/css/recalc-optgroup-inherit-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698