문제

Does Less have any support for the Web Components Custom Elements spec? (http://w3c.github.io/webcomponents/spec/custom/ or more accessible http://www.x-tags.org/docs)

도움이 되었습니까?

해결책

Less does not put any restrictions on used selectors/properties/values as long as they meet the base CSS grammar, e.g. the following Less code:

whatever {
    whatever-else: I dont care;
    &:tlhIngan(Hol)[DaH="mojaq-mey-vam"] {
        color: pitch black #2;
    }
}

results in this CSS:

whatever {
  whatever-else: I dont care;
}
whatever:tlhIngan(Hol)[DaH="mojaq-mey-vam"] {
  color: pitch black #2;
}

Additionally there's special escaping syntax to pass just any characters through (i.e. ~"whatever-'characters'-here//**\@\$^%\n").

So to answer the question: Yes, Less supports custom elements as well as any future standard elements unless they introduce a new incompatible syntax.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top