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

Key: LPP-2974
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: P1 P1
Assignee: Frisco Del Rosario
Reporter: Pablo Kang
Votes: 0
Watchers: 1
Operations

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

CSS import is relative to main LZX file

Created: 25/Oct/06 04:33 PM   Updated: 03/Jan/07 04:56 PM
Component/s: LFC - CSS
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

Severity: Critical
Fixed in Change#: 3,216
Runtime: N/A
Fix in hand: False


 Description  « Hide
Should be relative to the file where the import is declared.

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Frisco Del Rosario - 26/Oct/06 11:07 AM
Yup, is true.

I set up identical directories one level apart, and altered the CSS file in one of the directories. The library's <stylesheet src="foo.css"> grabbed the 'wrong' one.

Frisco Del Rosario - 27/Oct/06 03:58 PM
Test case is test/bugs/lpp-2974/lpp-2974.lzx.

Benjamin Shine - 29/Dec/06 01:22 PM
I think this test's behavior is correct. It loads foo.css from the sibling to lpp-2974.lzx, which creates a red bg color. The box is red. This is correct. lpp-2974.lzx doesn't include anotherlevel/foo.css, so there's no way that it *would* be green ever.

Benjamin Shine - 29/Dec/06 01:30 PM
Assigning back to Frisco for a better test case.

Benjamin Shine - 30/Dec/06 05:14 PM
I have a change submitted for review which fixes this. Also, Frisco is going to check in an improved test case which actually demonstrates the bug.

Benjamin Shine - 03/Jan/07 04:56 PM
Fixed in changeset 3216.