History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: LPP-3477
Type: Task Task
Status: Open Open
Priority: P2 P2
Assignee: Unassigned
Reporter: Elliot Winard
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
OpenLaszlo

CSS should support inclusion of resource

Created: 26/Jan/07 08:14 AM   Updated: 17/Oct/07 02:49 PM
Component/s: LFC - CSS
Affects Version/s: OL4B1
Fix Version/s: Future

Time Tracking:
Not Specified

Severity: Minor
Runtime: N/A
Fix in hand: False


 Description  « Hide
CSS should support inclusion of resource

Currently, CSS-based skinning can require two files - an LZX file that includes different resources and a change to CSS file that links view to new resources.

CSS compiler should support inclusion of filesystem path in CSS -

[name='controls'] basebutton[name='close']{
    closeresource:"gloss_blue_windowcontrols_close.jpg";
}

and possibly http relative and/or universal paths -
/* contact item elements */
contactitem [name='contactitembknd'] {
    resource:"http:resources/gloss_blue_listitem.png";
}


 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Elliot Winard - 26/Jan/07 08:21 AM
or more CSSy -

contactitem [name='contactitembknd'] {
    background:url(http://www.manisheriar.com/images/bgWrapper.jpg);
}

Sarah Allen - 26/Jan/07 08:32 AM
This is a huge usability issue with the current css implementation -- it dramatically reduces the effectiveness of the feature and causes developers to have an additional annoying size optimization step where they have to create a special library file that only includes the resources they need (usually this is 95 resources that are from some unfamiliar library file and 2 custom resources), rather than simply overriding them via css.

Jim Grandy - 26/Jan/07 05:18 PM
P2 for OL4/3.4, but should be a P1 for subsequent OL4 releases.

Elliot Winard - 26/Jan/07 05:48 PM
this needs to work for images - PNG, GIF, JPEG - and also SWFs.

Elliot Winard - 02/Feb/07 09:21 AM
this would be for compile-time skinning via CSS. it is currently possible to include relative paths for assets that are loaded at runtime but that impairs performance of applications considerably.

P T Withington - 31/Aug/07 09:06 AM
It seems to me that what we want is some compiler parameter that tells the compiler to convert CSS urls automagically into compiled-in resources. Probably this would be based on the resource size, because you are effectively trading off the size of the initial binary download against having to open extra TCP connections at runtime. If we did this, then we could do away with resource declarations.

Elliot Winard - 31/Aug/07 09:13 AM
that would be great. Emerald folks may be able to speak more to why we'd want to have CSS run at compile-time - I can see speed-to-rendering as a eason for compile-time CSS.