HighDots Forums  

hack to hide CSS from WebTV Viewer

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


Discuss hack to hide CSS from WebTV Viewer in the Cascading Style Sheets forum.



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

Default hack to hide CSS from WebTV Viewer - 10-13-2003 , 08:14 AM







Hello,
By accident I noticed that a hack to hide CSS from IE4.x/Mac also hides
it from WebTV Viewer. Since I noticed a little while ago a post here
that mentioned the 'incompatibility' of WebTV Viewer with CSS and the
hardship of hiding CSS from it, I thought this might be of relevance.

@import 'styles.css'; // hides from IE4/Mac and IE5/Mac
@i\mport "styles.css"; // hides from some browsers, but not from IE5/Mac

I noticed the effect in my WebTV Viewer v2.0 (build551), an emulator for
the Mac. Can anybody confirm this effect using the real WebTV?

I put up a test page for it.
<http://www.xs4all.nl/~apple77/webtv/>

--
Kris
kristiaan (AT) xs4all (DOT) netherlands (nl)

Reply With Quote
  #2  
Old   
AT
 
Posts: n/a

Default Re: hack to hide CSS from WebTV Viewer - 10-13-2003 , 08:27 AM






Kris <kristiaan (AT) xs4all (DOT) netherlands> exclaimed in <kristiaan-6C9E9E.14143113102003 (AT) news1 (DOT) news.xs4all.nl>:

Quote:
By accident I noticed that a hack to hide CSS from IE4.x/Mac also hides
it from WebTV Viewer. Since I noticed a little while ago a post here
that mentioned the 'incompatibility' of WebTV Viewer with CSS and the
This is true, afaik, of WebTV up to 2.6 - and sad. 2.6 has fairly good
CSS support. I'd suggest not hiding from it. YMMV.

--
- Tina Holmboe Greytower Technologies
tina (AT) greytower (DOT) net http://www.greytower.net/
[+46] 0708 557 905


Reply With Quote
  #3  
Old   
Steve Pugh
 
Posts: n/a

Default Re: hack to hide CSS from WebTV Viewer - 10-13-2003 , 08:46 AM



Kris <kristiaan (AT) xs4all (DOT) netherlands> wrote:

Quote:
By accident I noticed that a hack to hide CSS from IE4.x/Mac also hides
it from WebTV Viewer. Since I noticed a little while ago a post here
that mentioned the 'incompatibility' of WebTV Viewer with CSS and the
hardship of hiding CSS from it, I thought this might be of relevance.

@import 'styles.css'; // hides from IE4/Mac and IE5/Mac
@i\mport "styles.css"; // hides from some browsers, but not from IE5/Mac

I noticed the effect in my WebTV Viewer v2.0 (build551), an emulator for
the Mac. Can anybody confirm this effect using the real WebTV?

I put up a test page for it.
http://www.xs4all.nl/~apple77/webtv/
Doesn't work (i.e. the styles are applied) in MSNTV Viewer 2.8 for
Windows.

With luck Magic Dave will be along in a bit to tell us what it does in
a real MSNTV box.

Deconstucting things a little the Windows viewer can handle the first
import okay but not the second. But using the second on its own isn't
an option as that blocks CSS from, for example, Opera 7.

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 (AT) pugh (DOT) net> <http://steve.pugh.net/>


Reply With Quote
  #4  
Old   
Kris
 
Posts: n/a

Default Re: hack to hide CSS from WebTV Viewer - 10-13-2003 , 11:32 AM



In article <M9zib.761169$uu5.132328@sccrnsc04>,
Brian <usenet1 (AT) mangymutt (DOT) com.invalid-remove-this-part> wrote:

Quote:
By accident I noticed that a hack to hide CSS from IE4.x/Mac also
hides it from WebTV Viewer. Since I noticed a little while ago a
post here that mentioned the 'incompatibility' of WebTV Viewer
with CSS and the

This is true, afaik, of WebTV up to 2.6 - and sad. 2.6 has fairly
good CSS support.

But I'm perplexed by WebTV reading a stylesheet media=screen in the
first place, when media=tv is available.
I would gladly supply a stylesheet for media="tv" if support is proper
and does not compromise rendering in other UA's. And of course if the
budget allows it.

--
Kris
kristiaan (AT) xs4all (DOT) netherlands (nl)
"We called him Tortoise because he taught us" said the Mock Turtle.


Reply With Quote
  #5  
Old   
Kris
 
Posts: n/a

Default Re: hack to hide CSS from WebTV Viewer - 10-13-2003 , 12:10 PM



In article <wMzib.754713$Ho3.193369@sccrnsc03>,
Brian <usenet1 (AT) mangymutt (DOT) com.invalid-remove-this-part> wrote:

Quote:
But I'm perplexed by WebTV reading a stylesheet media=screen in the
first place, when media=tv is available.

I would gladly supply a stylesheet for media="tv" if support is proper
and does not compromise rendering in other UA's. And of course if the
budget allows it.

It would probably be less expensive to provide a different stylesheet
altogether for a web tv browser than to have yet another partly broken
browser attempting things in a screen stylesheet that it cannot
handle, and another slew of hacks to hide css from it.
Yes. But I don't trust UA detection.

--
Kris
kristiaan (AT) xs4all (DOT) netherlands (nl)
"We called him Tortoise because he taught us" said the Mock Turtle.


Reply With Quote
  #6  
Old   
Kris
 
Posts: n/a

Default Re: hack to hide CSS from WebTV Viewer - 10-13-2003 , 01:11 PM



In article <8gAib.754936$Ho3.193148@sccrnsc03>,
Brian <usenet1 (AT) mangymutt (DOT) com.invalid-remove-this-part> wrote:

Quote:
It would probably be less expensive to provide a different stylesheet
altogether for a web tv browser than to have yet another partly broken
browser attempting things in a screen stylesheet that it cannot
handle, and another slew of hacks to hide css from it.

Yes. But I don't trust UA detection.

Neither do I. That's my point. It shouldn't be up to authors to try
to detect the ua.
Indeed.

Quote:
The ua should follow the specs. Perhaps I'm
mistaken, but I feel that web tv should not be reading any stylesheet
for media="screen".
I agree.

Quote:
If it didn't, an author would have no need to
sniff for a webtv ua string. Or have I misunderstood you?
You understood me. And there should be no need for hacks either, but we
are living in a not so perfect world. I would prefer a CSS hack over UA
detection, if it cannot be done in a way that it is supposed to be done.

--
Kris
kristiaan (AT) xs4all (DOT) netherlands (nl)
"We called him Tortoise because he taught us" said the Mock Turtle.


Reply With Quote
  #7  
Old   
Stan Brown
 
Posts: n/a

Default Re: hack to hide CSS from WebTV Viewer - 10-13-2003 , 01:30 PM



In article <M9zib.761169$uu5.132328@sccrnsc04> in
comp.infosystems.www.authoring.stylesheets, Brian
<usenet1 (AT) mangymutt (DOT) com.invalid-remove-this-part> wrote:
Quote:
But I'm perplexed by WebTV reading a stylesheet media=screen in the
first place, when media=tv is available.
Do you mean there is a link to a media=tv style sheet and WebTV uses
the media=screen one? If so, I agree: that seems wrong.

Or do you mean WebTV reads media=screen even though it's a TV, when
the author did not provide a media=tv style sheet? I'm not so sure
that's bad. Presumably the media=screen style sheet is closer to the
author's intentions for presentation than the default WebTV style
sheet.

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/


Reply With Quote
  #8  
Old   
Steve Pugh
 
Posts: n/a

Default Re: hack to hide CSS from WebTV Viewer - 10-13-2003 , 02:21 PM



tina (AT) greytower (DOT) net (Tina Holmboe) wrote:

Quote:
Kris <kristiaan (AT) xs4all (DOT) netherlands> exclaimed in <kristiaan-6C9E9E.14143113102003 (AT) news1 (DOT) news.xs4all.nl>:

By accident I noticed that a hack to hide CSS from IE4.x/Mac also hides
it from WebTV Viewer. Since I noticed a little while ago a post here
that mentioned the 'incompatibility' of WebTV Viewer with CSS and the

This is true, afaik, of WebTV up to 2.6 - and sad. 2.6 has fairly good
CSS support. I'd suggest not hiding from it. YMMV.
My mileage does vary...

@import support was added in 2.8 according to
http://developer.msntv.com/ which is what makes it hard to hide CSS
from it.

Now 2.6 may have had fairly good CSS support but if the emulator is
anything to go by 2.8 does not. Maybe they bit off more then they
could chew and tried to add support for extra properties but messed it
up.

For an example look at your own site: http://www.greytower.net/. The
links are all solid black boxes and the text runs off the right hand
edge of the screen. Some of my sites appear even worse (no text shows
up at all).
This puts MSNTV right down with NN4 as a browser that can't cope with
CSS, but unlike NN4 there are no easy tricks to hide CSS from it.

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 (AT) pugh (DOT) net> <http://steve.pugh.net/>


Reply With Quote
  #9  
Old   
kchayka
 
Posts: n/a

Default Re: hack to hide CSS from WebTV Viewer - 10-13-2003 , 04:16 PM



Tina Holmboe wrote:
Quote:
WebTV... 2.6 has fairly good
CSS support. I'd suggest not hiding from it.
I would disagree. In my experience, when it comes to CSS, WebTV (any
flavor) is worse than NS4. It makes a right mess of positioning,
margins, % units, and who knows what else. I would suggest hiding as
much from it as possible.

Quote:
YMMV.
indeed.

--
To email a reply, remove (dash)un(dash). Mail sent to the un
address is considered spam and automatically deleted.



Reply With Quote
  #10  
Old   
AT
 
Posts: n/a

Default Re: hack to hide CSS from WebTV Viewer - 10-13-2003 , 09:28 PM



Steve Pugh <steve (AT) pugh (DOT) net> exclaimed in <0nqlov07bdtnpdjbnrivqau331mh90tc2l (AT) 4ax (DOT) com>:

Quote:
Now 2.6 may have had fairly good CSS support but if the emulator is
anything to go by 2.8 does not. Maybe they bit off more then they
could chew and tried to add support for extra properties but messed it
Checking our site with 2.6 and 2.8 is definetly on the list of things
to do, right after "sleeping" and "eating" at the moment.

We did, however, test 2.6 on the "old" layout:

http://www.greytower.net/images/scre...-webtv-2.6.png

Not exactly pretty, but then again ... our site isn't Getting our
test systems back online is indeed a priority.

--
- Tina Holmboe Greytower Technologies
tina (AT) greytower (DOT) net http://www.greytower.net/
[+46] 0708 557 905


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.