[geary/bug/728002-webkit2: 126/140] Fix messages with "html { height: 100%; }" set getting 1px-high views.
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/bug/728002-webkit2: 126/140] Fix messages with "html { height: 100%; }" set getting 1px-high views.
- Date: Tue, 31 Jan 2017 23:09:08 +0000 (UTC)
commit 7f75a7e9448807d80298ffb0d217562f5ac0086e
Author: Michael James Gratton <mike vee net>
Date: Sat Jan 28 17:40:49 2017 +1100
Fix messages with "html { height: 100%; }" set getting 1px-high views.
Partially reverts commit d4e2b84.
* ui/conversation-web-view.css: Reinstate triggering CSS 2.1 §
10.6.7. for the HTML element.
ui/conversation-web-view.css | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/ui/conversation-web-view.css b/ui/conversation-web-view.css
index d1cf1fd..1382c93 100644
--- a/ui/conversation-web-view.css
+++ b/ui/conversation-web-view.css
@@ -10,6 +10,22 @@
transition: height 0.25s !important;
}
+html {
+ /* Trigger CSS 2.1 § 10.6.7 to get a shrink-wrapped height. */
+ position: absolute !important;
+ top: 0 !important;
+ bottom: auto !important;
+ height: auto !important;
+
+ /* Fix up the width after going to absolute positioning above. */
+ width: 100%;
+
+ /* Lock down the box just enough so we don't get an incrementally
+ expanding web view */
+ box-sizing: border-box !important;
+ margin: 0 !important;
+}
+
body {
margin: 12px;
border: 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]