This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 16269 - I think there needs to be a way to, when a document has multiple style elements which have different titles, specify which of the stylesheets are alternate stylesheets and which one is the default stylesheet.
Summary: I think there needs to be a way to, when a document has multiple style elemen...
Status: RESOLVED WORKSFORME
Alias: None
Product: HTML WG
Classification: Unclassified
Component: HTML5 spec (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-08 07:35 UTC by contributor
Modified: 2012-03-09 06:47 UTC (History)
5 users (show)

See Also:


Attachments

Description contributor 2012-03-08 07:35:17 UTC
Specification: http://www.w3.org/TR/html5/
Multipage: http://www.whatwg.org/C#top
Complete: http://www.whatwg.org/c#top

Comment:
I think there needs to be a way to, when a document has multiple style
elements which have different titles, specify which of the stylesheets are
alternate stylesheets and which one is the default stylesheet.

Posted from: 98.109.156.19
User agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
Comment 1 Boris Zbarsky 2012-03-08 15:38:42 UTC
There is.  The ones that have "alternate" in the 'rel' attribute are the alternate stylesheets.
Comment 2 Simon Pieters 2012-03-09 06:43:25 UTC
That's not entirely accurate, but this should be specified in CSSOM.

http://dvcs.w3.org/hg/cssom/raw-file/tip/Overview.html/#add-a-style-sheet
Comment 3 Simon Pieters 2012-03-09 06:47:43 UTC
I read the bug again and see that it's talking about <style> elements, not <link>.

For that you can do:

<meta http-equiv=default-style content=bar>
<style title=foo></style><!-- alternative -->
<style title=bar></style><!-- preferred -->

http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#attr-meta-http-equiv-default-style