IOW, drop the requirement that the parent *content* is a <fieldset>, thus allowing a <legend> to become the fieldset legend also when it's wrapped in one or more nodes that are styled with display:contents.