summaryrefslogtreecommitdiff
path: root/testsuite/reftests/opacity-initial.css
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2014-09-06 06:41:05 +0200
committerBenjamin Otte <otte@redhat.com>2014-09-07 01:57:10 +0200
commit9a8a4a8b1479d004d1fb65a9ac6714318129bdad (patch)
tree6c2a7e741eaa589f23bd506b2a5c9f75179cebe5 /testsuite/reftests/opacity-initial.css
parent95959ef470e00e0f0c2f6a3684c3693cd0fb3df3 (diff)
downloadgtk+-9a8a4a8b1479d004d1fb65a9ac6714318129bdad.tar.gz
widget: Don't assume opacity is 100%
... just because there is no style context instantiated yet. Instead, instantiate a style context during realize() and ask it. Fixes problems with dim labels not being dimmed on first show. Testcase included. https://bugzilla.gnome.org/show_bug.cgi?id=735240
Diffstat (limited to 'testsuite/reftests/opacity-initial.css')
-rw-r--r--testsuite/reftests/opacity-initial.css3
1 files changed, 3 insertions, 0 deletions
diff --git a/testsuite/reftests/opacity-initial.css b/testsuite/reftests/opacity-initial.css
new file mode 100644
index 0000000000..611a8cd421
--- /dev/null
+++ b/testsuite/reftests/opacity-initial.css
@@ -0,0 +1,3 @@
+GtkLabel {
+ opacity: 0;
+}