Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 1 of 2 12 LastLast
Results 1 to 15 of 22
  1. #1
    Senior Coder
    Join Date
    Oct 2003
    Location
    Australia
    Posts
    1,963
    Thanks
    0
    Thanked 0 Times in 0 Posts

    New properties for <a> in CSS3

    According to the Web Standards Project (WASP) the CSS working group has been busy on new projects including two great CSS3 features:
    1.The Hyperlink Presentation Module 1st Working Draft , which basically outlines a new <a> attribute,
    target .
    2.The CSS "Reader" Media Type , which will allow us to specify a seperate rule set for screen-readers, braille output devices and other aural or bitmap output (?) devices.
    Sweet
    Being first working drafts they are still a fair way off being final recommendations, but I'm keeping my fingers crossed.
    We all know which browser will support this stuff first, don't we
    So who's got something to say?


    Andrew

    I take no responsibility for the above nonsense.


    Left Justified

  • #2
    me'
    me' is offline
    Senior Coder
    Join Date
    Nov 2002
    Location
    Warwickshire, England
    Posts
    1,229
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Code:
    a { target-new: tab }
    Hell yeah.
    David House - Perfect is achieved, not when there is nothing left to add, but when there is nothing left to take away. (Antoine de St. Exupery).
    W3Schools | XHTML Validator | CSS Validator | Colours | Typography | HTML&CSS FAQ | Go get Mozilla Now | I blog!

  • #3
    Master Coder
    Join Date
    Feb 2003
    Location
    UmeŚ, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    Nice, but I see a problem here - there's no way to construct a user stylesheet that overrides just the style rules that specify target-name to be new or modal.
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards

  • #4
    me'
    me' is offline
    Senior Coder
    Join Date
    Nov 2002
    Location
    Warwickshire, England
    Posts
    1,229
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You can get halfway there:
    Code:
    * { target-new: tab !important }
    But that still lets modal dialogues through.
    David House - Perfect is achieved, not when there is nothing left to add, but when there is nothing left to take away. (Antoine de St. Exupery).
    W3Schools | XHTML Validator | CSS Validator | Colours | Typography | HTML&CSS FAQ | Go get Mozilla Now | I blog!

  • #5
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    But if you go:
    Code:
    * { target-new: none !important }
    Won't that just make those links do nothing at all?

    I don't like it ... I thought we were getting rid of link targetting because it's considered a bad thing to do, not because its semantics are more akin to CSS than XHTML (which I don't agree with anyway - I don't think targetting is HTML semantics or presentation; it's interface control, which is a different thing entirely, and not something XHTML or CSS should address, imo).

    I don't want websites to be able to open new tabs within my browser just as much as I don't want them to be able to open windows.

    But at a pinch, Modular XHTML can still do targetting; so what is there to gain from this that can't be acheived in other ways, and without the accessibility question marks?

    But I like the new media type - that could be helpful.
    Last edited by brothercake; 02-26-2004 at 10:30 PM.
    "Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark

  • #6
    Master Coder
    Join Date
    Feb 2003
    Location
    UmeŚ, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    Well, from what I understand they moved this to styles because it isn't semantics, and shouldn't really be present in the link semantics specifications. Also, they wanted a uniform method for doing it across XML applications without introducing either a new language or make too large changes in the old ones. They will probably change XLink to be more a link identification language, and let this spec control the presentation part (or at least the part that isn't semantics.).


    Have a look at <http://www.w3.org/2003/01/16-tag-xlink>, <http://people.opera.com/howcome/2000...ink-nov-6.html> and <http://www.w3.org/TR/hlink/>. For related proposals and the TAG discussions.
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards

  • #7
    Senior Coder
    Join Date
    Oct 2003
    Location
    Australia
    Posts
    1,963
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by brothercake

    But I like the new media type - that could be helpful.
    Damn straight

    I take no responsibility for the above nonsense.


    Left Justified

  • #8
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post
    Cool .. I can ditch a little js I use for targetting.
    Omnis mico antequam dominus Spookster!

  • #9
    Senior Coder
    Join Date
    Oct 2003
    Location
    Australia
    Posts
    1,963
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by Mhtml
    Cool .. I can ditch a little js I use for targetting.
    Yeah, in about 3-5 years when browser support catches up.
    I must say though, adding this functionality to CSS took me by surpirse. I really didn't think it was within the presentation scope. But hey, what would I know, I've only been into this stuff for under a year....

    I take no responsibility for the above nonsense.


    Left Justified

  • #10
    Master Coder
    Join Date
    Feb 2003
    Location
    UmeŚ, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    Actually the initial Clink proposal is four years old, and the similar markup based Hlink is a year and a half old. Both are trying to address this, which is essentially a failure in HTML/XHTML and XLink as they look today. I personally think CSS is a pretty good solution for this, especially since we have a standardised user overriding mechanism.

    The only gripe I have with it is that you can't override CSS on a style rule base, only on a selector base.



    As for the support, I woulld not be surprised if Opera started supporting this right away (they had a large part in it being proposed in the first instance), with Safari and Mozilla being two to four months behind. The other browsers are either irrelevant on the whole (e.g. IceBrowser), stagnant (e.g. iew), or discontinued (e.g. iem).





    I don't think it's really in the presentation scope - it's just that it's not in any other scope related to the document. A ditched original suggestion was a separate CSS syntax based linking sheets language for just this. HLink is essentially also a linking sheets language, but XML based instead.
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards

  • #11
    New to the CF scene
    Join Date
    Jan 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by me'
    { target-new: tab !important }
    what is or is there an HTML equivelent?
    Simulcrash

  • #12
    Senior Coder
    Join Date
    Aug 2002
    Location
    Kansas City, Kansas
    Posts
    1,518
    Thanks
    0
    Thanked 2 Times in 2 Posts
    At the moment, there is no equivalent and that won't work until CSS3 becomes the new standard. The only choice that you have is finding an extension that will do what you want.

  • #13
    Senior Coder
    Join Date
    Jul 2004
    Location
    New Zealand
    Posts
    1,315
    Thanks
    0
    Thanked 2 Times in 2 Posts
    Oh man, this is shocking. All the attempts made to stop websites opening new windows or hijacking the users navigation, and they go and add this shit into the specification. Idiots.

    It was probably Tantek «elik (he works for Microsoft).

  • #14
    Senior Coder
    Join Date
    Aug 2002
    Location
    Kansas City, Kansas
    Posts
    1,518
    Thanks
    0
    Thanked 2 Times in 2 Posts
    I'm glad, they need a good guy like him. Maybe he will whip IE into shape.

  • #15
    Senior Coder
    Join Date
    Oct 2003
    Location
    Australia
    Posts
    1,963
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by hemebond
    It was probably Tantek «elik (he works for Microsoft).
    No he doesn't. He works for Technorati. He used to work for microsoft, and was responsible for IE mac's tasman engine; the most CSS capable rendering engine of its time.
    Just 'cause someone's boss is evil don't mean squat.
    If it did, I wouldn't work for Brady!

    I take no responsibility for the above nonsense.


    Left Justified


  •  
    Page 1 of 2 12 LastLast

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •