如何在手写笔上为 Opera 12 编写 hack?

How to write a hack for Opera 12 on the stylus?

下午好! 有必要使用 doesnotexist 在 Opera 12 的手写笔 hack 上书写:-o-prefocus,.selector

有这样的代码:

.class-name 
    background url('my.svg') no-repeat
    background-size contain

    .svg_no &
       &.icon_size
            &_16
                background url('my_size_16.png') no-repeat
            &_32
                background url('my_size_32.png') no-repeat
            &_56
                background url('my_size_56.png') no-repeat

现在在:

.class-name {
  background: url("my.svg") no-repeat;
  background-size: contain;
}
.svg_no .class-name.icon_size_16 {
   background: url("my_size_16.png") no-repeat;
}
.svg_no .class-name.icon_size_32 {
   background: url("my_size_32.png") no-repeat;
}
.svg_no .class-name.icon_size_56 {
  background: url("my_size_56.png") no-repeat;
}

如何添加此行 "doesnotexist: -o-prefocus, .selector",将得到:

.class-name {
  background: url("my.svg") no-repeat;
  background-size: contain;
}
doesnotexist:-o-prefocus, .class-name.icon_size_16,
.svg_no .class-name.icon_size_16 {
   background: url("my_size_16.png") no-repeat;
}
doesnotexist:-o-prefocus, .class-name.icon_size_32,
.svg_no .class-name.icon_size_32 {
   background: url("my_size_32.png") no-repeat;
}
doesnotexist:-o-prefocus, .class-name.icon_size_56,
.svg_no .class-name.icon_size_56 {
    background: url("my_size_56.png") no-repeat;
}

试试这个:

.class-name
    background url('my.svg') no-repeat
    background-size contain

    &.icon_size
        &_16
            /doesnotexist:-o-prefocus
            &
            .svg_no &
                background url('my_size_16.png') no-repeat
        &_32
            /doesnotexist:-o-prefocus
            &
            .svg_no &
                background url('my_size_32.png') no-repeat
        &_56
            /doesnotexist:-o-prefocus
            &
            .svg_no &
                background url('my_size_56.png') no-repeat