Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /html/rendering/non-replaced-elements/the-fieldset-and-legend-elements/fieldset-border-gap-negative-margin.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>fieldset border gap with negative margin</title>
<link rel=match href=no-red-ref.html>
<style>
fieldset { border:none; border-left: 100px solid red; margin: 0; padding: 0; height:100px; }
legend { padding: 0; margin-left: -100px; width: 100px; height: 100px; transform: rotate(45deg); }
</style>
<p>There should be no red.</p>
<fieldset>
<legend></legend>
</fieldset>