[CSS container Queries] Include container queries in RuleSets
[webkit.git] / LayoutTests / imported / w3c / web-platform-tests / css / css-contain / contain-inline-size-fieldset-ref.html
blobfa5415db2124a0337c376114fdf1dc1670c811d6
1 <!DOCTYPE html>
2 <title>contain:inline-size and fieldset</title>
3 <link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
4 <link rel="help" href="https://drafts.csswg.org/css-contain/#contain-property">
5 <link rel="help" href="https://drafts.csswg.org/css-contain-3/#containment-inline-size">
6 <p>The fieldset below has inline-size containment. It should not make any
7 inline-size room for the blue legend line, but it should fit the hotpink
8 square in the block direction (but not in the inline direction, where it
9 should overflow the right border of the fieldset.</p>
10 <fieldset style="border:20px solid; width:0; min-width:0;">
11 <legend>
12 <div style="width:200px; height:2px; background:blue;"></div>
13 </legend>
14 <div style="width:100px; height:100px; background:hotpink;"></div>
15 </fieldset>