Build: 2001020804 Platform: All Expected result: HREF attribute should work in the Link element. This is a away a user would specify a external css file. What I got: The css which is referenced by the HREF attribute is not applied. Steps to reproduce: 1) Save the xml test case and css file to local drive. 2) Open xml test file. 3) The H3 and P element are rendered with assigned css properties/values.
Added xhtml keyword
Duplicates bug 36790.
The only difference I see is that the STYLE element is present in 36790. This report talks about the external css not being applied.
Nominating for beta 1. External stylesheets must be supported in XHTML.
You can use external stylesheets with the xml-stylesheet processing instruction, see http://www.w3.org/TR/xml-stylesheet/
Have you resolved how style sheets from LINK and <?xml-stylesheet ...?> PI's should be combined? I don't believe this behavior is defined in any specifications, although I would _expect_ that they would be combined simply according to the order in which they appear in the document -- PI's first, followed by the LINKs, otherwise weighted equally. Does that make sense to everyone?
Ian: Sounds reasonable. The stylesheet PI's are only allowed in the document prolog, so they will always precede the link elements. Otherwise it shouldn't matter if you use PIs or link elements or both.
Ian: FYI, there are at least 6 non-dynamic ways of linking stylesheets: Link: HTTP headers <?xml-stylesheet?> PIs <meta http-equiv="Link"> elements <link rel="stylesheet"> elements <style> @import "" </style> blocks <style src=""> elements (non-standard) Fun, huh. They can all appear in the same document, too. And all of them can be alternate stylesheets, for extra fun...
Probably common usage. Will schedule fix.
For fix, see bug 67887.
Nisheeth says r=nisheeth
Fix checked in.
Marking verified in the May 03 build (2001050308).