layout/style/test/descriptor_database.js

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

michael@0 1 /* -*- Mode: Java; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
michael@0 2 /* vim: set shiftwidth=4 tabstop=4 autoindent cindent noexpandtab: */
michael@0 3 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 4 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 6
michael@0 7 // Each property has the following fields:
michael@0 8 // domProp: The name of the relevant member of nsIDOM[NS]CSS2Properties
michael@0 9 // values: Strings that are values for the descriptor and should be accepted.
michael@0 10 // invalid_values: Things that are not values for the descriptor and
michael@0 11 // should be rejected.
michael@0 12
michael@0 13 var gCSSFontFaceDescriptors = {
michael@0 14 "font-family": {
michael@0 15 domProp: "fontFamily",
michael@0 16 values: [ "\"serif\"", "\"cursive\"", "seriff", "Times New Roman", "TimesRoman", "\"Times New Roman\"" ],
michael@0 17 /* not clear that the generics are really invalid */
michael@0 18 invalid_values: [ "sans-serif", "Times New Roman, serif", "'Times New Roman', serif", "cursive", "fantasy" ]
michael@0 19 },
michael@0 20 "font-stretch": {
michael@0 21 domProp: "fontStretch",
michael@0 22 values: [ "normal", "ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded" ],
michael@0 23 invalid_values: [ "wider", "narrower" ]
michael@0 24 },
michael@0 25 "font-style": {
michael@0 26 domProp: "fontStyle",
michael@0 27 values: [ "normal", "italic", "oblique" ],
michael@0 28 invalid_values: []
michael@0 29 },
michael@0 30 "font-weight": {
michael@0 31 domProp: "fontWeight",
michael@0 32 values: [ "normal", "400", "bold", "100", "200", "300", "500", "600", "700", "800", "900" ],
michael@0 33 invalid_values: [ "107", "399", "401", "699", "710", "bolder", "lighter" ]
michael@0 34 },
michael@0 35 "src": {
michael@0 36 domProp: null,
michael@0 37 values: [
michael@0 38 "url(404.ttf)",
michael@0 39 "url(\"404.eot\")",
michael@0 40 "url(\'404.otf\')",
michael@0 41 "url(404.ttf) format(\"truetype\")",
michael@0 42 "url(404.ttf) format(\"truetype\", \"opentype\")",
michael@0 43 "url(404.ttf) format(\"truetype\", \"opentype\"), url(\'404.eot\')",
michael@0 44 "local(Times New Roman)",
michael@0 45 "local(\'Times New Roman\')",
michael@0 46 "local(\"Times New Roman\")",
michael@0 47 "local(serif)", /* is this valid? */
michael@0 48 "local(\"serif\")",
michael@0 49 "url(404.ttf) format(\"truetype\", \"unknown\"), local(Times New Roman), url(\'404.eot\')",
michael@0 50 ],
michael@0 51 invalid_values: [
michael@0 52 "url(404.ttf) format(truetype)",
michael@0 53 "url(404.ttf) format(\"truetype\" \"opentype\")",
michael@0 54 "url(404.ttf) format(\"truetype\",)",
michael@0 55 "local(\"Times New\" Roman)",
michael@0 56 ]
michael@0 57 },
michael@0 58 "unicode-range": {
michael@0 59 domProp: null,
michael@0 60 values: [ "U+0-10FFFF", "U+3-7B3", "U+3??", "U+6A", "U+3????", "U+???", "U+302-302", "U+0-7,U+A-C", "U+100-17F,U+200-17F", "U+3??, U+500-513 ,U+612 , U+4????", "U+1FFF,U+200-27F" ],
michael@0 61 invalid_values: [ "U+1????-2????", "U+0-7,A-C", "U+100-17F,200-17F" ]
michael@0 62 }
michael@0 63 }

mercurial