text-shadow-orientation-upright-001.html (2062B)
1 <!DOCTYPE html> 2 3 <meta charset="UTF-8"> 4 5 <title>CSS Writing Modes Test: 'text-shadow' and upright text orientation</title> 6 7 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> 8 <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#physical-only"> 9 <link rel="help" href="https://www.w3.org/TR/css-text-decor-3/#text-shadow-property"> 10 <link rel="match" href="reference/text-shadow-orientation-upright-001-ref.html"> 11 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css"> 12 13 <!-- 14 15 Issue 229211: text-shadow is drawn at the invalid position in vertical writing mode 16 on Chromium for Mac 17 https://bugs.chromium.org/p/chromium/issues/detail?id=229211#c8 18 19 --> 20 21 <meta content="This test checks that text-shadow offsets are purely physical and do not change with vertical writing mode."> 22 23 <style> 24 div 25 { 26 color: yellow; 27 font-family: Ahem; 28 font-size: 100px; 29 line-height: 1; 30 margin: calc(1em + 8px) auto auto 1em; 31 text-orientation: upright; 32 writing-mode: vertical-rl; 33 34 text-shadow: 0em -1em purple, 1em 0em blue, 0em 1em fuchsia, -1em 0em orange; 35 } 36 37 /* 38 39 Value: [ <color>? && <length>{2,3} ]# 40 41 color: color of text-shadow 42 43 1st <length> 44 Specifies the horizontal offset 45 of the shadow. A positive value draws a shadow that is 46 offset to the right of the box, a negative length to the 47 left. 48 49 2nd <length> 50 Specifies the vertical offset 51 of the shadow. A positive value offsets the shadow down, 52 a negative one up. 53 54 */ 55 56 </style> 57 58 <div>A</div> 59 60 <!-- 61 62 ......... 63 . . 64 . . <-purple 65 . . 66 ....................... 67 . . . . 68 orange-> . . yel . . <-blue 69 . . low . . 70 ....................... 71 . . 72 . . <-fuchsia 73 . . 74 ......... 75 76 -->