| <!DOCTYPE html> |
| <html> |
| <head> |
| <title>CSS filter invert: CSS invert filter shorthand</title> |
| <link rel="author" title="Tien Le" href="mailto:shonentokyo@gmail.com"> |
| <link rel="reviewer" title="Dirk Schulze" href="mailto:dschulze@adobe.com"> |
| <link rel="help" href="http://www.w3.org/TR/filter-effects-1/#FilterProperty"> |
| <link rel="help" href="http://www.w3.org/TR/filter-effects-1/#funcdef-invert"> |
| <link rel="help" href="http://www.w3.org/TR/filter-effects-1/#invertEquivalent"> |
| <link rel="match" href="filter-invert-002-ref.html"> |
| <meta name="assert" content="CSS invert filter will apply a color matrix to the rectangle to invert the colors. |
| Since invert is 100%, the yellow rectangle should become blue."> |
| <style type="text/css"> |
| |
| div { |
| width: 200px; |
| height: 200px; |
| background-color: yellow; |
| filter: invert(100%); |
| } |
| |
| </style> |
| </head> |
| <body> |
| <p>You should see a blue rectangle.</p> |
| |
| <div></div> |
| </body> |
| </html> |