<!DOCTYPE html> | |
<title>fieldset and div with display: contents</title> | |
<link rel=fieldset-foo-ref.html> | |
<style> | |
div { display: contents; } | |
</style> | |
<p>There should be a normal fieldset below with the legend "Foo".</p> | |
<fieldset> | |
<div> | |
<legend>Foo</legend> | |
</div> | |
</fieldset> |