Changeset 3192:ac7e04cf9edc in livinglogic.python.xist for src/ll/xist/css.py

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:
1 modified

Legend:

Unmodified
Added
Removed
  • 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