summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/CSS2/colors/bidi-color-001.xht
blob: 3159f30ea7ac18120a1a39cf49be9900a1355d55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>CSS Test: Applying color to elements split by bidi</title>
    <link rel="author" title="Eira Monstad, Opera Software ASA" href="mailto:public-testsuites@opera.com"/>
    <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#bidi-box-model"/>
    <link rel="help" href="http://www.w3.org/TR/CSS21/colors.html#colors"/>
    <meta name="assert" content="Color should be applied only to the part of the text it has been specified for, even after bidi has rearranged the words to be non-consecutive"/>
    <style type="text/css"><![CDATA[
      span {
      color: blue;
      }
      ]]></style>
  </head>

  <body>
    <p>
      Words 2 and 4 from left should be <span>blue</span>:
    </p>
    <p>abc <span>def &#1604;&#1610;&#1589;</span> &#1575;&#1601;&#1578;</p>

  </body>
</html>