display-contents-fieldset.html (671B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Display: display:contents and HTML fieldset and legend elements</title> 4 <link rel="author" title="Rune Lillesveen" href="mailto:futhark@chromium.org"> 5 <link rel="help" href="https://drafts.csswg.org/css-display/#unbox-html"> 6 <link rel="match" href="display-contents-pass-ref.html"> 7 <style> 8 /* Disable kerning because kerning may differ for different node tree. */ 9 html { font-kerning: none; font-feature-settings: "kern" off; } 10 fieldset, legend { 11 all: initial; 12 border: 10px solid red; 13 display: contents; 14 } 15 </style> 16 <p>You should see the word PASS below.</p> 17 P<fieldset>A<legend>S</legend>S</fieldset>