Update popover css docs
authorMatthias Clasen <mclasen@redhat.com>
Sun, 14 Feb 2021 16:14:23 +0000 (11:14 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 14 Feb 2021 16:14:23 +0000 (11:14 -0500)
Mention that shadows are now possible.

gtk/gtkpopover.c

index bf9be247099d28ccdf650b3cef8456c92f600e31..b00cdd3827b1de0cfca0beb962401d49fbb848e7 100644 (file)
  * to differentiate from plain popovers.
  *
  * When styling a popover directly, the popover node should usually
- * not have any background.
+ * not have any background. The visible part of the popover can have a shadow.
+ * To specify it in CSS, set the box-shadow of the contents node.
  *
  * Note that, in order to accomplish appropriate arrow visuals, #GtkPopover uses
  * custom drawing for the arrow node. This makes it possible for the arrow to
  * change its shape dynamically, but it also limits the possibilities of styling
  * it using CSS. In particular, the arrow gets drawn over the content node's
- * border so they look like one shape, which means that the border-width of
- * the content node and the arrow node should be the same. The arrow also does
+ * shadow border so they look like one shape, which means that the border width
+ * of the content node and the arrow node should be the same. The arrow also does
  * not support any border shape other than solid, no border-radius, only one
  * border width (border-bottom-width is used) and no box-shadow.
  */