lang-selector-005

Lang selector and document language set via server's content-language

WeasyPrint

This browser

Flags
http
Assertion
Lang attribute is selectable when specified by HTTP header.

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html>
 3     <head>
 4         <title>CSS Test: Lang selector and document language set via server's content-language</title>
 5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
 6         <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#lang">
 7         <meta name="flags" content="http">
 8         <meta name="assert" content="Lang attribute is selectable when specified by HTTP header.">
 9         <style type="text/css">
10             #prerequisite:lang(fr)
11             {
12                 display: none;
13             }
14             div:lang(fr)
15             {
16                 color: green
17             }
18         </style>
19     </head>
20     <body>
21         <p id="prerequisite">PREREQUISITE: Set the page "content-language" header to "fr" (French).</p>
22         <p>Test passes if the "Filler Text" below is green.</p>
23         <div>Filler Text</div>
24     </body>
25 </html>