2012-05-21 04:12:37 -07:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
MimeNotCss=The stylesheet %1$S was not loaded because its MIME type, "%2$S", is not "text/css".
|
|
|
|
MimeNotCssWarn=The stylesheet %1$S was loaded as CSS even though its MIME type, "%2$S", is not "text/css".
|
|
|
|
|
|
|
|
PEUnexpEOF2=Unexpected end of file while searching for %1$S.
|
|
|
|
PEParseRuleWSOnly=Whitespace-only string given to be parsed as rule.
|
|
|
|
PEDeclDropped=Declaration dropped.
|
|
|
|
PEDeclSkipped=Skipped to next declaration.
|
|
|
|
PEUnknownProperty=Unknown property '%1$S'.
|
2008-08-07 16:15:40 -07:00
|
|
|
PEValueParsingError=Error in parsing value for '%1$S'.
|
|
|
|
PEExpectEndValue=Expected end of value but found '%1$S'.
|
2013-02-09 22:56:49 -08:00
|
|
|
PERuleTrailing=Expected end of rule but found '%1$S'.
|
2012-12-22 18:30:55 -08:00
|
|
|
PESkipAtRuleEOF2=end of at-rule
|
2007-03-22 10:30:00 -07:00
|
|
|
PEUnknownAtRule=Unrecognized at-rule or error parsing at-rule '%1$S'.
|
|
|
|
PECharsetRuleEOF=charset string in @charset rule
|
|
|
|
PECharsetRuleNotString=Expected charset string but found '%1$S'.
|
|
|
|
PEGatherMediaEOF=end of media list in @import or @media rule
|
|
|
|
PEGatherMediaNotComma=Expected ',' in media list but found '%1$S'.
|
|
|
|
PEGatherMediaNotIdent=Expected identifier in media list but found '%1$S'.
|
2013-06-17 14:26:08 -07:00
|
|
|
PEGatherMediaReservedMediaType=Found reserved keyword '%1$S' when looking for media type.
|
2007-03-22 10:30:00 -07:00
|
|
|
PEImportNotURI=Expected URI in @import rule but found '%1$S'.
|
2010-02-17 13:02:56 -08:00
|
|
|
PEImportBadURI=Invalid URI in @import rule: '%1$S'.
|
2007-03-22 10:30:00 -07:00
|
|
|
PEImportUnexpected=Found unexpected '%1$S' within @import.
|
2012-08-01 17:32:12 -07:00
|
|
|
PEGroupRuleEOF2=end of @media, @supports or @-moz-document rule
|
2011-04-21 20:17:32 -07:00
|
|
|
PEGroupRuleNestedAtRule=%1$S rule not allowed within @media or @-moz-document rule.
|
2013-11-26 01:36:52 -08:00
|
|
|
PEMozDocRuleBadFunc2=Expected url(), url-prefix(), domain() or regexp() in @-moz-document rule but found '%1$S'.
|
2007-03-22 10:30:00 -07:00
|
|
|
PEMozDocRuleNotURI=Expected URI in @-moz-document rule but found '%1$S'.
|
2011-04-28 10:21:37 -07:00
|
|
|
PEMozDocRuleNotString=Expected string in @-moz-document rule regexp() function but found '%1$S'.
|
2011-12-14 20:42:15 -08:00
|
|
|
PEMozDocRuleEOF=next URI in @-moz-document rule
|
2007-03-22 10:30:00 -07:00
|
|
|
PEAtNSPrefixEOF=namespace prefix in @namespace rule
|
|
|
|
PEAtNSURIEOF=namespace URI in @namespace rule
|
|
|
|
PEAtNSUnexpected=Unexpected token within @namespace: '%1$S'.
|
2011-04-11 23:18:43 -07:00
|
|
|
PEKeyframeNameEOF=name of @keyframes rule.
|
|
|
|
PEKeyframeBadName=Expected identifier for name of @keyframes rule.
|
|
|
|
PEKeyframeBrace=Expected opening { of @keyframes rule.
|
2007-03-22 10:30:00 -07:00
|
|
|
PESkipDeclBraceEOF=closing } of declaration block
|
|
|
|
PESkipRSBraceEOF=closing } of invalid rule set
|
|
|
|
PEBadSelectorRSIgnored=Ruleset ignored due to bad selector.
|
2011-04-11 23:18:43 -07:00
|
|
|
PEBadSelectorKeyframeRuleIgnored=Keyframe rule ignored due to bad selector.
|
2007-03-22 10:30:00 -07:00
|
|
|
PESelectorListExtraEOF=',' or '{'
|
|
|
|
PESelectorListExtra=Expected ',' or '{' but found '%1$S'.
|
|
|
|
PESelectorGroupNoSelector=Selector expected.
|
|
|
|
PESelectorGroupExtraCombinator=Dangling combinator.
|
|
|
|
PEClassSelEOF=class name
|
|
|
|
PEClassSelNotIdent=Expected identifier for class selector but found '%1$S'.
|
|
|
|
PETypeSelEOF=element type
|
|
|
|
PETypeSelNotType=Expected element name or '*' but found '%1$S'.
|
|
|
|
PEUnknownNamespacePrefix=Unknown namespace prefix '%1$S'.
|
|
|
|
PEAttributeNameEOF=attribute name
|
|
|
|
PEAttributeNameExpected=Expected identifier for attribute name but found '%1$S'.
|
|
|
|
PEAttributeNameOrNamespaceExpected=Expected attribute name or namespace but found '%1$S'.
|
|
|
|
PEAttSelNoBar=Expected '|' but found '%1$S'.
|
|
|
|
PEAttSelInnerEOF=part of attribute selector
|
|
|
|
PEAttSelUnexpected=Unexpected token in attribute selector: '%1$S'.
|
|
|
|
PEAttSelValueEOF=attribute value
|
|
|
|
PEAttSelCloseEOF=']' to end attribute selector
|
|
|
|
PEAttSelNoClose=Expected ']' to terminate attribute selector but found '%1$S'.
|
|
|
|
PEAttSelBadValue=Expected identifier or string for value in attribute selector but found '%1$S'.
|
|
|
|
PEPseudoSelEOF=name of pseudo-class or pseudo-element
|
|
|
|
PEPseudoSelBadName=Expected identifier for pseudo-class or pseudo-element but found '%1$S'.
|
|
|
|
PEPseudoSelNonFunc=Function token for non-function pseudo-class or pseudo-element, or the other way around, when reading '%1$S'.
|
|
|
|
PEPseudoSelNotPE=Expected pseudo-element but found '%1$S'.
|
|
|
|
PEPseudoSelDoubleNot=Negation pseudo-class can't be negated '%1$S'.
|
|
|
|
PEPseudoSelPEInNot=Pseudo-elements can't be negated '%1$S'.
|
|
|
|
PEPseudoSelNewStyleOnly=This pseudo-element must use the "::" form: '%1$S'.
|
2013-11-29 17:17:51 -08:00
|
|
|
PEPseudoSelEndOrUserActionPC=Expected end of selector or a user action pseudo-class after pseudo-element but found '%1$S'.
|
2013-12-01 18:06:20 -08:00
|
|
|
PEPseudoSelNoUserActionPC=Expected end of selector after pseudo-element that does not support user action pseudo-classes but found '%1$S'.
|
2007-03-22 10:30:00 -07:00
|
|
|
PEPseudoSelMultiplePE=Extra pseudo-element '%1$S'.
|
|
|
|
PEPseudoSelUnknown=Unknown pseudo-class or pseudo-element '%1$S'.
|
|
|
|
PENegationEOF=selector within negation
|
|
|
|
PENegationBadInner=Malformed simple selector as negation pseudo-class argument '%1$S'.
|
|
|
|
PENegationNoClose=Missing closing ')' in negation pseudo-class '%1$S'.
|
|
|
|
PENegationBadArg=Missing argument in negation pseudo-class '%1$S'.
|
|
|
|
PEPseudoClassArgEOF=argument to pseudo-class selector
|
|
|
|
PEPseudoClassArgNotIdent=Expected identifier for pseudo-class parameter but found '%1$S'.
|
2008-03-07 23:39:35 -08:00
|
|
|
PEPseudoClassArgNotNth=Expected part of argument to pseudo-class but found '%1$S'.
|
2007-03-22 10:30:00 -07:00
|
|
|
PEPseudoClassNoClose=Missing closing ')' in pseudo-class, found '%1$S' instead.
|
|
|
|
PEPseudoClassNoArg=Missing argument in pseudo-class '%1$S'.
|
2013-11-27 22:46:38 -08:00
|
|
|
PEPseudoClassNotUserAction=Expected end of selector or a user action pseudo-class after pseudo-element but found pseudo-class '%1$S'.
|
2007-03-22 10:30:00 -07:00
|
|
|
PESelectorEOF=selector
|
|
|
|
PEBadDeclBlockStart=Expected '{' to begin declaration block but found '%1$S'.
|
|
|
|
PEColorEOF=color
|
|
|
|
PEColorNotColor=Expected color but found '%1$S'.
|
|
|
|
PEColorComponentEOF=color component
|
|
|
|
PEExpectedPercent=Expected a percentage but found '%1$S'.
|
|
|
|
PEExpectedInt=Expected an integer but found '%1$S'.
|
|
|
|
PEColorBadRGBContents=Expected number or percentage in rgb() but found '%1$S'.
|
|
|
|
PEColorComponentBadTerm=Expected '%2$S' but found '%1$S'.
|
|
|
|
PEColorHueEOF=hue
|
|
|
|
PEExpectedComma=Expected ',' but found '%1$S'.
|
|
|
|
PEColorSaturationEOF=saturation
|
|
|
|
PEColorLightnessEOF=lightness
|
|
|
|
PEColorOpacityEOF=opacity in color value
|
|
|
|
PEExpectedNumber=Expected a number but found '%1$S'.
|
|
|
|
PEExpectedCloseParen=Expected ')' but found '%1$S'.
|
|
|
|
PEDeclEndEOF=';' or '}' to end declaration
|
|
|
|
PEParseDeclarationNoColon=Expected ':' but found '%1$S'.
|
|
|
|
PEParseDeclarationDeclExpected=Expected declaration but found '%1$S'.
|
|
|
|
PEEndOfDeclEOF=end of declaration
|
|
|
|
PEImportantEOF=important
|
|
|
|
PEExpectedImportant=Expected 'important' but found '%1$S'.
|
|
|
|
PEBadDeclEnd=Expected ';' to terminate declaration but found '%1$S'.
|
|
|
|
PEBadDeclOrRuleEnd2=Expected ';' or '}' to terminate declaration but found '%1$S'.
|
|
|
|
PEInaccessibleProperty2=Cannot specify value for internal property.
|
|
|
|
PECommentEOF=end of comment
|
|
|
|
SEUnterminatedString=Found unclosed string '%1$S'.
|
2008-08-07 16:15:40 -07:00
|
|
|
PEFontDescExpected=Expected font descriptor but found '%1$S'.
|
|
|
|
PEUnknownFontDesc=Unknown descriptor '%1$S' in @font-face rule.
|
2008-07-26 09:14:48 -07:00
|
|
|
PEMQExpectedExpressionStart=Expected '(' to start media query expression but found '%1$S'.
|
|
|
|
PEMQExpressionEOF=contents of media query expression
|
|
|
|
PEMQExpectedFeatureName=Expected media feature name but found '%1$S'.
|
|
|
|
PEMQExpectedFeatureNameEnd=Expected ':' or ')' after media feature name but found '%1$S'.
|
2008-09-06 07:04:28 -07:00
|
|
|
PEMQNoMinMaxWithoutValue=Media features with min- or max- must have a value.
|
2008-07-26 09:14:48 -07:00
|
|
|
PEMQExpectedFeatureValue=Found invalid value for media feature.
|
2009-02-11 20:15:56 -08:00
|
|
|
PEBadFontBlockStart=Expected '{' to begin @font-face rule but found '%1$S'.
|
|
|
|
PEBadFontBlockEnd=Expected '}' to end @font-face rule but found '%1$S'.
|
2011-04-11 23:18:43 -07:00
|
|
|
PEAnonBoxNotAlone=Did not expect anonymous box.
|
2013-05-19 19:59:20 -07:00
|
|
|
PEFFVUnexpectedEOF=Unexpected end of @font-feature-values rule.
|
|
|
|
PEFFVBlockStart=Expected opening { of @font-feature-values rule but found '%1$S'.
|
|
|
|
PEFFVValueSetStart=Expected opening { of feature value set but found '%1$S'.
|
|
|
|
PEFFVNoFamily=Expected font family list for @font-feature-values rule but found '%1$S'.
|
|
|
|
PEFFVUnexpectedBlockEnd=Expected '}' to end @font-feature-values rule but found '%1$S'.
|
|
|
|
PEFFVUnknownFontVariantPropValue=Unknown font-variant property value '%1$S'.
|
|
|
|
PEFFVExpectedIdent=Expected identifier but found '%1$S'.
|
|
|
|
PEFFVExpectedValue=Expected non-negative integer value but found '%1$S'.
|
|
|
|
PEFFVTooManyValues=Too many values for feature type '%1$S'.
|
|
|
|
PEFFVGenericInFamilyList=Family list cannot contain generic font family name.
|
|
|
|
PEFFVValueDefinitionTrailing=Expected end of value definition but found '%1$S'.
|
2012-08-09 20:37:58 -07:00
|
|
|
PEBadDirValue=Expected 'ltr' or 'rtl' in direction selector but found '%1$S'.
|
2012-12-22 18:30:55 -08:00
|
|
|
PESupportsConditionStartEOF2='not', '(', or function
|
|
|
|
PESupportsConditionInParensEOF=')'
|
2012-08-01 17:32:12 -07:00
|
|
|
PESupportsConditionNotEOF='not'
|
2013-02-16 21:29:38 -08:00
|
|
|
PESupportsWhitespaceRequired=Expected whitespace after 'not', 'and', or 'or'.
|
2012-12-22 18:30:55 -08:00
|
|
|
PESupportsConditionExpectedOpenParenOrFunction=Expected '(' or function while parsing supports condition but found '%1$S'.
|
2012-08-01 17:32:12 -07:00
|
|
|
PESupportsConditionExpectedCloseParen=Expected ')' while parsing supports condition but found '%1$S'.
|
2012-12-22 18:30:55 -08:00
|
|
|
PESupportsConditionExpectedStart2=Expected 'not', '(', or function while parsing supports condition but found '%1$S'.
|
2012-08-01 17:32:12 -07:00
|
|
|
PESupportsConditionExpectedNot=Expected 'not' while parsing supports condition but found '%1$S'.
|
|
|
|
PESupportsGroupRuleStart=Expected '{' to begin @supports rule but found '%1$S'.
|
2013-07-22 15:08:33 -07:00
|
|
|
PEFilterEOF=filter
|
|
|
|
PEExpectedNoneOrURL=Expected 'none' or URL but found '%1$S'.
|
|
|
|
PEExpectedNoneOrURLOrFilterFunction=Expected 'none', URL, or filter function but found '%1$S'.
|
|
|
|
PEExpectedNonnegativeNP=Expected non-negative number or percentage.
|
|
|
|
PEFilterFunctionArgumentsParsingError=Error in parsing arguments for filter function.
|
Bug 773296 - Part 2: Parse CSS variable declarations and store them on Declaration objects. p=ebassi,heycam r=dbaron
Patch co-authored by Emmanuele Bassi <ebassi@gmail.com>
This defines a CSSVariableDeclarations class that holds a set of
variable declarations. This is at the specified value stage, so values
can either be 'initial', 'inherit' or a token stream (which is what you
normally have). The variables are stored in a hash table. Although
it's a bit of a hack, we store 'initial' and 'inherit' using special
string values that can't be valid token streams (we use "!" and ";").
Declaration objects now can have two CSSVariableDeclarations objects
on them, to store normal and !important variable declarations. So that
we keep preserving the order of declarations on the object, we inflate
mOrder to store uint32_ts, where values from eCSSProperty_COUNT onwards
represent custom properties. mVariableOrder stores the names of the
variables corresponding to those entries in mOrder.
We also add a new nsCSSProperty value, eCSSPropertyExtra_variable, which
is used to represent any custom property name.
nsCSSProps::LookupProperty can return this value.
The changes to nsCSSParser are straightforward. Custom properties
are parsed and checked for syntactic validity (e.g. "var(a,)" being
invalid) and stored on the Declaration. We use nsCSSScanner's
recording ability to grab the unparsed CSS string corresponding to
the variable's value.
2013-12-11 18:09:40 -08:00
|
|
|
PEVariableEOF=variable
|
|
|
|
PEVariableEmpty=Expected variable value but found '%1$S'.
|
2013-12-11 18:09:44 -08:00
|
|
|
PEValueWithVariablesParsingError=Error in parsing value for '%1$S' after substituting variables.
|
|
|
|
PEValueWithVariablesFallbackInherit=Falling back to 'inherit'.
|
|
|
|
PEValueWithVariablesFallbackInitial=Falling back to 'initial'.
|
2013-12-11 18:09:44 -08:00
|
|
|
PEInvalidVariableReference=Property contained reference to invalid variable.
|
|
|
|
PEInvalidVariableTokenFallback=Found invalid token '%1$S' at top level of variable reference fallback.
|
|
|
|
PEExpectedVariableNameEOF=identifier for variable name
|
|
|
|
PEExpectedVariableName=Expected identifier for variable name but found '%1$S'.
|
|
|
|
PEExpectedVariableFallback=Expected variable reference fallback after ','.
|
|
|
|
PEExpectedVariableCommaOrCloseParen=Expected ',' or ')' after variable name in variable reference but found '%1$S'.
|