quote-scoping-001.html (797B)
1 <!doctype html> 2 <html lang=en> 3 <meta charset=utf-8> 4 <title>CSS-contain test: style containment and open-quote</title> 5 <link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net"> 6 <meta name=flags content=""> 7 <meta name=assert content="style containment cause the open-quote value of the content property are scoped to the element's subtree"> 8 <link rel="match" href="reference/quote-scoping-001-ref.html"> 9 <link rel=help href="https://drafts.csswg.org/css-contain-1/#containment-style"> 10 11 <style> 12 13 div { 14 quotes: "A" "Z" "1" "9"; 15 } 16 div::before, span::before { 17 content: open-quote; 18 } 19 div::after { 20 content: close-quote; 21 } 22 span { 23 contain: style; 24 } 25 </style> 26 27 <p>Test passes if the text below is "A1Z" (not including the quotation marks).<p> 28 <div><span></span></div>