|  01-24-2016, 09:08 AM | #16 | 
| Banned            Posts: 272 Karma: 1224588 Join Date: Sep 2014 Device: Sony PRS 650 | 
			
			I've added an example... This is reproducable on my Computer. Changing the CSS and the changes are not reflected i can observe, too. But i cant reproduce it or give an example. The svg wrapped image may help to find the root cause for this. May be not. Its the only reproducible problem i currently have where the bookview does not follow code changes. | 
|   |   | 
|  01-26-2016, 04:44 AM | #17 | 
| Enthusiast  Posts: 37 Karma: 10 Join Date: Jan 2011 Device: Kobo 1 | 
			
			Further to my previous query. If I change a tag class in the HTML code directly. <p><b>words </b><p/> it will change straight away in book view to bold, or <p><em>words </em><p/> Italic etc. However if I change it using the CSS it will NOT change until I reload Sigil and the book. This is happening with every book I have tried it on. Peace, John P. | 
|   |   | 
|  01-26-2016, 04:49 AM | #18 | ||
| mostly an observer            Posts: 1,519 Karma: 996810 Join Date: Dec 2012 Device: Kindle | Quote: 
 Quote: 
 | ||
|   |   | 
|  01-26-2016, 05:10 AM | #19 | 
| Banned            Posts: 272 Karma: 1224588 Join Date: Sep 2014 Device: Sony PRS 650 | 
			
			I guess here are some things miced up. Changing a CSS file does not change BV/PV, thats true. I'm speaking of seldom cases, where there is no change in the view even after reloading or changing from BV to CV and back to BV to get it running. Only closing Sigil and restarting it has an effect. | 
|   |   | 
|  01-26-2016, 07:33 AM | #20 | 
| Sigil Developer            Posts: 9,070 Karma: 6361556 Join Date: Nov 2009 Device: many | 
			
			I still can not see this or recreate this with valid css. So please provide a reproducible example. The svg image issue was because the code generated was not valid. Does the new css pass css validation? Thanks, KevinH | 
|   |   | 
|  01-26-2016, 08:28 AM | #21 | 
| Banned            Posts: 272 Karma: 1224588 Join Date: Sep 2014 Device: Sony PRS 650 | 
			
			Ok i need to revise my last statement. Open is: stylesheet Tab, Bookview Tab and Preview Editing in the stylesheet does reflect the changes at once in Preview, switching to the Tab in Bookview mode does show the new setting if and only if the css is valid. I was wrong here. But... sometimes changes in the css do not affect Bookview or Preview, even if the css is valid. Sigil needs to be closed and restarted. Unfortunately i cant reproduce this in a consistent way. It happens now and then (seldom) and i cant see a reoccurring pattern of what i'm doing. So i didnt brought this to attention. I only mentioned it here to just say: this does not happen to the OP only. I thought that the AdjustSVG problem could be related to that issue thats why i brought it up, but it was a complete different root cause. | 
|   |   | 
|  01-26-2016, 09:39 AM | #22 | 
| Sigil Developer            Posts: 9,070 Karma: 6361556 Join Date: Nov 2009 Device: many | 
			
			Hi rubeus, If you see this happen again, run the external css validator to make sure the css is valid. If I have the following in a linked stylesheet and play with the color, it impacts Preview and BV almost instantly. p { color: red; } This proves that the proper signals are being sent almost immediately and that BV and PV receive those signals and update accordingly. Now if I write invalid css such as p { hcolor: red; } and play with the value red, it is never reflected in BV and PV. In fact, having invalid css earlier on in the stylesheet may prevent later stylesheet elements that look perfectly correct from being processed. In other words, invalid css almost anywhere in the stylesheet can cause the entire stylesheet to be ignored at times. That is why we link to the external CSS validator to try and help people track this down. Hope this helps, KevinH | 
|   |   | 
|  01-26-2016, 11:15 AM | #23 | 
| Banned            Posts: 272 Karma: 1224588 Join Date: Sep 2014 Device: Sony PRS 650 | 
			
			Sorry to say that, but i've checked the css @ w3c and it was valiid. I beleive we cant tear that down until someone has a reproducible case.
		 | 
|   |   | 
|  01-26-2016, 11:42 AM | #24 | 
| Sigil Developer            Posts: 9,070 Karma: 6361556 Join Date: Nov 2009 Device: many | 
			
			One other thing.  Signals were broken in Sigil 0.8.7 version so this may well have been an issue in that version.  It should not be an issue in Sigil-0.9.2.  And I think you are right, without a reproducible test case, we can't really do anything about it as at a fundamental level it is working.  So something strange must be going on.
		 | 
|   |   | 
|  01-26-2016, 12:11 PM | #25 | 
| Grand Sorcerer            Posts: 28,880 Karma: 207000000 Join Date: Jan 2010 Device: Nexus 7, Kindle Fire HD | 
			
			I'm tempted to dismiss it as "works for me," but I can't quite get past the fact that the reported cases all seem to be fixed by restarting Sigil. If it was a syntax error or other invalid css, a restart/reopen shouldn't have "fixed" it. A restart of Sigil should never make anything render differently, should it (provided there were no unsaved changes dismissed)? Are there any circumstances where a file rename/import or a split/merge could somehow leave something "stale" or disconnected? Those would be the areas I would focus on if I were looking to nail down something reproduceable. That or any automated task that was run prior to css changes not taking effect any more. One other possibility is embedded fonts. I'd have no trouble believing there might be issues with css changes not immediately taking effect on text that was already being rendered with embedded fonts. Embedded fonts and WebKit have been pretty flaky from the beginning. Help us find it and we'll fix it (or at least tell you we can't)!   Last edited by DiapDealer; 01-26-2016 at 12:25 PM. | 
|   |   | 
|  01-26-2016, 01:16 PM | #26 | 
| Sigil Developer            Posts: 9,070 Karma: 6361556 Join Date: Nov 2009 Device: many | 
			
			Hi, One thing a restart does is pass all xhtml files through gumbo again to check/fix any link updates (and by doing so will fix any broken xhtml) and it will clear all caches that BV/PV will build for all resources linked to from that page. So if the link tag was broken in some way, or missing some pieces, that might explain everything. So I guess, if you ever see this problem, please try right clicking on the impacted xhtml page, and running ReformatHTML->Mend on the code and then verify the link tag in head is properly written/updated. URLs can be case-senstive while some file systems may not be so it may be as simple as wrong case being used in a file name or a broken link tag in head. Running Mend should rule this out. KevinH | 
|   |   | 
|  01-26-2016, 01:55 PM | #27 | 
| Well trained by Cats            Posts: 31,249 Karma: 61360164 Join Date: Aug 2009 Location: The Central Coast of California Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A | |
|   |   | 
|  01-27-2016, 12:34 AM | #28 | 
| Obsessively Dedicated...            Posts: 3,241 Karma: 35158061 Join Date: May 2011 Location: PA {back in the usa!} Device: Sony PRS-T2, ADE on PC | 
			
			@DiapDealer --- Re: embedded fonts --- I just want to mention that the only time I have any issue similar to this, it is invariably when I am dealing with embedded fonts. I can't reliably reproduce it (sometimes it seems to mostly happen with larger epub over 10mb, but some large ones work fine.) What happens is this: If I have @font-face assigned to a certain font, and then change it to a different font, it sometimes won't reflect in Preview Pane without "refreshing" the css with a re-launch of Sigil, OR by reloading the book. Once in a great while, changes to a css class REFERRING to that embedded font will likewise fail to update in the Preview. I am sorry to say, it only happens sporadically, even with the same document. Next time it happens, I will try to provide more info. | 
|   |   | 
|  01-29-2016, 04:21 AM | #29 | |
| Enthusiast  Posts: 37 Karma: 10 Join Date: Jan 2011 Device: Kobo 1 | Quote: 
 No it was a typo. I did the first line then did a copy and paste. So the <p/> was displayed twice.  It should have been and is in the book </p> </em>  I have check the .ccs on line and all is good. The code passes both FlightCrew and ePubcheck. I have tied "mend and prettify code" as well. John P. | |
|   |   | 
|  01-29-2016, 04:36 AM | #30 | 
| Banned            Posts: 272 Karma: 1224588 Join Date: Sep 2014 Device: Sony PRS 650 | 
			
			As far as i know epubcheck doesnt really check the CSS deeply, i'm always using the CSS validator @ W3C
		 | 
|   |   | 
|  | 
| Thread Tools | Search this Thread | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Refresh files in Sigil when html files have changed outside Sigil | Echeban | Sigil | 43 | 10-29-2021 08:29 PM | 
| Force a CSS Refresh? | zephyrmays | Sigil | 15 | 02-03-2013 12:53 PM | 
| Sigil 0.6.0 & CSS problem? | michaelbr | Sigil | 2 | 11-21-2012 08:38 PM | 
| Sigil UI and the CSS | Artha | Sigil | 2 | 11-22-2011 02:22 PM | 
| Sigil 0.3.4 / Problème CSS entre Sigil et iPad | Grivels | Software | 10 | 07-03-2011 09:06 AM |