2013-02-28 4 views
3

나는 이상한 상황을 발견했다. 그것은에 버그가있을 것 같다 :레스 믹스 버그 : 의사 선택기 뒤

다음 코드를 확인하고 인라인

.nav-prev a{ 
    left:20px; 
    &:before { 
     top: 75%; 
     .chevron-line; 
     .rotate(); 
    } 
    // this mixin is causing an error and it wouldn't compile 
    &:after { 
     top: 25%; 
     .chevron-line; 
     .rotate (-45deg); 
    }​ 
} 

// // this is the fix applied for the previous error 
// .nav-prev a:after { 
// top: 25%; 
// .chevron-line; 
// .rotate (-45deg); 
// }​ 

.nav-next a{ 
    right:20px; 
    &:before{ 
     top: 25%; 
     .chevron-line; 
     .rotate(); 
    } 
    // strangely this one works and compile correctly 
    &:after{ 
     top: 75%; 
     .chevron-line; 
     .rotate (-45deg); 
    } 
} 

참고 코멘트 참조하십시오 의사 선택 후 : 내가 컴파일 LiveReload를 사용합니다.

질문 내 구문 뭐가 잘못

? 아니면 덜한 버그입니까? 아니면 컴파일러 버그입니까?

감사합니다.

답변

2

문제 코드를 복사하여 this compiler에 붙여 넣을 때 오류가 발생하여 숨겨진 문자가 표시됩니다. 이 문자는 이 아니며 위에 주어진 .nav-next a의 작업 코드에이 있으므로 가능성이 높습니다.

.nav-prev a{ 
    left:20px; 
    &:before { 
     top: 75%; 
     .chevron-line; 
     .rotate(); 
    } 
    // this mixin is causing an error and it wouldn't compile 
    &:after { 
     top: 25%; 
     .chevron-line; 
     .rotate (-45deg); 
    }​<--HIDDEN "DOT" CHARACTER SHOWING UP RIGHT HERE 
} 
+0

감사합니다. – ifdion