HighDots Forums  

Re: "(non-)replaced"?

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Re: "(non-)replaced"? in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Sander Tekelenburg
 
Posts: n/a

Default Re: "(non-)replaced"? - 12-30-2004 , 01:20 AM






[Crossposted and followups set to
<news:comp.infosystems.www.authoring.stylesheets >]

In article <hsivonen-C1B6AC.11011529122004 (AT) news (DOT) dnainternet.net>,
Henri Sivonen <hsivonen (AT) iki (DOT) fi> wrote:

Quote:
In article <user-461ADB.09280129122004 (AT) news (DOT) euro.net>,
Sander Tekelenburg <user (AT) domain (DOT) invalid> wrote:
[...]

Quote:
I was wondering whether an empty SPAN with a background
image and explicit width is a valid construction.

It the syntactic sense it is valid.

I use that construction at <http://www.lotzofmusic.com/>. Mozilla
1.7.5, Opera 7.5.4 and iCab 3.0 happily deal with this the way I
hoped

Only because the display property computes to block, because you have
set float: left;.
Yes, that would make sense. However, I don't see that confirmed by

Quote:
http://www.w3.org/TR/CSS21/visuren.html#dis-pos-flo
which says "[...] if 'float' has a value other than 'none', the box is
floated and 'display' is set according to the table below [...]". Then
in 'the table below' it seems to say that in this case display is set to
"same as specified". Eh?

(Ah, I see that <http://www.w3.org/TR/CSS21/visuren.html#q27> even
provides an example of a floating SPAN with an explicit width.)

[...]

Quote:
But then why does the W3C validator not complain?

Declaring properties that do not apply in some situations is not a
syntax error.
Duh, I knew that - just forgot to think of it Thanks.

Btw, are there CSS checkers that have more to offer than mere syntactic
validation?

Quote:
[The reason I posted this to ciwah, in spite of all the CSS involved,
was that it seemd to be about elements and thus about HTML.]

This is all CSS stuff.
So it seems. Crossposting and setting followups to
<news:comp.infosystems.www.authoring.stylesheets >

--
Sander Tekelenburg, <http://www.euronet.nl/%7Etekelenb/>


Reply With Quote
  #2  
Old   
Henri Sivonen
 
Posts: n/a

Default Re: "(non-)replaced"? - 12-30-2004 , 02:59 AM






In article <user-D52580.07201730122004 (AT) news (DOT) euro.net>,
Sander Tekelenburg <user (AT) domain (DOT) invalid> wrote:

Quote:
Only because the display property computes to block, because you have
set float: left;.

Yes, that would make sense. However, I don't see that confirmed by

http://www.w3.org/TR/CSS21/visuren.html#dis-pos-flo

which says "[...] if 'float' has a value other than 'none', the box is
floated and 'display' is set according to the table below [...]". Then
in 'the table below' it seems to say that in this case display is set to
"same as specified". Eh?
The table says that when the specified value is 'inline', the computed
value is 'block'.

--
Henri Sivonen
hsivonen (AT) iki (DOT) fi
http://iki.fi/hsivonen/
Mozilla Web Author FAQ: http://mozilla.org/docs/web-developer/faq.html


Reply With Quote
  #3  
Old   
Sander Tekelenburg
 
Posts: n/a

Default Re: "(non-)replaced"? - 12-30-2004 , 07:06 AM



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

In article <hsivonen-967BF6.09594430122004 (AT) news (DOT) dnainternet.net>,
Henri Sivonen <hsivonen (AT) iki (DOT) fi> wrote:

Quote:
In article <user-D52580.07201730122004 (AT) news (DOT) euro.net>,
Sander Tekelenburg <user (AT) domain (DOT) invalid> wrote:
[...]

[<http://www.w3.org/TR/CSS21/visuren.html#dis-pos-flo>]

Quote:
Eh?

The table says that when the specified value is 'inline', the
computed value is 'block'.
Ah. I think I understand. I got thrown off by the *specified* in
"specified value" - I haven't specified an inline value for the
SPANs. But of course a SPAN's default value _is_ inline. So the
'specified' value is inline. I guess that's the 'logic' of the
phrasing there, right?


-----BEGIN PGP SIGNATURE-----
Version: PGP 8.1 - not licensed for commercial use: www.pgp.com

iQA/AwUBQdPvOesywKfXgqKdEQK7jQCgrRuEFqzUAROBS9TbY5UhsT ZYXQEAn1BP
ODpPW9/BD5xmQmJ8okAxP1Wc
=7cfA
-----END PGP SIGNATURE-----

--
Sander Tekelenburg, <http://www.euronet.nl/%7Etekelenb/>


Reply With Quote
  #4  
Old   
Henri Sivonen
 
Posts: n/a

Default Re: "(non-)replaced"? - 12-30-2004 , 08:52 AM



In article <user-7DBA25.13062130122004 (AT) news (DOT) euro.net>,
Sander Tekelenburg <user (AT) domain (DOT) invalid> wrote:

Quote:
Ah. I think I understand. I got thrown off by the *specified* in
"specified value" - I haven't specified an inline value for the
SPANs. But of course a SPAN's default value _is_ inline. So the
'specified' value is inline. I guess that's the 'logic' of the
phrasing there, right?
"Specified value" is a defined term in CSS 2.1:
http://www.w3.org/TR/CSS21/cascade.html#specified-value

--
Henri Sivonen
hsivonen (AT) iki (DOT) fi
http://iki.fi/hsivonen/
Mozilla Web Author FAQ: http://mozilla.org/docs/web-developer/faq.html


Reply With Quote
  #5  
Old   
Sander Tekelenburg
 
Posts: n/a

Default Re: "(non-)replaced"? - 12-30-2004 , 02:25 PM



In article <hsivonen-8BC878.15523930122004 (AT) news (DOT) dnainternet.net>,
Henri Sivonen <hsivonen (AT) iki (DOT) fi> wrote:

Quote:
In article <user-7DBA25.13062130122004 (AT) news (DOT) euro.net>,
Sander Tekelenburg <user (AT) domain (DOT) invalid> wrote:

Ah. I think I understand. I got thrown off by the *specified* in
"specified value" [...]

"Specified value" is a defined term in CSS 2.1:
http://www.w3.org/TR/CSS21/cascade.html#specified-value
Well I'll be damned... Thanks!

Was there any way I should have been able to realise to even look for
and then find that?

(To be honest, in a specification I would expect something like this[*]
to be marked up and presented in a useful manner. Preferably with a
hyperlink pointing to the definition.)

[*] "specified value" at
<http://www.w3.org/TR/CSS21/visuren.html#dis-pos-flo>

--
Sander Tekelenburg, <http://www.euronet.nl/%7Etekelenb/>


Reply With Quote
  #6  
Old   
Henri Sivonen
 
Posts: n/a

Default Re: "(non-)replaced"? - 12-31-2004 , 10:16 AM



In article <user-EFF672.20253630122004 (AT) news (DOT) euro.net>,
Sander Tekelenburg <user (AT) domain (DOT) invalid> wrote:

Quote:
In article <hsivonen-8BC878.15523930122004 (AT) news (DOT) dnainternet.net>,
Henri Sivonen <hsivonen (AT) iki (DOT) fi> wrote:

In article <user-7DBA25.13062130122004 (AT) news (DOT) euro.net>,
Sander Tekelenburg <user (AT) domain (DOT) invalid> wrote:

Ah. I think I understand. I got thrown off by the *specified* in
"specified value" [...]

"Specified value" is a defined term in CSS 2.1:
http://www.w3.org/TR/CSS21/cascade.html#specified-value

Well I'll be damned... Thanks!

Was there any way I should have been able to realise to even look for
and then find that?
Yes.

Computed value is a defined term, so specified value is likely to be one
also.

Reading the specs through at least once gives some kind of idea about
what to expect and look for.

Also considering who the editors of the spec are and who got an "extend
special thanks" in the acknowledgements, there's a good chance that
expressions that look like special terms are defined, so it is
worthwhile to search.

Quote:
(To be honest, in a specification I would expect something like this[*]
to be marked up and presented in a useful manner. Preferably with a
hyperlink pointing to the definition.)
Perhaps the editors take feedback in consideration.

--
Henri Sivonen
hsivonen (AT) iki (DOT) fi
http://iki.fi/hsivonen/
Mozilla Web Author FAQ: http://mozilla.org/docs/web-developer/faq.html


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.