Changeset 3192:ac7e04cf9edc in livinglogic.python.xist
- Timestamp:
- 01/29/08 15:47:28 (12 years ago)
- Author:
- Walter Doerwald <walter@…>
- Children:
- 3195:44afb9f97e1c, 3205:e358a069c7f3
- Branch:
- default
- Message:
-
The href of a stylesheet link wasn't applied to the stylesheet itself (only to the imported stylesheets in it).
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
r3191
|
r3192
|
|
20 | 20 | :var:`base` argument was given. |
21 | 21 | |
| 22 | * Fixed a second bug in :func:`ll.xist.css.iterrules` where the ``href`` of a |
| 23 | :class:`link` element wasn't applied to the URLs in the stylesheet. |
22 | 24 | |
23 | 25 | Changes in 3.1 (released 01/18/2008) |
-
r3190
|
r3192
|
|
68 | 68 | havemedia = _getmedia(parentsheet) |
69 | 69 | if wantmedia is None or not havemedia or wantmedia in havemedia: |
| 70 | replaceurls(parentsheet, prependbase) |
70 | 71 | for rule in parentsheet.cssRules: |
71 | 72 | if rule.type == css.CSSRule.IMPORT_RULE: |
… |
… |
|
79 | 80 | sheet = css.CSSStyleSheet(href=str(href), media=havemedia, parentStyleSheet=parentsheet) |
80 | 81 | sheet.cssText = text |
81 | | replaceurls(sheet, prependbase) |
82 | 82 | for rule in _doimport(wantmedia, sheet, href): |
83 | 83 | yield rule |