CSS2.1 Various Inline-related Stuff

:before and :after
------------------

I think we need an 'auto' value for the content property.

Setup:

  <blockcontainer>
    <a>Random Content</a>
    <b></b>
    <c>More Content</a>
  </blockcontainer>


a, b, c {
  display: inline;
}


a:before {
  content: "gc";
  border: 1px solid red;
}

b {
  border: 1px solid blue;
}

c:before {
  content: "";
  border: 1px solid green;
}

Question:
  How many colored boxes?


If you answered three, read part II of
  http://lists.w3.org/Archives/Public/www-style/2001Jun/0006.html

If you didn't answer three, why not?


Inheritance, Computed Values, & Keywords
----------------------------------------

Just bringing this up again, since no one gave me an answer:

 | Given "vertical-align: inherit", and a parent with a keyword,
 | what inherits? The computed distance from the baseline or the
 | keyword?
 |
 | Likewise for 'background-position'.

from http://lists.w3.org/Archives/Public/www-style/2001Nov/0005.html


Text-Decoration
---------------

There's been a lot of confusion, and hence a lot of discussion, about
text-decoration in CSS2. [1] The CSS3 Text draft clarifies a lot of
these issues. I think it would be a good idea for CSS2.1 to adopt
some of the CSS3WD explanations in CSS2.1.

Like, what is meant by "affects all inline-level descendants",
and whether thickness is constant as well as color,
and whether a user agent may interrupt the line for subscripts,
and whether the line jumps to underline superscripts at their
own baseline.

 <p style="text-decoration: underline">
   Some <big><sup>random</sup> text</big>
 </p>

BIG and SUP are both descendents--do they both get underlined?

[1] See http://lists.w3.org/Archives/Public/www-style/2000Mar/0105.html
    for links to relevant posts.

Letter and Word Spacing
-----------------------

How does letter spacing affect the space between words?

http://bugzilla.mozilla.org/show_bug.cgi?id=1046#c20


If I wrote
  <pre>two  spaces</pre>
how would word-spacing and letter-spacing affect the gap between
'two' and 'spaces'?


~fantasai

Received on Thursday, 22 August 2002 22:15:40 UTC