Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 11:41 PM
Paul
Guest
 
Posts: n/a
Default questions about CSS 2.1 spec?

I've bought two books on CSS, and found they're no good.
Now I'm reading "Cascading Style Sheets, level 2 revision 1
CSS 2.1 Specification" , but it's tough going.

I have lots of questions about parts in that spec. Does anyone know who can
answer them?
Is there maybe an "Annotated CSS 2.1 Spec" ? That is, one with extra
explanation added to every complex piece of text.

As an example of two of my questions:
In:
section 9.2 Block-level elements and block boxes
Text:
When an inline box contains a block box, the inline box (and its inline
ancestors within the same line box) are broken around the block. The line
boxes before the break and after the break are enclosed in anonymous boxes,
and the block box becomes a sibling of those anonymous boxes.
Question:
Should "... are enclosed in anonymous boxes ..." actually say "... are
enclosed in anonymous block boxes ..." !?
Question:
Could I please have an example of "inline ancestors within the same line
box" .

Note:
The two books that I bought, are:
"Cascading Style Sheets, The Definitive Guide", by Eric Meyer;
"Designing with Web Standards", by Jeffrey Zeldman .


  #2  
Old July 20th, 2005, 11:41 PM
Neal
Guest
 
Posts: n/a
Default Re: questions about CSS 2.1 spec?

On Tue, 25 May 2004 13:56:21 +0200, Paul <pvbemmel@xs4all.nl> wrote:

[color=blue]
> When an inline box contains a block box, the inline box (and its
> inline
> ancestors within the same line box) are broken around the block. The line
> boxes before the break and after the break are enclosed in anonymous
> boxes,
> and the block box becomes a sibling of those anonymous boxes.
>
> Question:
> Should "... are enclosed in anonymous boxes ..." actually say "... are
> enclosed in anonymous block boxes ..." !?
> Question:
> Could I please have an example of "inline ancestors within the same
> line
> box" .[/color]

I am pretty sure this means that

<span>lalala<p>lalala</p>lalala</span>

is really rendered as

<span>lalala</span><p><span>lalala</span></p><span>lalala</span>

[color=blue]
> Note:
> The two books that I bought, are:
> "Cascading Style Sheets, The Definitive Guide", by Eric Meyer;
> "Designing with Web Standards", by Jeffrey Zeldman .[/color]

Those are quite reputable books. What do you find to be "no good" about
them?
  #3  
Old July 20th, 2005, 11:41 PM
Steve Pugh
Guest
 
Posts: n/a
Default Re: questions about CSS 2.1 spec?

"Paul" <pvbemmel@xs4all.nl> wrote:
[color=blue]
>I've bought two books on CSS, and found they're no good.
> Now I'm reading "Cascading Style Sheets, level 2 revision 1
>CSS 2.1 Specification" , but it's tough going.[/color]

Note that CSS 2.1 is not yet a W3C Recommendation.
[color=blue]
>I have lots of questions about parts in that spec. Does anyone know who can
>answer them?[/color]

Here is as good a place as any.
[color=blue]
>Is there maybe an "Annotated CSS 2.1 Spec" ? That is, one with extra
>explanation added to every complex piece of text.[/color]

Not that I'm aware of.
[color=blue]
>As an example of two of my questions:
>In:
> section 9.2 Block-level elements and block boxes
>Text:
> When an inline box contains a block box, the inline box (and its inline
>ancestors within the same line box) are broken around the block. The line
>boxes before the break and after the break are enclosed in anonymous boxes,
>and the block box becomes a sibling of those anonymous boxes.
>Question:
> Should "... are enclosed in anonymous boxes ..." actually say "... are
>enclosed in anonymous block boxes ..." !?[/color]

I think that as the text in question is in a section headed "Anonymous
block boxes" then you can assume that.
[color=blue]
>Question:
> Could I please have an example of "inline ancestors within the same line
>box" .[/color]

here is <b>some bold <i>and italic</i> text</b>

The <b> element is an inline ancestor of the <i> element and if they
are both displayed on the same line then they are within the same line
box.
[color=blue]
>Note:
> The two books that I bought, are:
> "Cascading Style Sheets, The Definitive Guide", by Eric Meyer;[/color]

Probably one of the best guides to CSS in book form. Presumably you
bought this recently and have the second edition?
[color=blue]
> "Designing with Web Standards", by Jeffrey Zeldman .[/color]

An interesting opinion piece, but not a guide to actual code.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <steve@pugh.net> <http://steve.pugh.net/>
  #4  
Old July 20th, 2005, 11:45 PM
Steve Pugh
Guest
 
Posts: n/a
Default Re: questions about CSS 2.1 spec?

Neal <neal413@yahoo.com> wrote:[color=blue]
>On Tue, 25 May 2004 13:56:21 +0200, Paul <pvbemmel@xs4all.nl> wrote:
>[color=green]
>> When an inline box contains a block box, the inline box (and its
>> inline ancestors within the same line box) are broken around the block.
>> The line boxes before the break and after the break are enclosed in
>> anonymous boxes, and the block box becomes a sibling of those anonymous
>> boxes.
>>
>> Question:
>> Should "... are enclosed in anonymous boxes ..." actually say "... are
>> enclosed in anonymous block boxes ..." !?[/color]
>
>I am pretty sure this means that
>
><span>lalala<p>lalala</p>lalala</span>
>
>is really rendered as
>
><span>lalala</span><p><span>lalala</span></p><span>lalala</span>[/color]

No. It is not the place of the CSS spec to say anything about how user
agents should fix broken markup; any such fixing should be done before
CSS is applied.

Further, span is not an anonymous box. Anonymous boxes are those that
are not associated with any HTML (or other markup language) element.

The example given in the spec for the text quoted by the OP is:

body { display: inline }
p { display: block }

<BODY>
This is anonymous text before the P.
<P>This is the content of P.</P>
This is anonymous text after the P.
</BODY>

cheers,
Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <steve@pugh.net> <http://steve.pugh.net/>
  #5  
Old July 20th, 2005, 11:45 PM
Neal
Guest
 
Posts: n/a
Default Re: questions about CSS 2.1 spec?

On Tue, 25 May 2004 13:17:59 +0100, Steve Pugh <steve@pugh.net> wrote:
[color=blue]
> Neal <neal413@yahoo.com> wrote:[color=green]
>> I am pretty sure[/color]
> No.[/color]

Thanks for setting me straight. Still a lot to figure out...
  #6  
Old July 20th, 2005, 11:45 PM
Spartanicus
Guest
 
Posts: n/a
Default Re: questions about CSS 2.1 spec?

Steve Pugh <steve@pugh.net> wrote:
[color=blue][color=green]
>>I've bought two books on CSS, and found they're no good.
>> Now I'm reading "Cascading Style Sheets, level 2 revision 1
>>CSS 2.1 Specification" , but it's tough going.[/color]
>
>Note that CSS 2.1 is not yet a W3C Recommendation.[/color]

Also note that it's a Candidate Recommendation, and imo generally a
better start than the 2.0 Rec.


--
Spartanicus
 

Bookmarks

Thread Tools

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

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles