CSS style to make HTML5 <wbr> work on IE 8-11
authorBrion Vibber <brion@pobox.com>
Sat, 10 May 2014 22:54:42 +0000 (00:54 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Sun, 11 May 2014 10:12:48 +0000 (12:12 +0200)
(Note that using the zero-width space directly is roughly equivalent;
see https://en.wikipedia.org/wiki/Zero-width_space )

Bug: 65155
Change-Id: I53f62fdb26cec65a3f4a5bea1bb9b1d7a9cb9c13

skins/common/shared.css

index ac7f407..a5612e2 100644 (file)
@@ -39,6 +39,12 @@ mark {
        color: black;
 }
 
+/* Helper for wbr element on IE 8+; in HTML5, but not supported by default as of IE 11. */
+/* Note canonical HTML5 styles recommend "content: \u200B", but this doesn't work as of IE 11. */
+wbr {
+       display: inline-block;
+}
+
 /* Input types that should follow user direction, like buttons */
 /* TODO: What about buttons in wikipage content ? */
 input[type="submit"],