|  09-18-2021, 06:26 PM | #1 | 
| Junior Member  Posts: 4 Karma: 10 Join Date: Sep 2021 Device: kindle | 
				
				Docx to EPUB: W3C error - border currentColor is not a Color ...
			 
			
			Hi, Has anyone else seen this W3C error on Epub conversions from docx files? border currentColor is not a Color ...  If yes, how to correct this problem? | 
|   |   | 
|  09-18-2021, 06:34 PM | #2 | 
| Junior Member  Posts: 4 Karma: 10 Join Date: Sep 2021 Device: kindle | 
				
				More info on CSS file contents
			 
			
			Here are the CSS files for tables ... .table_ { border-collapse: collapse; border-spacing: 2px; display: table; margin-bottom: 0; margin-left: 0; margin-top: 0; text-indent: 0; padding: 0; border: currentColor none 1pt } | 
|   |   | 
| Advert | |
|  | 
|  09-18-2021, 07:11 PM | #3 | |
| Wizard            Posts: 1,687 Karma: 9500498 Join Date: Sep 2021 Location: Australia Device: Kobo Libra 2 | Quote: 
 Have a read here and you might be able to find the effect you are after... https://www.w3schools.com/css/css_border_shorthand.asp | |
|   |   | 
|  09-18-2021, 07:37 PM | #4 | 
| Junior Member  Posts: 4 Karma: 10 Join Date: Sep 2021 Device: kindle | 
			
			The syntax is auto-generated by Calibre as part of the conversion. I notice that if I search and replace "currentColor" with "black" on the stylesheet.css file that it passes a W3C validation scan. This is a fix I guess, but it also seems like it might be a Calibre bug report too? | 
|   |   | 
|  09-18-2021, 07:54 PM | #5 | 
| Wizard            Posts: 1,687 Karma: 9500498 Join Date: Sep 2021 Location: Australia Device: Kobo Libra 2 | |
|   |   | 
| Advert | |
|  | 
|  09-18-2021, 08:23 PM | #6 | 
| 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 | 
			
			Preferences: OUTPUT options: EPUB (on sidebar): EPUB Version If you have previously converted a book, there is a similar area on the start conversion dialog. CALIBRE remembers previously used settings PER BOOK (so it no longer uses Preferences for those.) | 
|   |   | 
|  09-18-2021, 10:27 PM | #7 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 Join Date: Oct 2006 Location: Mumbai, India Device: Various | 
			
			The W3C is no longer relevant to html specs. The browser makers all decided to ignore it. And currentColor is most definitely a valid value for color: https://developer.mozilla.org/en-US/...tcolor_keyword
		 | 
|   |   | 
|  09-18-2021, 10:41 PM | #8 | 
| Wizard            Posts: 1,687 Karma: 9500498 Join Date: Sep 2021 Location: Australia Device: Kobo Libra 2 | 
			
			Oh right. I had no idea. A shame as that site is how I taught myself css and html and what I use for reference. What site do you use as a reference for CSS and HTML properties? I note that mozilla site does not have a comprehensive list of available properties/tags that can be used. | 
|   |   | 
|  09-18-2021, 11:12 PM | #9 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 Join Date: Oct 2006 Location: Mumbai, India Device: Various | 
			
			I use the whatwg documents mostly, such as https://html.spec.whatwg.org
		 | 
|   |   | 
|  09-18-2021, 11:37 PM | #10 | 
| Wizard            Posts: 1,687 Karma: 9500498 Join Date: Sep 2021 Location: Australia Device: Kobo Libra 2 | 
			
			Great. Thank you    | 
|   |   | 
|  09-19-2021, 07:31 AM | #11 | 
| Junior Member  Posts: 4 Karma: 10 Join Date: Sep 2021 Device: kindle | 
			
			All true as you say, but the W3C check is a requirement of Draft2Print - that flags the errors and refuses to forward the epubs etc on for publishing at Apple, Barnes and Nobles, and so on. currentColor is legal, although I understand that color must be set initially so it can use the cascading color settings.
		 Last edited by etilley; 09-19-2021 at 07:33 AM. | 
|   |   | 
|  09-19-2021, 08:08 AM | #12 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 Join Date: Oct 2006 Location: Mumbai, India Device: Various | 
			
			I'm afraid calibre is not in the business of satisfying incorrect error checks in various pre-print tools. Simply run a search and replace, or setup a rule to do it automatically during conversion. In the Lokk & Feel->Transform styles section of the conversion dialog.
		 | 
|   |   | 
|  | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Error Converting Docx to EPUB | lisanna | Conversion | 1 | 11-01-2016 05:03 AM | 
| ePub validation error help "attribute border is not declared for element img | bmacklin | ePub | 12 | 11-06-2015 11:00 AM | 
| Error Converting docx to epub | drago87 | Conversion | 7 | 08-11-2015 04:24 PM | 
| Error with converting docx to epub | ssflwp | Calibre | 3 | 07-05-2014 06:39 AM | 
| Docx to Epub conversion error with 1.5 | dapjukebox | Calibre | 6 | 10-03-2013 08:18 AM |