Bug 89297 (titleload)
Summary: | If title attribute is set on LINK stylesheets in head, those sheets are ignored | ||
---|---|---|---|
Product: | WebKit | Reporter: | Jesse Bounds <jesse> |
Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED CONFIGURATION CHANGED | ||
Severity: | Normal | CC: | ahmad.saleem792, ap, bfulgham, eoconnor, joethomas, rniwa, shanestephens, simon.fraser, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | 528+ (Nightly build) | ||
Hardware: | Mac | ||
OS: | OS X 10.7 | ||
URL: | http://test.csswg.org/shepherd/testcase/ttwf-cssom-doc-ext-load-tree-order/spec/CSSOM/author/boundsj/status/submitted/ | ||
See Also: | https://bugs.webkit.org/show_bug.cgi?id=225363 |
Jesse Bounds
If a title is used (i.e. <link title="zebra" rel="stylesheet" href="zebra.css" type="text/css"> ) when loading stylesheets in HEAD, the sheet is ignored. This does not occur in Opera or Firefox. It does occur in webkit/safari/chrome.
Test:
http://test.csswg.org/shepherd/testcase/ttwf-cssom-doc-ext-load-tree-order/spec/CSSOM/author/boundsj/status/submitted/
Test Results:
http://test.csswg.org/shepherd/repository/tip/contributors/ttwf/boundsj/submitted/ttwf-cssom-doc-ext-load-tree-order.html
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/11684476>
Joe Thomas
As per the spec http://www.w3.org/TR/html401/present/styles.html#h-14.3, naming the stylesheet with 'title' attribute makes it "preferred". WebKit allows only one of the preferred stylesheets and discards the rest in Document::collectActiveStylesheets.
Ahmad Saleem
>> rniwa@webkit.org - you landed support for 'title' in link here - https://github.com/WebKit/WebKit/commit/a39b520b8e0ca63489db7a45fe19181a33fac903
I think that will make this test as "PASS". Can we close this bug? Thanks!
Ryosuke Niwa
Yeah, this is now working:
http://test.csswg.org/shepherd/repository/bbc09e4c2581d270eb7b8b9704032d2b745c20e1/cssom-1/ttwf-cssom-doc-ext-load-tree-order.html