Commit Graph

384 Commits

Author SHA1 Message Date
David Zbarsky
71be33bfa0 Bug 773500 Part 1:Store z-component of transform-origin as 0 rather than null when it is omitted. r=dbaron 2012-07-21 19:48:19 -04:00
L. David Baron
bbbde4afb0 Disable the unitless length quirk inside of calc(). (Bug 774122, patch 3) r=bzbarsky
I noticed this bug because the new assertions in ParseVariant,
introduced in the previous patch, are stricter and would assert without
this fix.
2012-07-16 09:11:33 -04:00
L. David Baron
b0ef978f86 Limit the unitless length quirk to the properties where it's needed, per http://simon.html5.org/specs/quirks-mode#the-unitless-length-quirk . (Bug 774122, patch 2) r=bzbarsky 2012-07-16 09:11:33 -04:00
L. David Baron
cd9afca8b6 Limit the hashless color quirk to the properties where it's needed, per http://simon.html5.org/specs/quirks-mode#the-hashless-hex-color-quirk . (Bug 774122, patch 1) r=bzbarsky
This changes test_property_syntax_errors.html in the following ways:
 (1) removes the "known failures" handling, since there aren't any
 (2) changes it to test syntax errors in both quirks mode and standards
     mode, instead of only in standards mode
 (3) uses a (new) quirks_values mechanism to property_database.js to
     test cases that should be invalid in standards mode but accepted in
     quirks mode
2012-07-16 09:11:33 -04:00
Gavin Sharp
f698d10be2 Backed out changeset ac282e15dc02 (bug 774122) 2012-07-16 01:04:31 -07:00
Gavin Sharp
3050d12ed8 Backed out changeset e3007422b989 (bug 774122) 2012-07-16 01:04:29 -07:00
Gavin Sharp
9fb446b9bb Backed out changeset 64ff8c2d37f9 (bug 774122) 2012-07-16 01:04:27 -07:00
L. David Baron
b6e2f191d0 Disable the unitless length quirk inside of calc(). (Bug 774122, patch 3) r=bzbarsky
I noticed this bug because the new assertions in ParseVariant,
introduced in the previous patch, are stricter and would assert without
this fix.
2012-07-16 01:10:06 -04:00
L. David Baron
60f4694e46 Limit the unitless length quirk to the properties where it's needed, per http://simon.html5.org/specs/quirks-mode#the-unitless-length-quirk . (Bug 774122, patch 2) r=bzbarsky 2012-07-16 01:10:06 -04:00
L. David Baron
dbef7a69c4 Limit the hashless color quirk to the properties where it's needed, per http://simon.html5.org/specs/quirks-mode#the-hashless-hex-color-quirk . (Bug 774122, patch 1) r=bzbarsky
This changes test_property_syntax_errors.html in the following ways:
 (1) removes the "known failures" handling, since there aren't any
 (2) changes it to test syntax errors in both quirks mode and standards
     mode, instead of only in standards mode
 (3) uses a (new) quirks_values mechanism to property_database.js to
     test cases that should be invalid in standards mode but accepted in
     quirks mode
2012-07-16 01:10:06 -04:00
L. David Baron
9296ad61b2 Add VARIANT_NONNEGATIVE_DIMENSION. (Bug 773102, patch 2) r=bzbarsky 2012-07-13 18:01:34 -07:00
L. David Baron
6fbdd2a91a Rename VARIANT_POSITIVE_LENGTH to VARIANT_POSITIVE_DIMENSION since it also applies to times and frequencies. (Bug 773102, patch 1) r=bzbarsky 2012-07-13 18:01:34 -07:00
Ehsan Akhgari
54bba54101 Merge backout 2012-07-13 20:12:21 -04:00
Ehsan Akhgari
dc7695ce0e Backout changeset 4e1480ab5116, changeset 576f7d52de4b, and changeset 2a030d4733a0 (bug 773102) because of test failure 2012-07-13 20:12:02 -04:00
Boris Zbarsky
43d45b95b9 Bug 771594. Allow preference control over what CSS properties we parse. r=dbaron,dholbert 2012-07-13 19:59:05 -04:00
L. David Baron
ebd9a1a4a9 Add VARIANT_NONNEGATIVE_DIMENSION. (Bug 773102, patch 2) r=bzbarsky 2012-07-13 15:06:50 -07:00
L. David Baron
ac37feeb7e Rename VARIANT_POSITIVE_LENGTH to VARIANT_POSITIVE_DIMENSION since it also applies to times and frequencies. (Bug 773102, patch 1) r=bzbarsky 2012-07-13 15:06:50 -07:00
L. David Baron
db939a352b Add support for unprefixed calc(), and prefer serializing to unprefixed form. (Bug 771678) r=bzbarsky
This also converts all of the tests in layout/style/test/ to using
calc(), except that it duplicates all of the valid values and some of
the invalid values for 'width' and '-moz-column-rule-width' (which are
the two properties that intentionally have extensive calc() tests) in
property_database.js.
2012-07-13 15:06:50 -07:00
Aryeh Gregor
b29d7e95d1 Bug 719054 - matrix() and matrix3d() with length units should be parse errors; r=dbaron 2012-02-13 11:29:30 -05:00
Emmanuele Bassi
0eecac73f7 Bug 762302 - Unprefix CSS Animation properties and @keyframes rule and provide temporary aliases for -moz-animation and exposed subproperties. r=dbaron 2012-07-08 21:25:10 -04:00
L. David Baron
1692448626 Implement dppx units [css3-images] for resolution media query. (Bug 741644) r=bzbarsky 2012-07-07 21:41:27 -07:00
Masatoshi Kimura
162441c196 Bug 752187 - Part 9: Implement unprefixed radial-gradient parsing. r=dbaron 2012-07-07 10:27:08 -04:00
Masatoshi Kimura
2ffab37483 Bug 752187 - Part 8: Implement unprefixed linear-gradient parsing. r=dbaron 2012-07-07 10:27:08 -04:00
Masatoshi Kimura
7b6af80799 Bug 752187 - Part 7: Add aIsLegacy parameter to parsing functions. r=dbaron 2012-07-07 10:27:08 -04:00
Masatoshi Kimura
05280fd9ca Bug 752187 - Part 6: Rename mIsToCorner to mIsLegacySyntax. r=dbaron 2012-07-07 10:27:08 -04:00
Masatoshi Kimura
f4ef239cf5 Bug 752187 - Part 5: Remove "to" corner parsing from ParseRadialGradient. r=dbaron 2012-07-07 10:27:08 -04:00
Masatoshi Kimura
55d49c353c Bug 752187 - Part 4: Remove aIsRadial parameter. r=dbaron 2012-07-07 10:27:07 -04:00
Masatoshi Kimura
68ea947bb7 Bug 752187 - Part 3: Separate linear gradient parsing and radial gradient parsing. r=dbaron 2012-07-07 10:27:07 -04:00
Masatoshi Kimura
926b4d2e42 Bug 752187 - Part 2: Separate legacy gradient line parsing. r=dbaron 2012-07-07 10:27:07 -04:00
Masatoshi Kimura
43403583e2 Bug 752187 - Part 1: Separate color stops parsing. r=dbaron 2012-07-07 10:27:07 -04:00
Daniel Holbert
50a133f460 Bug 696253, patch 8: implement parsing/computation for CSS shorthand property 'flex'. r=dbaron 2012-07-06 17:06:23 -07:00
Boris Zbarsky
34edba5d0f Bug 766798. Throw SYNTAX_ERR, not NAMESPACE_ERR, from querySelector(All) on unknown namespaces. r=dbaron 2012-06-22 16:18:50 -04:00
Ms2ger
19f060907a Bug 629882 - Support currentColor in the 2D canvas context; r=dbaron
This changes nsCSSParser::ParseColorString to fill in an nsCSSValue instead
of an nscolor, and exposes nsRuleNode::ComputeColor to turn this nsCSSValue
into an nscolor.

Because gradients can be used with different canvas elements in different
documents, these cannot pass useful values for nsRuleNode::ComputeColor's
aPresContext and aStyleContext arguments. This patch also changes SetColor
to deal with those parameters being null.
2012-06-06 09:36:38 +02:00
Gervase Markham
ca171eec44 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Boris Zbarsky
389a77894c Bug 753397. Add a field to nsCSSPropList for a preference that controls the property. r=dbaron
The actual controlling is not hooked up yet; that will happen in bug 753522 for
the DOM reflections of properties.
2012-05-09 21:29:37 -04:00
Ms2ger
acc12134d8 Bug 745523 - Part a: prepare for unprefixing transforms by removing the prefix from internal APIs; r=dbaron 2012-05-05 11:00:04 +02:00
John Daggett
127ee0627d Bug 718539. Update font-feature-settings to latest spec syntax. r=dbaron 2012-04-26 15:24:26 +09:00
Boris Zbarsky
73508dabd9 Bug 748254. When we encounter an unexpected '}' terminating a font-face descriptor's value, correctly close the font-face rule instead of eating the rest of the stylesheet. r=dbaron 2012-04-26 00:42:00 -04:00
Robert Longson
745e3e0bde Bug 746632 - If no fallback colour is specified we shouldn't draw anything when the URL fails to resolve. r=dbaron 2012-04-25 13:33:47 +01:00
Kang-Hao (Kenny) Lu
c1a7834ef6 Bug 744243 - Forbid odd trailing slash in CSS 'border-image' property. r=dbaron 2012-04-12 10:02:33 +02:00
Ms2ger
6c557c239a Backout changeset 986091dac358 (bug 744234) for M4 oranges. 2012-04-11 12:30:11 +02:00
Kang-Hao (Kenny) Lu
958ce832f6 Bug 744234 - Forbid odd trailing slash in CSS 'border-image' property. r=dbaron 2012-04-11 00:28:01 -07:00
Aryeh Gregor
68e33b8d45 Bug 734953 - Remove skew() transformation function; r=dbaron 2012-03-20 13:39:57 -04:00
Jacob Holzinger
acfe99c129 Bug 696242 - Convert NS_RegisterStaticAtoms and nsCSSScanner::ReportUnexpectedParams to take an array-reference rather than a pointer and length, making it impossible to pass a pointer/length that are inconsistent. r=jwalden
--HG--
extra : rebase_source : 882b5b4d500b1fa242c0a3cfa3084e4171cbaa9d
2012-03-08 18:22:57 -08:00
Lazar Sumar
da2c684917 Bug 548375 - Implement css3-background background-repeat property two value syntax. r=dbaron 2012-02-24 21:23:14 -08:00
Zack Weinberg
15a9a210d0 Bug 729142 - Convert layout/style to MOZ_STATIC_ASSERT. r=dbaron 2012-02-23 08:19:00 -08:00
Lazar Sumar
1396c14469 Bug 522607 - New css3-background background-position syntax. r=dbaron 2012-02-20 13:14:42 +13:00
Aryeh Gregor
c6d9662f3d Bug 721136 - transform property serialization doesn't normalize case; r=dbaron 2012-02-13 16:23:15 -05:00
Aryeh Gregor
7dd4ea9e29 Bug 393910 - Serialize "0" as "0px" for lengths instead of "0pt"; r=dbaron 2012-02-14 10:54:08 -05:00
Boris Zbarsky
b5877864ea Bug 716628. Implement support for 'turn' unit in CSS. r=dbaron 2012-02-04 00:01:23 -05:00