[gnome-web-photo: 16/24] Add example CSS rules to deal with iframes
- From: Vincent Untz <vuntz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-web-photo: 16/24] Add example CSS rules to deal with iframes
- Date: Wed, 16 Feb 2011 19:30:59 +0000 (UTC)
commit 0f863ec4e9bfd7ca3a35ce1449b520ef34c75bfa
Author: Vincent Untz <vuntz gnome org>
Date: Wed Feb 16 18:51:30 2011 +0100
Add example CSS rules to deal with iframes
There seems to be a webkit bug when we use "height: 100%;" and the
hidden overflow rules, though: lots of empty space at the end.
TODO | 4 ++++
data/style.css | 15 +++++++++++++++
2 files changed, 19 insertions(+), 0 deletions(-)
---
diff --git a/TODO b/TODO
index 89207c8..eb6637c 100644
--- a/TODO
+++ b/TODO
@@ -3,6 +3,10 @@ Issues after webkit port:
gtk_widget_set_size_request()). We can possibly use a GtkScrolledWindow to
make this work.
+Webkit issues:
+* Using the custom CSS for iframes doesn't actually work perfectly: it seems to
+ append lots of empty space at the end.
+
Improvements:
* Improve thumbnail creation time
* Thumbnailing service? I.e. background process (which exits after some time without requests),
diff --git a/data/style.css b/data/style.css
index 9865cf3..843f1d3 100644
--- a/data/style.css
+++ b/data/style.css
@@ -1,3 +1,18 @@
/* Content of this CSS will be used in the pages rendered by gnome-web-photo.
* Use "!important" to override a rule that might be specified in the CSS
* of the page. See http://www.w3.org/TR/CSS2/cascade.html#important-rules */
+
+/* The following can be used for pages containing one or multiple iframe(s),
+ to get the whole content of the iframe(s) in the output.
+ This is disabled by default, to offer an output as close as to what would be
+ displayed in the browser. */
+/*
+html, body, iframe {
+ overflow-y: hidden !important;
+}
+
+iframe {
+ width: 100%;
+ height: 100%;
+}
+ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]