Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / invalidation-errors.html
blob055d85971a4de62393e86dd5fed30be13db6d9d8
1 <head>
2 <style type="text/css">
3 #testblock {
4 width: 200px;
5 height: 200px;
6 /* invalid width and height */
7 width: 500px garbage;
8 height: 500px 200px;
10 /* Font-size */
11 font-size: 14px;
12 /* Invalid font-sizes */
13 font-size: 36px garbage;
15 float: left;
16 float: right garbage;
17 /* Trying colors */
18 /* The !important is here so you don't break this while fixing this bug */
19 color: white !important;
20 color: black;
21 background: darkgreen;
22 /* the color and background-color below should be invalidated,
23 so the text should be green */
24 color: black garbage !important;
25 background-color: darkred garbage;
26 background-repeat: no-repeat;
28 /* These ones actually get invalidated correctly */
29 background: url('http://webkit.opendarwin.org/images/welcomeopen.gif') garbage;
30 background-repeat: garbage repeat-x;
32 /* Trying text and font properties */
33 font-family: sans-serif;
34 font-weight: 900;
35 text-decoration: none;
36 word-spacing: normal;
37 letter-spacing: normal;
38 text-align: left;
39 direction: ltr;
40 text-transform: lowercase;
41 font-variant: normal;
42 white-space: normal;
44 /* Invalid text and font properties */
45 /* This one actually DOES get invalidated */
46 font: "Comic Sans MS" woopdidoo;
47 font-weight: 500 500;
48 /* This one actually DOES get invalidated */
49 text-decoration: line-through garbage;
50 word-spacing: 10px garbage;
51 letter-spacing: 5px garbage;
52 text-align: right left;
53 direction: rtl garbage;
54 text-transform: capitalize garbage;
55 font-variant: small-caps garbage;
56 white-space: pre garbage;
58 outline: none;
59 outline: red 3px dotted garbage;
60 outline: red solid garbage;
62 overflow: hidden;
63 overflow: visible scroll;
65 #Content {
66 display: inline;
67 /* invalid */
68 display: block garbage;
70 /* All margins, paddings and borders until the next comment are incorrect and
71 should be invalidated, resulting in padding and margin 0 */
72 margin-left: 50px garbage;
73 margin-right: 50px garbage;
74 margin-top: 50px garbage;
75 margin-bottom: 50px garbage;
76 padding-left: 50px garbage;
77 padding-right: 50px garbage;
78 padding-top: 50px garbage;
79 padding-bottom: 50px garbage;
80 border: 1px solid garbage;
81 border-top: yellow garbage;
82 border-right: blue garbage;
83 border-bottom: yellow garbage;
84 border-left: blue garbage;
85 /* The values below get invalidated correctly but are in here
86 for completeness. */
87 margin: 100px 100px 100px 100px garbage;
88 padding: 100px 100px 100px 100px garbage;
90 </style>
91 </head>
93 <body>
94 <p><a href="https://bugs.webkit.org/show_bug.cgi?id=7118">bug 7118</a>: Wrong property values do not get invalidated correctly.</p>
95 <div id="Content">
96 <div id="testblock">
97 This text should be
98 left-aligned, all lower-case,
99 normal font, white, 14px,
100 bold, normally spaced
101 and wrapped, in a
102 darkgreen 200x200px div
103 in the top left corner
104 with no borders or
105 outlines.
106 </div>
107 </div>
109 </body>