RE: [WSG] style attribute depreciated in xhtml 1.1?

2005-03-16 Thread Richard Ishida
Semantic markup like this also makes it much easier to change your mind as
you evolve the styling, and to use alternative conventions for localized
pages where appropriate.

RI



Richard Ishida
W3C

contact info:
http://www.w3.org/People/Ishida/ 

W3C Internationalization:
http://www.w3.org/International/ 

Publication blog:
http://people.w3.org/rishida/blog/
 
 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of Alan Trick
 Sent: 15 March 2005 19:20
 To: wsg@webstandardsgroup.org
 Subject: Re: [WSG] style attribute depreciated in xhtml 1.1?
 
 Thanks,
 Sounds like a good idea, plus it saves me the headache of 
 validating their css.
 Alan Trick
 
 Vlad Alexander (XStandard) wrote:
 
 Hi Alan,
 
 Both span class=red and span style=color:#f00 are 
 bad. How about BBtags this:
 
 [important]
 [highlight]
 [note]
 [misc]
 
 then you use this markup:
 
 em class=important
 em class=hightlight
 ..
 
 Regards,
 -Vlad
 http://xstandard.com
 
 

**
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list  getting help
**



Re: [WSG] style attribute depreciated in xhtml 1.1?

2005-03-15 Thread Gunlaug Sørtun
Alan Trick wrote:
I just found you that the style attribute is depreciated in xhtml 
1.1. Does this  mean that it will eventually be obolete? If so, what 
do they expect us to do for inline styles because it doesn't always 
make sense to have everything in an external style sheet.
Well, unless they deprecate this also:
style type=text/css
/*![CDATA[*/
@media screen {
.int01 {background-color: #def; clear: right;}
.int03 {margin-top: 15px;}
...
}
/*]]*/
/style
...I'll keep page-specific styles in the page head. Makes more sense no
matter what DTD I code in accordance to, since it's a real, compact,
stylesheet that follows the page.
Sidenote: I've observed some buggy behavior with inline-styles, as they
are sometimes ignored if I use a stylesheet switcher. This may cause
positioning-errors and alike, with no cross-browser predictability.
Styles in the head are working reliable though.
regards
Georg
--
http://www.gunlaug.no
**
The discussion list for  http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
**


Re: [WSG] style attribute depreciated in xhtml 1.1?

2005-03-15 Thread XStandard
Hi Alan,

I just found you that the style attribute is depreciated
in xhtml 1.1. Does this  mean that it will eventually be
obolete?
It depends on what you mean by obolete. Deprecated means that it's part of 
the spec but the construct is outdated and its use is strongly discouraged. The 
next version of XHTML is 2.0 which won't get wide acceptance for 5 to 10 years. 
It's in Working Draft status. In it, the style is not flagged deprecated 
but that can change. Here is what the spec says:

Note: use of the style attribute is strongly discouraged in favor of the style 
element and external style sheets. In addition, content developers are advised 
to avoid use of the style attribute on content intended for use on small 
devices, since those devices may not support the use of in-line styles.
Source: http://www.w3.org/TR/xhtml2/mod-styleAttribute.html

If so, what do they expect us to do for inline
styles because it doesn't always make sense
to have everything in an external style sheet.
Can you provide some example of how you want to use inline formatting?

Regards,
-Vlad
http://xstandard.com




Alan Trick wrote:
 I just found you that the style attribute is depreciated in xhtml 1.1.
 Does this  mean that it will eventually be obolete? If so, what do they
 expect us to do for inline styles because it doesn't always make sense
 to have everything in an external style sheet.
 Alan Trick
 **
 The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list  getting help
 **




**
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list  getting help
**



Re: [WSG] style attribute depreciated in xhtml 1.1?

2005-03-15 Thread Alan Trick
I'm implementing some BBtag-like things on my webste though, and it 
semes to make more sense to have something like [red] create a span 
style='color:#f00'/span instead of a span class='red'/span and 
have a whole bunch of unnecesary styles, and if I want to allow 
something like [span style='color:#123'], that is quite difficult to do 
via classes and external/internal css.
The only other place I've used it is when I want to randomly generate a 
background-image or something, but that probably better doen with 
internal css
Alan Trick

Vlad Alexander (XStandard) wrote:
Hi Alan,
 

I just found you that the style attribute is depreciated
in xhtml 1.1. Does this  mean that it will eventually be
obolete?
 

It depends on what you mean by obolete. Deprecated means that it's part of the spec but the 
construct is outdated and its use is strongly discouraged. The next version of XHTML is 2.0 which won't get 
wide acceptance for 5 to 10 years. It's in Working Draft status. In it, the style is not flagged 
deprecated but that can change. Here is what the spec says:
Note: use of the style attribute is strongly discouraged in favor of the style 
element and external style sheets. In addition, content developers are advised 
to avoid use of the style attribute on content intended for use on small 
devices, since those devices may not support the use of in-line styles.
Source: http://www.w3.org/TR/xhtml2/mod-styleAttribute.html
 

If so, what do they expect us to do for inline
styles because it doesn't always make sense 
to have everything in an external style sheet.
 

Can you provide some example of how you want to use inline formatting?
Regards,
-Vlad
http://xstandard.com
Alan Trick wrote:
 

I just found you that the style attribute is depreciated in xhtml 1.1. 
Does this  mean that it will eventually be obolete? If so, what do they 
expect us to do for inline styles because it doesn't always make sense 
to have everything in an external style sheet.
Alan Trick
   

**
The discussion list for  http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
**


Re: [WSG] style attribute depreciated in xhtml 1.1?

2005-03-15 Thread Kornel Lesinski
On Tue, 15 Mar 2005 16:49:00 -, Alan Trick [EMAIL PROTECTED]  
wrote:

I'm implementing some BBtag-like things on my webste though, and it  
semes to make more sense to have something like [red] create a span  
style='color:#f00'/span instead of a span class='red'/span and  
have a whole bunch of unnecesary styles, and if I want to allow  
something like [span style='color:#123'], that is quite difficult to do  
via classes and external/internal css.
Note this similarity:
span class='red'
font color='red'
This kind of markup is deprecated since HTML4.
--
regards, Kornel Lesiski
**
The discussion list for  http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
**


Re: [WSG] style attribute depreciated in xhtml 1.1?

2005-03-15 Thread XStandard
Hi Alan,

Both span class=red and span style=color:#f00 are bad. How about 
BBtags this:

[important]
[highlight]
[note]
[misc]

then you use this markup:

em class=important
em class=hightlight
..

Regards,
-Vlad
http://xstandard.com



Alan Trick wrote:
 I'm implementing some BBtag-like things on my webste though, and it
 semes to make more sense to have something like [red] create a span
 style='color:#f00'/span instead of a span class='red'/span and
 have a whole bunch of unnecesary styles, and if I want to allow
 something like [span style='color:#123'], that is quite difficult to do
 via classes and external/internal css.
 The only other place I've used it is when I want to randomly generate a
 background-image or something, but that probably better doen with
 internal css
 Alan Trick

 Vlad Alexander (XStandard) wrote:

 Hi Alan,



 I just found you that the style attribute is depreciated
 in xhtml 1.1. Does this  mean that it will eventually be
 obolete?


 It depends on what you mean by obolete. Deprecated means that it's
 part of the spec but the construct is outdated and its use is strongly
 discouraged. The next version of XHTML is 2.0 which won't get wide
 acceptance for 5 to 10 years. It's in Working Draft status. In it, the
 style is not flagged deprecated but that can change. Here is what
 the spec says:

 Note: use of the style attribute is strongly discouraged in favor of
 the style element and external style sheets. In addition, content
 developers are advised to avoid use of the style attribute on content
 intended for use on small devices, since those devices may not support
 the use of in-line styles.
 Source: http://www.w3.org/TR/xhtml2/mod-styleAttribute.html



 If so, what do they expect us to do for inline
 styles because it doesn't always make sense to have everything in an
 external style sheet.


 Can you provide some example of how you want to use inline formatting?

 Regards,
 -Vlad
 http://xstandard.com


 Alan Trick wrote:


 I just found you that the style attribute is depreciated in xhtml
 1.1. Does this  mean that it will eventually be obolete? If so, what
 do they expect us to do for inline styles because it doesn't always
 make sense to have everything in an external style sheet.
 Alan Trick


 **
 The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list  getting help
 **




**
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list  getting help
**