File tree Expand file tree Collapse file tree
css/css-overflow/line-clamp Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < meta charset ="utf-8 ">
3+ < title > A line-clamp container must establish an independent block formatting context</ title >
4+ < link rel ="help " href ="https://bugzilla.mozilla.org/show_bug.cgi?id=2042999 ">
5+ < link rel ="help " href ="https://drafts.csswg.org/css-overflow-4/#line-clamp-containers ">
6+ < link rel ="author " title ="Seva Alipov " href ="mailto:salipov@mozilla.com ">
7+ < link rel ="stylesheet " href ="/fonts/ahem.css ">
8+ < style >
9+ .clamp-box {
10+ border : 1px solid;
11+ width : 50px ;
12+ height : fit-content;
13+ display : flow-root;
14+ font-family : ahem;
15+ }
16+ .float {
17+ float : left;
18+ width : 100px ;
19+ height : 100px ;
20+ border : 1px solid black;
21+ padding : 10px ;
22+ font-family : ahem;
23+ }
24+ </ style >
25+ < div class ="outer ">
26+ < div class ="float "> F</ div >
27+ < div class ="clamp-box "> A…</ div >
28+ </ div >
Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < meta charset ="utf-8 ">
3+ < title > A line-clamp container must establish an independent block formatting context</ title >
4+ < link rel ="help " href ="https://bugzilla.mozilla.org/show_bug.cgi?id=2042999 ">
5+ < link rel ="help " href ="https://drafts.csswg.org/css-overflow-4/#line-clamp-containers ">
6+ < link rel ="author " title ="Seva Alipov " href ="mailto:salipov@mozilla.com ">
7+ < link rel ="match " href ="line-clamp-bfc-ref.html ">
8+ < link rel ="stylesheet " href ="/fonts/ahem.css ">
9+ < style >
10+ .clamp-box {
11+ border : 1px solid;
12+ width : 50px ;
13+ overflow : clip;
14+ line-clamp : 1 ;
15+ font-family : ahem;
16+ }
17+ .float {
18+ float : left;
19+ width : 100px ;
20+ height : 100px ;
21+ border : 1px solid black;
22+ padding : 10px ;
23+ font-family : ahem;
24+ }
25+ </ style >
26+ < div class ="float "> F</ div >
27+ <!-- .clamp-box should exclude .float -->
28+ < div class ="clamp-box "> A< br > B</ div >
You can’t perform that action at this time.
0 commit comments