Changeset 3192:ac7e04cf9edc in livinglogic.python.xist

Show
Ignore:
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:
2 modified

Legend:

Unmodified
Added
Removed
  • NEWS.rst

    r3191 r3192  
    2020    :var:`base` argument was given. 
    2121 
     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. 
    2224 
    2325Changes in 3.1 (released 01/18/2008) 
  • src/ll/xist/css.py

    r3190 r3192  
    6868    havemedia = _getmedia(parentsheet) 
    6969    if wantmedia is None or not havemedia or wantmedia in havemedia: 
     70        replaceurls(parentsheet, prependbase) 
    7071        for rule in parentsheet.cssRules: 
    7172            if rule.type == css.CSSRule.IMPORT_RULE: 
     
    7980                sheet = css.CSSStyleSheet(href=str(href), media=havemedia, parentStyleSheet=parentsheet) 
    8081                sheet.cssText = text 
    81                 replaceurls(sheet, prependbase) 
    8282                for rule in _doimport(wantmedia, sheet, href): 
    8383                    yield rule