Can't Make Exercise 2 To Work


<Below this line, add a link to the EXACT exercise that you are stuck at.>

<In what way does your code behave incorrectly? Include ALL error messages.>
I just can’t seem to pass it. It keeps saying: Did you assign backface visibility to .front in main.scss?


@mixin stripes($direction, $width-percent, $stripe-color, $stripe-background: #FFF) {
background: repeating-linear-gradient(
$stripe-background ($width-percent - 1),
$stripe-color 1%,
$stripe-background $width-percent

@mixin transform($transformation) {
transform: $transformation;
-webkit-transform: $transformation;
-moz-transform: $transformation;
-ms-transform: $transformation;
-o-transform: $transformation;

@mixin photo-content {
object-fit: cover;

@mixin backface-visibility {
backface-visibility: hidden;
-webkit-backface-visibility: hidden;
-moz-backface-visibility: hidden;
-ms-backface-visibility: hidden;
-o-backface-visibility: hidden;

.notecard {
width: 300px;
height: 180px;
border: 1px solid black;
display: inline-block;
margin: 20px;
font-family: Roboto, sans-serif;
box-shadow: 1px 1px 2px 2px rgba(0,0,0,.2);

@include transform (rotatey(-180deg));

.front, .back {
width: 100%;
height: 100%;
position: absolute;
@include backface-visibility;

.front {
z-index: 3;
font-size: 20px;

.word {
  display: block;
  text-align: center;
  position: relative;
  top: 40%;


.back {
z-index: 1;
word-wrap: break-word;
line-height: 1.6;

.definition {
  width: 100%;
  height: 100%;
  .photo {
    width: 60%;
    margin: 0px auto;


<do not remove the three backticks above>

I have the exact same problem!
The error keeps popping up, even though I included it where they told me.
I think there’s something wrong with there syntax-error-checking-thing. Also, if you look in main.css, it doesn’t include the @import backface-visibility’s code in .front and .back. I thought that might be the issue but I added the @import code to the .front in main.scss and it still gave me the error message. I think the syntax-error-checking-thing is checking the main.css code, and the main.css code isn’t being updated correctly.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.