![]() |
#1 |
Belgian Pommes Frites
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 122
Karma: 35038
Join Date: Jan 2012
Device: Pocketbook Touch HD
|
validate with W3C Validator question
Hi,
Most of the time I validate all stylesheets with the W3C Validator (right-click on the stylesheet and select in the menu "validate with W3C"). Sometimes I get messages like: doesn't exist in CSS level 2.1 but exists in [css3] : This happens for example with CSS elements like text-wrap or background-size...etc. I have a tendency to simply remove such entries as they never seem to impact anything, at least in my experience. However, if I leave them there, would that cause problems? And if one day epub 3 takes the upper hand, would that be detrimental to those files. I understand epub 3 uses CSS3 but epub 2 uses CSS2.1. My knowledge of CSS is limited. Enough to get by and have epubs to my liking. Just trying to improve my understanding. |
![]() |
![]() |
![]() |
#2 |
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 272
Karma: 1224588
Join Date: Sep 2014
Device: Sony PRS 650
|
I cant see any Sigil issue.
|
![]() |
![]() |
![]() |
#3 |
Belgian Pommes Frites
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 122
Karma: 35038
Join Date: Jan 2012
Device: Pocketbook Touch HD
|
|
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,353
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Don't get too worried about it. While it's true that this may not be a Sigil-specific question, you did mention that you were using a Sigil feature that prompted you to go searching. So no real harm or foul. The proper response would probably include some helpful advice as to what would be the proper place to ask such questions. To which I would suggest the ePub format forum. I may move your question there, but please don't feel that it's a failure on your part (or punishment on mine) if I do so. "Help first" is my motto.
![]() |
![]() |
![]() |
![]() |
#5 |
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 272
Karma: 1224588
Join Date: Sep 2014
Device: Sony PRS 650
|
This is defintly a epub question. Just because i'm drinking coffee while making an epub i dont ask in a forum for coffeemachines about CSS.
|
![]() |
![]() |
![]() |
#6 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,353
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I'm going to need to ask you to be more polite, Rubeus. "Not a sigil issue" is not a helpful response. If you don't want to help the user find the correct spot to ask their question, that's fine. You don't have to. But rather than posting unhelpful and/or belittling responses, make your opinion known behind the scenes by reporting the post in question. The moderators will see it and judge/take action accordingly. There's no need to make people unconfortable by commenting on it in the thread (if you're not going to be helpful in any way).
I'm going to start deleting all "not the right forum" posts from now on (in the Sigil forum) if they don't at least attempt to be polite and point the way. Users are instructed to use the Report Post feature from now on to point out what they deem to be non-topical posts (if they have no interest in offering assistance of any kind). |
![]() |
![]() |
![]() |
#7 | |
Belgian Pommes Frites
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 122
Karma: 35038
Join Date: Jan 2012
Device: Pocketbook Touch HD
|
Quote:
|
|
![]() |
![]() |
![]() |
#8 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,353
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
No problem. I hope we can get on to the business of getting you some answers, now.
|
![]() |
![]() |
![]() |
#9 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
For example, here is a topic about testing some selectors in CSS3: https://www.mobileread.com/forums/sho...d.php?t=212300 Again, it depends on what the CSS3 is doing exactly. In the CSS standard, if the device doesn't recognize a given CSS property, it will completely ignore it. For example, in Doitsu's EPUB example in the thread linked above, there is this code: Code:
<h3>Capitulum Unum</h3> Code:
h3 { font-family: sans-serif; font-size: 2em; text-align: center; text-transform: uppercase; text-shadow: 2px 2px 3px grey; transform: rotate(-3deg); -webkit-transform: rotate(-3deg); } If the device doesn't understand "transform: rotate(-3deg)", the chapter title will not be rotated a few degrees, but will stay horizontal. (Similarly with the "text-shadow: 2px 2px 3px grey" showing shadows showing behind the text). The book will still be completely readable/understandable without this fluff. But, let us say you wrote a book in which every odd paragraph is blue, and every even paragraph is red ("nth-child(odd)" + "nth-child(even)"). All of a sudden, if the device doesn't implement that CSS3, your book will not be understandable when read on a CSS2 device. Quote:
For example, I doubt CSS3 Animations/Transitions are going to be on e-ink EPUB3 readers: http://www.w3schools.com/cssref/css3_pr_animation.asp Something like iBooks might be able to run those animations (not that they really follow the EPUB standards in the first place), but I wouldn't be completely reliant upon it. It is just always a good idea to keep in mind the fallbacks. ![]() Last edited by Tex2002ans; 03-07-2016 at 01:15 PM. |
||
![]() |
![]() |
![]() |
#10 |
Belgian Pommes Frites
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 122
Karma: 35038
Join Date: Jan 2012
Device: Pocketbook Touch HD
|
Thank you for all that info. It will take some time to digest all that. It seems like it will always depend upon the exact element used in the CSS. So, I will have to verify more than I did in the past if I want to remove it.
It is very good to know that, if the device doesn't recognize a given CSS property, it will completely ignore it. So, leaving it there, might often be the easier solution. |
![]() |
![]() |
![]() |
#11 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
With CSS3 (text-transform + text-shadow + transform): Without text-transform: Without text-shadow: Without transform: Without any: Or even something as simple as: Code:
border-top-left-radius: 10px; border-top-right-radius: 10px; Quote:
http://www.w3schools.com/cssref/css3...der-radius.asp Last edited by Tex2002ans; 03-07-2016 at 07:11 PM. |
||
![]() |
![]() |
![]() |
#12 |
Belgian Pommes Frites
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 122
Karma: 35038
Join Date: Jan 2012
Device: Pocketbook Touch HD
|
Many, many thanks for the additional pictures. For me, it validates my strategy of trying to keep the CSS as simple as possible.
|
![]() |
![]() |
![]() |
#13 | |
Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
W3C: at-rule namespace not implemented | Leonatus | Sigil | 8 | 10-12-2016 09:24 PM |
W3C CSS Validation opens with Notepad++ | Moonraker | Sigil | 4 | 05-25-2013 01:00 PM |
W3C css Validator problem? | pete6055 | Sigil | 14 | 02-28-2013 09:19 AM |
W3C Validation says: Elements are undefined | verydeepwater | ePub | 7 | 01-11-2013 05:09 AM |
Scope for W3C's Mobile Web Best Practices published | Colin Dunstan | Lounge | 1 | 09-17-2005 08:51 AM |