Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 03-07-2016, 05:07 AM   #1
Capricorn
Belgian Pommes Frites
Capricorn will become famous soon enoughCapricorn will become famous soon enoughCapricorn will become famous soon enoughCapricorn will become famous soon enoughCapricorn will become famous soon enoughCapricorn will become famous soon enough
 
Posts: 101
Karma: 532
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.
Capricorn is offline   Reply With Quote
Old 03-07-2016, 07:16 AM   #2
rubeus
Banned
rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.
 
Posts: 272
Karma: 1224588
Join Date: Sep 2014
Device: Sony PRS 650
I cant see any Sigil issue.
rubeus is offline   Reply With Quote
Advert
Old 03-07-2016, 08:05 AM   #3
Capricorn
Belgian Pommes Frites
Capricorn will become famous soon enoughCapricorn will become famous soon enoughCapricorn will become famous soon enoughCapricorn will become famous soon enoughCapricorn will become famous soon enoughCapricorn will become famous soon enough
 
Posts: 101
Karma: 532
Join Date: Jan 2012
Device: Pocketbook Touch HD
Quote:
Originally Posted by rubeus View Post
I cant see any Sigil issue.
As I use a function in Sigil, I thought I would have to ask it in the sigil forum. If this is not correct, I am sorry. If needed, please move it to the correct forum.
Capricorn is offline   Reply With Quote
Old 03-07-2016, 09:11 AM   #4
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,552
Karma: 193191846
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.
DiapDealer is offline   Reply With Quote
Old 03-07-2016, 10:10 AM   #5
rubeus
Banned
rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.
 
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.
rubeus is offline   Reply With Quote
Advert
Old 03-07-2016, 10:25 AM   #6
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,552
Karma: 193191846
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).
DiapDealer is offline   Reply With Quote
Old 03-07-2016, 11:24 AM   #7
Capricorn
Belgian Pommes Frites
Capricorn will become famous soon enoughCapricorn will become famous soon enoughCapricorn will become famous soon enoughCapricorn will become famous soon enoughCapricorn will become famous soon enoughCapricorn will become famous soon enough
 
Posts: 101
Karma: 532
Join Date: Jan 2012
Device: Pocketbook Touch HD
Quote:
Originally Posted by DiapDealer View Post
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.
Thank you very much for moving it to the proper forum.
Capricorn is offline   Reply With Quote
Old 03-07-2016, 11:32 AM   #8
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,552
Karma: 193191846
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.
DiapDealer is offline   Reply With Quote
Old 03-07-2016, 01:08 PM   #9
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by Capricorn View Post
I have a tendency to simply remove such entries as they never seem to impact anything, at least in my experience.
Depends on what the CSS is!

For example, here is a topic about testing some selectors in CSS3:

https://www.mobileread.com/forums/sho...d.php?t=212300

Quote:
Originally Posted by Capricorn View Post
However, if I leave them there, would that cause problems?
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>
with this CSS:

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);
}
Many devices don't know "text-transform: uppercase", so the fallback will show "Capitulum Unum" instead of appearing as "CAPITULUM UNUM".

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:
Originally Posted by Capricorn View Post
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.
And remember, EPUBs only support a subset of all CSS2.1. Similarly, EPUB3 devices will only support a subset of CSS3.

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.
Tex2002ans is offline   Reply With Quote
Old 03-07-2016, 02:56 PM   #10
Capricorn
Belgian Pommes Frites
Capricorn will become famous soon enoughCapricorn will become famous soon enoughCapricorn will become famous soon enoughCapricorn will become famous soon enoughCapricorn will become famous soon enoughCapricorn will become famous soon enough
 
Posts: 101
Karma: 532
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.
Capricorn is offline   Reply With Quote
Old 03-07-2016, 07:09 PM   #11
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by Capricorn View Post
Thank you for all that info. It will take some time to digest all that.
And here are some images to help visualize.

With CSS3 (text-transform + text-shadow + transform):

Click image for larger version

Name:	CSS3.png
Views:	209
Size:	35.8 KB
ID:	146950

Without text-transform:

Click image for larger version

Name:	CSS3[WithoutTextTransform].png
Views:	201
Size:	34.8 KB
ID:	146954

Without text-shadow:

Click image for larger version

Name:	CSS3[WithoutShadows].png
Views:	207
Size:	21.1 KB
ID:	146953

Without transform:

Click image for larger version

Name:	CSS3[WithoutRotate].png
Views:	229
Size:	32.0 KB
ID:	146952

Without any:

Click image for larger version

Name:	CSS3[WithoutAny].png
Views:	211
Size:	20.7 KB
ID:	146951

Or even something as simple as:

Code:
border-top-left-radius: 10px;
border-top-right-radius: 10px;
which gives you rounded corners:

Click image for larger version

Name:	CSS3Table[Rounded].png
Views:	235
Size:	4.2 KB
ID:	146956 Click image for larger version

Name:	CSS3Table[NotRounded].png
Views:	232
Size:	4.1 KB
ID:	146955

Quote:
Originally Posted by Capricorn View Post
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.
Yep, it all depends. I typically just go visit w3schools whenever I run into a new CSS to see what it does:

http://www.w3schools.com/cssref/css3...der-radius.asp

Last edited by Tex2002ans; 03-07-2016 at 07:11 PM.
Tex2002ans is offline   Reply With Quote
Old 03-08-2016, 09:37 AM   #12
Capricorn
Belgian Pommes Frites
Capricorn will become famous soon enoughCapricorn will become famous soon enoughCapricorn will become famous soon enoughCapricorn will become famous soon enoughCapricorn will become famous soon enoughCapricorn will become famous soon enough
 
Posts: 101
Karma: 532
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.
Capricorn is offline   Reply With Quote
Old 03-09-2016, 03:25 PM   #13
dgatwood
Curmudgeon
dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.
 
dgatwood's Avatar
 
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
Quote:
Originally Posted by Tex2002ans View Post
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.
There are EPUB3 readers besides iBooks?
dgatwood is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 02:12 AM.


MobileRead.com is a privately owned, operated and funded community.