diff options
author | Phil Ruffwind <rf@rufflewind.com> | 2015-06-12 12:59:24 -0400 |
---|---|---|
committer | Phil Ruffwind <rf@rufflewind.com> | 2015-06-12 13:07:25 -0400 |
commit | a476b251e363b3b0ed30c75cf72a19fc275d6440 (patch) | |
tree | 8367c4b4606ef9ddc020893a7efe900235d807e4 /haddock-library/vendor/attoparsec-0.12.1.1/Data/Attoparsec/Internal | |
parent | f48474f640387dca4b42182c1ac78ba30865742d (diff) |
Fix alignment of Source links in instance table in Firefox
Due to a Firefox bug [1], a combination of 'whitespace: nowrap' on the
parent element with 'float: right' on the inner element can cause the
floated element to be displaced downwards for no apparent reason.
To work around this, the left side is wrapped in its own <span> and set
to 'float: left'. As a precautionary measure to prevent the parent
element from collapsing entirely, we also add the classic "clearfix"
hack. The latter is not strictly needed but it helps prevent bugs if
the layout is altered again in the future.
Fixes #384.
Remark: line 159 of src/Haddock/Backends/Xhtml/Layout.hs was indented to
prevent confusion over the operator precedence of (<+>) vs (<<).
[1]: https://bugzilla.mozilla.org/show_bug.cgi?id=488725
Diffstat (limited to 'haddock-library/vendor/attoparsec-0.12.1.1/Data/Attoparsec/Internal')
0 files changed, 0 insertions, 0 deletions