Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

background shorthand

4 views
Skip to first unread message

shapper

unread,
Dec 4, 2009, 2:40:04 PM12/4/09
to
Hello,

I have the following style:
background: #F5F5F5 url('../Contents/Image/Ruler_Background.jpg')
repeat-x bottom;

And I get the error:
Value Error : background Parse Error [empty string]

What am I doing wrong?

Thanks,
Miguel

Jonathan N. Little

unread,
Dec 4, 2009, 3:27:19 PM12/4/09
to
shapper wrote:
> Hello,
>
> I have the following style:
> background: #F5F5F5 url('../Contents/Image/Ruler_Background.jpg')
^
|
Remove the carriage return from here --------------------------+

> repeat-x bottom;
>
> And I get the error:
> Value Error : background Parse Error [empty string]
>
> What am I doing wrong?
>
> Thanks,
> Miguel


--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

shapper

unread,
Dec 4, 2009, 3:36:47 PM12/4/09
to

Jonathan, I have everything in the same line. It is Google Groups that
makes that ...

dorayme

unread,
Dec 4, 2009, 3:42:31 PM12/4/09
to
In article
<c430b6ec-e822-4609...@r5g2000yqb.googlegroups.com>,
shapper <mdm...@gmail.com> wrote:

Nothing much. The validator is wrong.

--
dorayme

dorayme

unread,
Dec 4, 2009, 4:00:12 PM12/4/09
to
In article <hfbrbj$92j$1...@news.eternal-september.org>,

"Jonathan N. Little" <lws...@gmail.com> wrote:

> shapper wrote:
> > Hello,
> >
> > I have the following style:
> > background: #F5F5F5 url('../Contents/Image/Ruler_Background.jpg')
> ^
> |
> Remove the carriage return from here --------------------------+

I doubt it. Surely there can be as many as he likes. I tap the enter
button a lot waiting for my Portuguese meal that never comes but it
makes no difference if I am good and don't tap it at all.

--
dorayme

Jonathan N. Little

unread,
Dec 4, 2009, 5:51:04 PM12/4/09
to
shapper wrote:
> On Dec 4, 8:27 pm, "Jonathan N. Little"<lws4...@gmail.com> wrote:
>> shapper wrote:
>>> Hello,
>>
>>> I have the following style:
>>> background: #F5F5F5 url('../Contents/Image/Ruler_Background.jpg')
>>
>> ^
>> |
>> Remove the carriage return from here --------------------------+
>>
>>> repeat-x bottom;
>>
>>> And I get the error:
>>> Value Error : background Parse Error [empty string]
>>
>>> What am I doing wrong?

>


> Jonathan, I have everything in the same line. It is Google Groups that
> makes that ...

I can only reproduce the error if the "background: ...;" rule to the ";"
in not on the same line.

dorayme

unread,
Dec 4, 2009, 6:10:04 PM12/4/09
to
In article <hfc3ot$ih0$1...@news.eternal-september.org>,

"Jonathan N. Little" <lws...@gmail.com> wrote:

> I can only reproduce the error if the "background: ...;" rule to the ";"
> in not on the same line.

<http://dorayme.netweaver.com.au/alt/lookMaNoBreaks.html>

returns the error. The validator *seems* to be wrong and at least this
is a URL (something missing so far in the thread). Perhaps it might be
analysed for something I am missing to squash my current tentative,
humbly held, theory that the validator is getting it wrong?

--
dorayme

Jonathan N. Little

unread,
Dec 4, 2009, 8:43:42 PM12/4/09
to

Hmmm, don't know, weird.

Chris F.A. Johnson

unread,
Dec 4, 2009, 8:50:31 PM12/4/09
to
On 2009-12-05, Jonathan N. Little wrote:
> dorayme wrote:
>> In article<hfc3ot$ih0$1...@news.eternal-september.org>,
>> "Jonathan N. Little"<lws...@gmail.com> wrote:
>>
>>> I can only reproduce the error if the "background: ...;" rule to the ";"
>>> in not on the same line.
>>
>> <http://dorayme.netweaver.com.au/alt/lookMaNoBreaks.html>
>>
>> returns the error.

That page passes validation.

>> The validator *seems* to be wrong and at least this
>> is a URL (something missing so far in the thread). Perhaps it might be
>> analysed for something I am missing to squash my current tentative,
>> humbly held, theory that the validator is getting it wrong?
>>
>
> Hmmm, don't know, weird.
>


--
Chris F.A. Johnson <http://cfajohnson.com>
===================================================================
Author:
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
Pro Bash Programming: Scripting the GNU/Linux Shell (2009, Apress)

dorayme

unread,
Dec 4, 2009, 9:05:45 PM12/4/09
to
In article <7ntsj7F...@mid.individual.net>,

"Chris F.A. Johnson" <cfajo...@gmail.com> wrote:

> On 2009-12-05, Jonathan N. Little wrote:
> > dorayme wrote:
> >> In article<hfc3ot$ih0$1...@news.eternal-september.org>,
> >> "Jonathan N. Little"<lws...@gmail.com> wrote:
> >>
> >>> I can only reproduce the error if the "background: ...;" rule to the ";"
> >>> in not on the same line.
> >>
> >> <http://dorayme.netweaver.com.au/alt/lookMaNoBreaks.html>
> >>
> >> returns the error.
>
> That page passes validation.

Maybe it passes the HTML validation but not this one:

<http://dorayme.890m.com/justPics/sorrywefoundthefollowingerror.png>

--
dorayme

GTalbot

unread,
Dec 4, 2009, 11:45:58 PM12/4/09
to
On 4 déc, 20:43, "Jonathan N. Little" <lws4...@gmail.com> wrote:
> dorayme wrote:

> > <http://dorayme.netweaver.com.au/alt/lookMaNoBreaks.html>
>
> > returns the error. The validator *seems* to be wrong and at least this
> > is a URL (something missing so far in the thread).

Bug 8442: background property shorthand parse problem
http://www.w3.org/Bugs/Public/show_bug.cgi?id=8442

regards, Gérard

dorayme

unread,
Dec 5, 2009, 2:02:58 AM12/5/09
to
In article
<606d9616-8fda-4f40...@c3g2000yqd.googlegroups.com>,
GTalbot <news...@gtalbot.org> wrote:

I notice mention of MacOS X on this URL. Jonathan Little, (on Windows?)
got the thing when he had a carriage return in the middle of the
relevant CSS but not otherwise, I get it no matter what. In other words
it is nice and stable on a Mac. In general bugs on Macs are consistent
and well behaved. A nice environment is provided for them on the ground
that Macs are made with the idea that every living bit or byte deserves
a fair go.

--
dorayme

Jonathan N. Little

unread,
Dec 5, 2009, 10:26:27 AM12/5/09
to

Yes WinXP SP3

Seems to be the order of parameters thing not an OS thing:

background: url("pics/crimson.png") repeat-x bottom;

throws an error and

background: url("pics/crimson.png") bottom repeat-x;

does not. So putting the attachment position properties before the
repeat property prevents the error message.

dorayme

unread,
Dec 5, 2009, 2:48:10 PM12/5/09
to
In article <hfdu3f$18m$1...@news.eternal-september.org>,

"Jonathan N. Little" <lws...@gmail.com> wrote:

Well spotted. But what about the other trigger for this bug you
mentioned on your Win, about carriage return? You were saying it
appeared with the CR but not without. I was not getting this one.

--
dorayme

GTalbot

unread,
Dec 8, 2009, 2:13:10 PM12/8/09
to
On 5 déc, 10:26, "Jonathan N. Little" <lws4...@gmail.com> wrote:
> dorayme wrote:
> > In article
> > <606d9616-8fda-4f40-af97-3f068f385...@c3g2000yqd.googlegroups.com>,
> >   GTalbot<newsgr...@gtalbot.org>  wrote:

> >> Bug 8442: background property shorthand parse problem
> >>http://www.w3.org/Bugs/Public/show_bug.cgi?id=8442
>

> > I notice mention of MacOS X on this URL. (...)


>
> Yes WinXP SP3
>
> Seems to be the order of parameters thing not an OS thing:

Johnathan,

You are correct. It's not a specific OS related bug. I added a comment
in the bug report to that effect today.

Bug 8442: background property shorthand parse problem
http://www.w3.org/Bugs/Public/show_bug.cgi?id=8442

best regards, Gérard
--
Internet Explorer 7 bugs: 183 bugs so far
http://www.gtalbot.org/BrowserBugsSection/MSIE7Bugs/
Internet Explorer 8 bugs: 58 bugs so far
http://www.gtalbot.org/BrowserBugsSection/MSIE8Bugs/

0 new messages