Jump to content



Welcome to KnowledgeSutra - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
- - - - -

Font Stretch In Css 2.1


1 reply to this topic

#1 jlhaslip

    Insert Custom Title Here

  • [MODERATOR]
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 5,040 posts
  • Gender:Not Telling
  • Location:Linux, DOS and Windows…the good, the bad and the ugly
  • myCENT:81.07
  • Spam Patrol

Posted 16 February 2009 - 09:02 AM

Found out the hard way, (of course), when I went to validate a Web Site I am building that the CSS attribute for font-stretch does not pass the W3C Validation Test. And it fails to do what it is intended to do.
It formerly was used to 'stretch' a text string by adding spacing between the characters in the string. It no longer does that.

Long story short, font-stretch has been replaced by the letter-spacing attribute in CSS 2.1, so if you are using it on a page, and no longer get the results from font-stretch, use letter-spacing instead.

Font-stretch has worked in the past, and passed the W3C validator in CSS 1 and CSS 2, but it was changed for CSS 2.1. And the replacement attribute is not documented in CSS 2 Specifications, so here is your notice about the switch-over.

And for the good news... CSS 3 will revert back to font-stretch instead of letter-spacing. :D

I wish they would get their act together...

Oh! and the marquee tag looks like it will get supported in CSS 3 as well... go figure.
Moving text on a page is just so wrong in terms of Accessibility, in fact, the specs for 508 approval level 2 state very clearly ... no moving/flashing text.

... why are they doing this to coders???

#2 Xalor

    Super Member

  • KS GFX Crew
  • PipPipPipPipPipPipPipPipPip
  • 249 posts
  • Gender:Male
  • Location:New Hyde Park, NY
  • myCENT:58.18
  • T17 GFX Crew

Posted 17 February 2009 - 10:48 PM

I believe that W3 really wants to make something that is standard. People complain a lot about certain things, and then they try to make it work again. Then if it isn't as popular as they thought they go back the old one in the new version, but then it takes a lot of work to get it back to normal and not be all sorts of messy. I believe also that they want to make us really dependent in CSS, especially in 2.1, because people are complaining they only do part of it and not all of it. Anyway I doubt CSS 3 is coming out soon because they haven't even accepted 2.1 as the valid form yet. Just look at IE 8 still not conforming trying to set their own trend, but they haven't realized that all browsers are supposed to be formatted the same. Have fun yelling at W3, since they apparently are an organization of all coders, but then again the internet is not a republic, neither is it a democracy.




Reply to this topic


This post will need approval from a moderator before this post is shown.

  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users