Commit Graph

315 Commits

Author SHA1 Message Date
L. David Baron
547f5923a6 Increase transitions test bezier tolerance to 0.0015 since bug 522862 comment 0 has an example that requires it to be 0.0012. (Bug 522862, Bug 435441) 2009-10-17 10:56:38 -04:00
L. David Baron
48e18ed038 Add bug numbers for the FIXME comments in CSS transitions patches. (Bug 435441) 2009-10-15 17:23:19 -07:00
L. David Baron
5ed2b51cec Add tests for media queries of system metrics. (Bug 522149) 2009-10-15 17:23:19 -07:00
L. David Baron
09ca90ac3c Increase test tolerance to reflect observed errors in bug 435441 comments 103 and 105, and handle timer firing after 8 seconds (comment 104). 2009-10-14 17:51:38 -07:00
L. David Baron
b13bce9c1c Add bug numbers for FIXME comments in transitions landing. (Bug 435441) 2009-10-13 19:38:20 -07:00
L. David Baron
2f1013d988 Add previously-skipped border and outline properties to nsStyleAnimation. (Bug 521292) r=dholbert, bzbarsky 2009-10-13 19:38:20 -07:00
L. David Baron
3721a39441 Oops, sign of error_direction needs to change only for its second use. (Bug 435441) 2009-10-10 11:01:12 -07:00
L. David Baron
5095db87e0 Allow more error in bezier computation to fix random orange. 2009-10-10 10:02:32 -07:00
L. David Baron
d74253a76d Make transitions test more reliable by measuring the positions of transitions relative to a pair of reference linear transitions, and testing the progress of those reference linear transitions with considerably more latitude. (Bug 435441) 2009-10-09 19:11:09 -07:00
Daniel Holbert
ab77c7beaa Bug 520485, patch 3 of 5: add support for 'font-size-adjust' property in nsStyleAnimation. r=dbaron 2009-10-08 18:30:51 -07:00
Daniel Holbert
22a5e591ce Bug 520485, patch 1 of 5: add support for float values in nsStyleAnimation. r=dbaron 2009-10-08 18:30:49 -07:00
L. David Baron
35482a83e3 Increase test tolerance to try to fix random orange. 2009-10-08 08:13:49 -07:00
L. David Baron
d89495d9f4 Add tests for :-moz-tree-* pseudo-elements. (Bug 521044) 2009-10-07 20:22:42 -07:00
L. David Baron
86a7c76d23 Add per-property tests for CSS transitions to test the code in nsStyleAnimation. (Bug 435441, Bug 504652) 2009-10-07 20:22:42 -07:00
L. David Baron
125bd1103e Implement CSS transitions: handle starting and animation of the transitions. (Bug 435441) r=bzbarsky sr=roc 2009-10-07 20:22:42 -07:00
Nochum Sossonko
33de430128 Bug 513461 - Implement pseudo classes for lightweight theme handling. r=dao,dbaron 2009-10-02 08:22:18 +02:00
Geoff Lankow
bd900ff5fd Bug 517882: Implement a -moz-tab-size CSS property that specifies the number of spaces between tab stops in preformatted text. r=roc, dbaron 2009-09-26 13:23:47 -07:00
L. David Baron
d8e13763a7 Rewrap long argument lists to CSS_PROP macros. Whitespace changes only. (Bug 504652) 2009-09-11 06:46:36 -04:00
L. David Baron
411bbcb6dd Add fields to nsCSSPropList.h for style struct offset and animation type. (Bug 504652) r=bzbarsky 2009-09-11 06:46:36 -04:00
L. David Baron
74af0036e3 Add stylestruct_ parameter to CSS_PROP macro. (Bug 504652) r=bzbarsky 2009-09-11 06:46:36 -04:00
Jonathan Watt
ed42a30cb8 Bug 508179. Implement 'pointer-events:none;' for all elements. r=roc, r=dbaron. 2009-08-26 20:53:35 -07:00
Zack Weinberg
c62f969ab1 Bug 511147: Avoid the slow greedy-operator path for A > B ~ C selectors. r=dbaron 2009-08-20 14:52:47 -07:00
Zack Weinberg
63e2075a2a Bug 443976: Parsing support for the unicode-range: descriptor in @font-face. r=dbaron 2009-08-20 14:52:47 -07:00
Zack Weinberg
6ade4eb7d1 Fix parenthesis-matching while parsing format() function in @font-face src: descriptor. (Bug 511333) r=dbaron 2009-08-20 14:52:47 -07:00
L. David Baron
325ccb4cf2 Fix parenthesis-matching while parsing local() function in @font-face src: descriptor. (Bug 511333) r=zweinberg 2009-08-20 14:52:47 -07:00
Zack Weinberg
f8cb071942 Fix DEBUG-only crash parsing empty 'src' descriptor of @font-face rule. (Bug 511304) r=dbaron 2009-08-20 14:52:47 -07:00
Jonathon Jongsma ext:(%2C%20L.%20David%20Baron%20%3Cdbaron%40dbaron.org%3E)
219a2fe88e Implement CSS transitions: implement the parsing and computation of the transition properties. (Bug 435441) r=bzbarsky 2009-08-20 14:52:47 -07:00
L. David Baron
7fed030a73 Make computed style (and canvas text styling, which shares the same code) avoid using style data that was influenced by pseudo-elements. (Bug 505515) r=bzbarsky 2009-08-10 15:52:29 -07:00
L. David Baron
557af3af90 Additional mochitests for URL parsing, from bug 337287 (and related to bug 476856) 2009-08-05 17:45:49 -07:00
Michael Ventnor
8ae6cd75f4 Bug 479220: Implement support for CSS gradients: -moz-linear-gradient() and -moz-radial-gradient(). r=roc, dbaron 2009-08-01 08:53:40 -07:00
David Zbarsky
92589bee61 Bug 499655: Selectors should have dual atoms so they can correctly (and case-sensitively) match non-HTML elements in text/html documents, part 1. r=dbaron 2009-08-01 08:53:40 -07:00
L. David Baron
6fb9ce56f5 Don't resolve a new context for the root when we're computing rem units for the root. (Bug 478321) r=bzbarsky 2009-08-01 08:53:40 -07:00
L. David Baron
36c7b60c0c Backed out changeset 358af1196dc2 (bug 499655) until we get bug 507487 sorted out. 2009-07-31 09:39:53 -07:00
David Zbarsky
eab4105f16 Bug 499655. Selectors should have dual atoms: HTML and other. r=dbaron 2009-07-30 13:28:42 -04:00
Jeff Walden
a24a25ba2e Bug 189519 - Implement CSS3 (-moz- for now)background-size. r=dbaron, other useful review comments from roc/bz 2009-05-28 11:09:05 -07:00
Neil Deakin
5303f25260 Bug 478416, replace chromedir attribute with :moz-locale-dir pseudoclass, r=neil,dao,dbaron,sr=dbaron 2009-07-29 14:33:53 -04:00
L. David Baron
f37119d1b9 Also block -moz-box-shadow when using document-specified colors is disabled, and fix a testing error with the patch for text-shadow. (Bug 503188) r=bzbarsky 2009-07-20 07:04:42 -04:00
L. David Baron
5a90c04a26 Add tests for cloning of media queries. (Would have caught bug 504032.) 2009-07-20 07:04:42 -04:00
L. David Baron
b7eb3046f3 Add tests for media query serialization. 2009-07-15 17:24:25 -07:00
L. David Baron
68d83ef535 Add tests for selector serialization and cloning. 2009-07-15 17:24:24 -07:00
L. David Baron
a03632381b Block text-shadow when using document-specified colors is disabled. (Bug 503188) r=bzbarsky, roc 2009-07-15 17:24:24 -07:00
Boris Zbarsky
1426ced363 Adding test for bug 498559. r=dbaron 2009-07-09 19:53:00 -07:00
Boris Zbarsky
7382b846b1 Bug 498559. Speed up tokenizing numbers in CSS. r+sr=dbaron 2009-07-09 18:44:20 -07:00
L. David Baron
0d06184f97 Remove support for fallback background colors. (Bug 496721) r+sr=bzbarsky 2009-06-16 08:00:20 -07:00
Karl Tomlinson
1b9df1cee4 b=481751 block-height line-height for text input and strut baseline for textarea r=bz,sr=dbaron
--HG--
extra : rebase_source : 1241360066ea9387d15c71936da9468399240640
2009-05-19 10:13:12 +12:00
L. David Baron
75bc923978 Add test for CSS parsing of garbage at end of declarations. (Bug 390260) 2009-05-15 16:01:19 -07:00
L. David Baron
8c38aba811 Switch HTML mochitests from using MochiKit.js to packed.js. (Bug 490955) r=sayrer 2009-05-06 13:46:04 -07:00
L. David Baron
8cfe105fbe Drop use of JS 1.7 features so that this test can run on other browsers. 2009-05-06 13:46:01 -07:00
Daniel.S
3d66e90b81 Bug 487942 - Remove cursor: -moz-alias | -moz-cell | -moz-context-menu | -moz-copy | -moz-spinning; property_database.js update; r+sr=dbaron 2009-04-22 14:24:34 +02:00
Dão Gottwald
2b158c4a2f Bug 487059 - clearUserPref shouldn't throw if a pref doesn't have a default or user value. r+sr=bsedberg 2009-04-10 10:24:24 +02:00
Robert Longson
7506754d85 Bug 423756 - Support image-rendering attribute for html images and css backgrounds. r=joe,vlad sr=roc 2009-04-05 10:52:14 +01:00
L. David Baron
f533a6676b Remove the CSS_PROP_NOTIMPLEMENTED macro, which hasn't been needed since bug 3247 landed. (Bug 486353) r+sr=bzbarsky 2009-04-02 07:55:50 -07:00
L. David Baron
fa0ce94791 Don't mess with the max_script_run_time pref since the mochitest harness now does that for us. 2009-03-31 12:37:40 -07:00
L. David Baron
5195ec80b9 Use SimpleTest.executeSoon instead of setTimeout for iteration of properties/descriptors. 2009-03-31 12:37:40 -07:00
L. David Baron
1eebde3c7c Add some tests for invalid values of 'font-family' (related to bug 481502) 2009-03-31 12:37:40 -07:00
Robert Longson
7235fc714e Bug 484150 - support image-rendering attribute. Includes some gfx code by vlad from bug 423756 which is r=joe. The rest is r=dbaron, sr=roc 2009-03-21 15:36:38 +00:00
L. David Baron
60b0f45a27 Add tests to check case (2) for shorthands in nsCSSDeclaration::GetValue. 2009-03-09 16:14:34 -07:00
L. David Baron
5cad407b70 Add some simple tests for units (since code coverage output showed we weren't testing serialization of all of them). 2009-03-09 16:14:34 -07:00
L. David Baron
6a0f29123b Add tests for font descriptors that are equivalent to test_value_storage and test_property_syntax_errors. 2009-03-09 16:14:34 -07:00
L. David Baron
d8a2ce67e9 Reject non-positive values for widows and orphans. (Bug 481826) r+sr=bzbarsky 2009-03-09 16:14:34 -07:00
L. David Baron
83f40d6f76 Fix serialization bugs with text-decoration:-moz-anchor-decoration. (Bug 481596) r+sr=bzbarsky 2009-03-06 13:05:01 +09:00
L. David Baron
1f8dd0c308 Test more values for 'content' property. (These tests require the three previous patches to pass.) (Bug 481591) 2009-03-06 13:05:01 +09:00
L. David Baron
76244e5752 Quote and escape contents of url() when serializing. (Bug 478160) r+sr=bzbarsky 2009-03-06 13:05:01 +09:00
L. David Baron
9b6231dd4d Add test for CSS property priority (!important) preservation. (This fixes the fact that we don't have any tests covering expansion of compressed blocks with !important declarations, and also tests a bit more while I'm there.) 2009-03-05 12:49:30 +09:00
L. David Baron
8dddfe9001 Add test for blocking of -moz-border-*-colors based on code coverage output. 2009-03-05 12:49:30 +09:00
L. David Baron
fa9a21c33d Implement multiple background layers, implement fallback background color, and make -moz-background-inline-policy no longer be part of the background shorthand. (Bug 322475) r+sr=roc,bzbarsky 2009-02-19 21:29:21 -08:00
L. David Baron
f83c362f04 Fix another case where we incorrectly serialize an -x-system-font property. (Bug 478156) r+sr=bzbarsky 2009-02-19 13:55:48 -08:00
L. David Baron
fbfdfa7f2f Add tests for code I'm going to change, and fix crash when running those tests. (Bug 475215) r+sr=bzbarsky 2009-02-19 13:55:48 -08:00
L. David Baron
2eb748571c Backed out changeset fde0b361f25e (bug 322475, main patch) due to Mac talos startup failures and hitting the NS_ABORT_IF_FALSE in SetupBackgroundClip, which may be related. 2009-02-19 13:51:46 -08:00
L. David Baron
d9ac02ed8c Implement multiple background layers, implement fallback background color, and make -moz-background-inline-policy no longer be part of the background shorthand. (Bug 322475) r+sr=roc,bzbarsky 2009-02-19 12:33:09 -08:00
L. David Baron
a91aa25ab0 Back out all 8 changesets that I just landed (bugs 477959, 477961, 322475, 478899, 475215, 478156) again, because Talos Try server builds lie about which changesets they're testing. 2009-02-19 09:06:18 -08:00
L. David Baron
069668891e Fix another case where we incorrectly serialize an -x-system-font property. (Bug 478156) r+sr=bzbarsky 2009-02-19 07:29:28 -08:00
L. David Baron
c584b934a5 Add tests for code I'm going to change, and fix crash when running those tests. (Bug 475215) r+sr=bzbarsky 2009-02-19 07:29:28 -08:00
L. David Baron
51ef1de194 Implement multiple background layers, implement fallback background color, and make -moz-background-inline-policy no longer be part of the background shorthand. (Bug 322475) r+sr=roc,bzbarsky 2009-02-19 07:29:28 -08:00
L. David Baron
8b207bcc51 Revert (back out) the previous 11 changesets (bugs 477959, 477961, 477963, 477962, 322475, 478899, 475215, 478156), due to Mac talos orange with (as usual) no useful diagnostic. 2009-02-18 18:59:47 -08:00
L. David Baron
d1a6f338ef Fix another case where we incorrectly serialize an -x-system-font property. (Bug 478156) r+sr=bzbarsky 2009-02-18 17:13:26 -08:00
L. David Baron
f83cbead32 Add tests for code I'm going to change, and fix crash when running those tests. (Bug 475215) r+sr=bzbarsky 2009-02-18 17:13:25 -08:00
L. David Baron
366992262c Implement multiple background layers, implement fallback background color, and make -moz-background-inline-policy no longer be part of the background shorthand. (Bug 322475) r+sr=roc,bzbarsky 2009-02-18 17:13:25 -08:00
Michael Ventnor
b480b09ba3 Bug 476738. Implement 'inset' box-shadows. r+sr=roc,r=dbaron 2009-02-10 21:45:13 +13:00
L. David Baron
b2fd7dcdca Make serialization handle system fonts and the font shorthand better. (Bug 475214) r+sr=bzbarsky 2009-02-06 08:52:12 -08:00
Boris Zbarsky
6f9a0da875 Bug 299837. Implement text-align:end. r+sr=dbaron 2009-02-05 22:48:30 -05:00
L. David Baron
f8774a93ef Implement CSS computation of font-stretch property and store it in the gfx font structures. (Bug 3512) r=vlad sr=bzbarsky 2009-01-29 12:39:18 -08:00
L. David Baron
4835f2a61a Make getComputedStyle() for 'outline-width' return values in pixels even when keywords are used. (Bug 474184) r+sr=bzbarsky 2009-01-22 17:28:13 -08:00
L. David Baron
473a55f246 Fix parsing of 'none' values in 'list-style' shorthand. (Bug 474135) r+sr=bzbarsky 2009-01-22 17:28:13 -08:00
L. David Baron
7713595032 Avoid recursion when handling mNegations in CalcWeight. (Bug 473908) r+sr=bzbarsky 2009-01-16 19:44:21 -08:00
L. David Baron
a7223a0c21 Remove handling of comments inside CSS url() tokens. (Bug 473914) r+sr=bzbarsky 2009-01-16 19:44:20 -08:00
L. David Baron
286c54a127 Recheck media queries when changing text zoom since em units have changed. (Bug 473400) r+sr=bzbarsky 2009-01-16 13:32:08 -08:00
Olli Pettay
d30fae3581 Bug 457862 - onresize events should fire at every resize while resizing the window, r+sr=dbaron 2009-01-05 18:26:59 +02:00
L. David Baron
d11612b0aa Distinguish clip:rect(auto,auto,auto,auto) from clip:auto as the spec requires. (Bug 372063) r+sr=bzbarsky 2008-12-29 10:07:38 -05:00
L. David Baron
805646bab5 Reject 0 as a value for -moz-column-count. (Bug 471341) r+sr=bzbarsky 2008-12-29 10:07:38 -05:00
L. David Baron
020fe687d6 Expect percentages to be unsupported for -moz-column-width. I'm not sure why I made it as it is, since they were never supported in either our implementation or the spec. 2008-12-29 10:07:36 -05:00
L. David Baron
8458c5b6b6 Make 'word-spacing: normal' just compute to '0', since that's what CSS 2.1 says to do, and thus change nsStyleText::mWordSpacing from nsStyleCoord to nscoord. (Bug 470705) r+sr=roc 2008-12-27 20:58:14 -05:00
L. David Baron
6958d78491 Readd test for computed style for large integers (even though patch was backed out). (Bug 470769) r+sr=bzbarsky 2008-12-23 09:06:59 -05:00
L. David Baron
e8b56749f3 Backed out changeset 441f119f1a0c (Bug 470769) due to failures in layout/style/test/test_bug365932.html 2008-12-23 11:11:51 -05:00
L. David Baron
1362acfc3f Fix computed style for large integers by using double instead of float. (Bug 470769) r+sr=bzbarsky 2008-12-23 09:06:59 -05:00
L. David Baron
e32d92f667 Enforce the restriction that values of stroke-miterlimit are greater than 1, rather than just using ParsePositiveVariant. (Bug 470706) r=jwatt sr=bzbarsky 2008-12-23 09:06:58 -05:00
L. David Baron
22b6db3f79 Reject duplicate keywords for 'text-decoration'. (Bug 470704) r+sr=bzbarsky 2008-12-23 09:06:58 -05:00
L. David Baron
4dabb0d03e Disallow negative values on -moz-box-ordinal-group, since it's stored in an unsigned integer and clearly intended to be only positive. (Bug 470703) r=enndeakin sr=bzbarsky 2008-12-23 09:06:58 -05:00
L. David Baron
81919802f0 Rewrite the shorthand condensation code in nsCSSDeclaration::ToString. (Bug 376075) r+sr=bzbarsky 2008-12-23 09:06:57 -05:00
L. David Baron
8d30a03f05 Don't say that the font or background shorthands are present when the properties that they reset but can't otherwise specify are not their initial values. (Bug 376075) r+sr=bzbarsky 2008-12-23 09:06:57 -05:00