Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
michael@0 | 1 | <!DOCTYPE html> |
michael@0 | 2 | <!-- |
michael@0 | 3 | Any copyright is dedicated to the Public Domain. |
michael@0 | 4 | http://creativecommons.org/publicdomain/zero/1.0/ |
michael@0 | 5 | --> |
michael@0 | 6 | <html xmlns="http://www.w3.org/1999/xhtml"> |
michael@0 | 7 | <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=822014 --> |
michael@0 | 8 | <head> |
michael@0 | 9 | <title>Test clip-path on <div> with border</title> |
michael@0 | 10 | <style> |
michael@0 | 11 | |
michael@0 | 12 | html, body { |
michael@0 | 13 | border: 0; margin: 0; |
michael@0 | 14 | } |
michael@0 | 15 | |
michael@0 | 16 | </style> |
michael@0 | 17 | </head> |
michael@0 | 18 | <body> |
michael@0 | 19 | <div style="clip-path: url(#cp); width: 200px; height: 200px; background: yellow; border: solid 100px black; margin: 50px;"></div> |
michael@0 | 20 | <svg xmlns="http://www.w3.org/2000/svg" height="0"> |
michael@0 | 21 | <clipPath id="cp"> |
michael@0 | 22 | <path d="M50,50 150,50 150,150 50,150 z"/> |
michael@0 | 23 | </clipPath> |
michael@0 | 24 | </svg> |
michael@0 | 25 | </body> |
michael@0 | 26 | </html> |