Permalink
Browse files

Make all decendants of a link clickable too.

Consider an inline <a> containing some text and an image higher than
line-height. The text should be clickable on a zone as high as
line-height but the whole image shoud be clickable too.
  • Loading branch information...
1 parent 28e604e commit b1965a1eddbe33e7e759ca07a43d31b3ab8fd739 @SimonSapin SimonSapin committed Jun 14, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 weasyprint/css/properties.py
@@ -177,6 +177,9 @@
#
# text_decoration is not a really inherited, see
# http://www.w3.org/TR/CSS2/text.html#propdef-text-decoration
+#
+# link: click events normally bubble up to link ancestors
+# See http://lists.w3.org/Archives/Public/www-style/2012Jun/0315.html
INHERITED = set("""
border_collapse
border_spacing
@@ -206,6 +209,7 @@
word_spacing
image_rendering
+ link
""".split())
# Inherited but not applicable to print:

0 comments on commit b1965a1

Please sign in to comment.