Opened 12 years ago

Closed 12 years ago

#5908 closed defect (fixed)

cssOptimize path breakage

Reported by: dante Owned by: James Burke
Priority: high Milestone: 1.1
Component: BuildTools Version: 1.0
Keywords: Cc:
Blocked By: Blocking:

Description

using the cssOptimize=comments on a custom css file breaks the paths.

to reproduce: create a sibling "ns" folder

ns/
   tests/test.css
   tests/test_Dialog.html

the tests.css has:

@import "../../dijit/themes/tundra/tundra.css";

before build, the paths work.

running a build_release-like build (see b1 build) causes the paths to the icons in tundra.css to be refered to in tests.css as:

url(dijit/themes/tundra/images/...)

when it should in fact be

url(../../dijit/themes/tundra/images...)

interestingly, if the test.css is in the top ns, and is referenced by the test_Dialog.html as @import "../test.css"; (and test.css's @import is simply ../dijit/themes/tundra/tundra.css), the path's work after build (if i'm not mistaken).

Attachments (2)

test_Dialog.html (948 bytes) - added by dante 12 years ago.
put in ns/tests/
test.css (104 bytes) - added by dante 12 years ago.
me also

Download all attachments as: .zip

Change History (3)

Changed 12 years ago by dante

Attachment: test_Dialog.html added

put in ns/tests/

Changed 12 years ago by dante

Attachment: test.css added

me also

comment:1 Changed 12 years ago by James Burke

Resolution: fixed
Status: newclosed

(In [12579]) Fixes #5908: problem with .. path collapsing. Lame coding mistake on my part. !strict

Note: See TracTickets for help on using tickets.