@supports不支持clip-path,至少在样式组件上

时间:2017-11-16 11:42:33

标签: css styled-components

当我在样式组件上开发模块时,发现@supports存在问题(clip-path:circle())

const Element = styled.div`
  overflow: hidden;
  border-radius: 50%;
  clip-path: circle();

  @supports (clip-path: circle()) {
    overflow: auto;
    border-radius: 0;
  }
`;

似乎@supports无法使用clip-path。有没有人对此有任何想法?问题是CSS还是样式组件?

0 个答案:

没有答案