Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: frankleung/PIE
base: master
...
head fork: lojjic/PIE
Commits on Dec 13, 2010
@ziggythehamster ziggythehamster Check that p (which is window['PIE']) exists.
Some other scripts might remove window['PIE'] mid-function-call, which would be bad and generates 'Object does not support this property or method' errors.
Should resolve issue 89.
fe693ae
Commits on Dec 19, 2010
Jason Johnston Add table of contents, move sections around a bit to group thing better 61e36da
Commits on Jan 08, 2011
Jason Johnston Force ltr direction on rendering element to prevent incorrect positio…
…ning in rtl environments - via http://css3pie.com/forum/viewtopic.php?f=3&t=305
ccc50dc
Jason Johnston Fix divide-by-zero error when image has no dimensions a76770d
Jason Johnston Add test for changing img src 096a596
Commits on Jan 10, 2011
Jason Johnston Check for existence of el before adding/removing hover className. Fix…
…es error in situation where the element is destroyed in between a mouseenter/mouseleave event and the execution of the 0ms setTimeout. Bug and fix submitted by David Herman. http://css3pie.com/forum/viewtopic.php?f=3&t=320
4f092d9
Commits on Jan 21, 2011
@lojjic lojjic Remove invisible characters at start of URLs 3d7a1a8
Commits on Jan 23, 2011
Jason Johnston Merge branch 'master' of github.com:lojjic/PIE e8ccbd6
Jason Johnston Merge branch 'master' of https://github.com/ziggythehamster/PIE into …
…ziggythehamster
127348f
Commits on Feb 06, 2011
Jason Johnston Change id generation to use a simple incrementor rather than Date+ran…
…dom. Convert singleton values used by Util methods from properties stored on the top-level PIE object to local vars in a closure.
0449ad4
Commits on Feb 19, 2011
Jason Johnston Prevent obfuscation of border namedWidths so border-width values like…
… 'medium' will work with the compressed version
445cfe2
Jason Johnston First attempt at fixing box path for shrink values larger than corner…
… radii
0d702c0
Jason Johnston Revert "First attempt at fixing box path for shrink values larger tha…
…n corner radii"

This reverts commit 0d702c0.
43ebe57
Commits on Feb 27, 2011
Jason Johnston Replace all direct instantiation of PIE.Length and PIE.Color objects …
…with calls to PIE.getLength and PIE.getColor factories, which return shared singleton instances per unique input value. Effect on speed and memory usage is negligible if any, but should prevent some unnecessary garbage collection.
0227926
Jason Johnston Fix tokenizer test doc 77a0c4b
Jason Johnston Save a few bytes c9b97d5
Commits on Mar 06, 2011
Jason Johnston Prevent position flickering in basic test ad97e7a
Jason Johnston Enhance withImageSize utility function so it queues up requests for t…
…he same image's dimensions if the image has not yet been loaded; this prevents creating a new Image object for each of those requests.
58d2df7
Jason Johnston Prevent error in border image renderer when side slices get calculate…
…d to less than zero width or height
8aa3f1b
Jason Johnston Don't include opening paren in function token values eafbafa
Jason Johnston Fix test 311a01e
Jason Johnston Add -SNAPSHOT to build number 89785e2
Jason Johnston Rename some properties and methods to allow name shrinking, saves a f…
…ew hundred bytes
b26b579
Jason Johnston Fix reversed condition causing occasional errors 5564212
Jason Johnston Add detection for functioning VML support -- some small number of IE …
…installs don't have a working VML engine, so for those cases we short-circuit initialization so the users see the CSS3-less fallbacks instead of having styling removed and JS errors.
7f3900a
Commits on Mar 07, 2011
Jason Johnston Docs: add background-origin to list of unsupported bg properties 0cfca98
Commits on Mar 21, 2011
Jason Johnston Known Issues docs: add info about fieldsets, em units on childless el…
…ements, and browser zoom
df4bd8a
Jason Johnston Examples sites updates 5cd48c9
Commits on Mar 31, 2011
Jason Johnston Adjust version detection for IE9: CSS3 is only supported natively in …
…documentMode=9 (regardless of browser mode) so base the decision to attach on that rather than the detected IE version.
75a20d5
Commits on Apr 03, 2011
Jason Johnston Implement -pie-poll flag which allows forcing the heartbeat polling i…
…n IE6/7, as well as turning it off in IE 8, on a per-element basis. Should serve as a good workaround for many of the IE6/7 issues with onmove/onresize not firing correctly.
4773bf4
Jason Johnston Bump build number in prep for beta4 release 5c30a55
Jason Johnston Fix output in tokenizer test f6c09b4
Commits on Apr 04, 2011
Jason Johnston Add docs for -pie-poll da3012b
Commits on Apr 10, 2011
Jason Johnston Merge branch 'vml-detect'
Conflicts:
	sources/PIE_API.js
	sources/PIE_open.js
d81c6f7
Commits on Apr 27, 2011
Jason Johnston Bump build number to 1.0beta5-SNAPSHOT 65b832d
Jason Johnston When calculating em unit size on elements that don't accept children,…
… insert the length calc element into the parent and perform an additional calculation based on the specified font-size. Prevents error trying to insert into the childless element. Fixes #99.
8923137
Commits on May 01, 2011
Jason Johnston Remove old unused color name list 67cf521
Commits on May 15, 2011
Jason Johnston Add support for rendering of linear-gradient in IE9 standards mode. T…
…he gradient is translated to SVG and inserted into the background style as a data URI. Unlike the downlevel VML, per-stop opacity is supported.
a3423c5
Jason Johnston Ensure IE9 gradient background runtimeStyle gets removed when -pie-ba…
…ckground becomes inactive.
892d30a
Commits on May 22, 2011
Jason Johnston Add tests for reacting to show/hide of ancestor elements 55cce89
Jason Johnston Turn polling on by default in IE9. This works around lack of onresize…
… firing when toggling display of ancestor element. Hoping for a less heavy-handed solution.
ef44b7c
Commits on May 30, 2011
Jason Johnston Add conditional comment and object presence check to PIE.js documenta…
…tion example
e4e768d
Jason Johnston Refresh sample site links fc4d073
Jason Johnston Add "mark of the web" to htc file, to prevent activex warnings in loc…
…al zone settings
63f0285
Commits on Jun 27, 2011
Jason Johnston Factor out logic common to IE9 and IE<9 gradient renderers into a sha…
…red GradientUtil file, to decrease total code size
43fc3ab
Jason Johnston Work around strange bug in IE9 where it sometimes reports the getBoun…
…dingClientRect()'s right - left or bottom - top as 1px larger than the element's actual dimensions when scrolling the page. This was causing many extraneous redraws because it thought the element's size was changing when scrolling.
fbc9bcf
Commits on Jul 02, 2011
Jason Johnston Update docs and demos to include updated browser gradient support: -w…
…ebkit-linear-gradient, -o-linear-gradient, -ms-linear-gradient
7b143ad
Jason Johnston Recognize 'transparent' keyword as a color when parsing 36b8510
Commits on Jul 03, 2011
Jason Johnston Honor background-size when rendering linear-gradients in IE9. Allows …
…correct rendering of some of Lea Verou's gradient patterns.
c89e2d0
Jason Johnston Remove debugging code 4043943
Jason Johnston Fix error when bg-size is last item in -pie-background shorthand 8aa170f
Jason Johnston Support bg-position for each linear-gradient in IE9 280945a
Jason Johnston Add Lea Verou's CSS3 Patterns Gallery to test cases 3fa06be
Jason Johnston Require bg-position before bg-size in -pie-background shorthand d0323d9
Jason Johnston Work in progress on border-image support for IE9. ef5ccac
Commits on Jul 04, 2011
Jason Johnston Add border-image tests from mozilla layout reftests, with modifications dde610e
Jason Johnston border-image fixes: fix parsing of unitless lengths in width and outs…
…et length parameters, force element border to solid transparent to prevent it from collapsing, override border-width with border-image width params if present.
9359e7d
Commits on Jul 09, 2011
Jason Johnston Add playground file for quick testing of arbitrary VML 81fcabe
Commits on Jul 24, 2011
Jason Johnston Share no-op function f034c08
Jason Johnston Update background parser to handle background-origin and background-c…
…lip correctly
3a11fe7
Commits on Aug 08, 2011
Jason Johnston Make getUID return a valid HTML id value rather than a plain number f51449e
Jason Johnston Access window.PIE directly within init and cleanup functions rather t…
…han setting a variable in outer scope; this fixes an intermittent bug where init would be called before the outer var had its value set (due to the init function getting hoisted perhaps?) which led to elements not being initialized and, it seems, browser crashes.
c5ecdd7
Jason Johnston IE9: Allow border-image and -pie-background:linear-gradient to work t…
…ogether by delegating management of the runtimeStyle background to the root renderer. Allow linear-gradient to handle background-size properly. Prevent border-image renderer's destroy method from clobbering border hiding in IE<9.
f745eac
Commits on Aug 10, 2011
Jason Johnston IE<9 border-image: treat everything like 'stretch', which is likely a…
… more sane fallback than not clipping the image at all.
767eed5
Jason Johnston Honor padding on img elements 2a6ae13
Commits on Aug 17, 2011
Jason Johnston Fix destruction of border and border-image renderers so they unset th…
…eir runtimeStyle border styles only when appropriate.
14b6080
Commits on Aug 19, 2011
Jason Johnston Check again for non-zero element dimensions after the bg image is loa…
…ded, to prevent divide-by-zero error if in some rare case the element has non-zero dimensions during the initial update but zero dimensions after the image finishes loading.
22196bc
Commits on Aug 20, 2011
Jason Johnston Add listeners for handling changes due to :focus and :active pseudocl…
…asses. Addresses issues #78 and #131.
253f0c9
Jason Johnston Simplify removal of element event listeners so that it just keeps a r…
…unning list of attached listeners and then loops through to remove them all, rather than manually removing them individually.
4aa78d7
Jason Johnston Switch from using onbeforeunload to using onunload, to prevent destru…
…ction when not actually leaving the page, e.g. when a javascript: link is clicked. Remove the onunload listener and the global window.PIE reference so they don't leak. Quit keeping a list of watched ancestors since we don't need it anymore.
067a9b3
Jason Johnston Update build file a69573d
Commits on Aug 29, 2011
Jason Johnston Duh, actually remove the class 24f662c
Jason Johnston Add check for random case where the fill.colors object doesn't exist ded481a
Commits on Sep 04, 2011
Jason Johnston Allow border-image renderer to properly hide border on button/input e…
…lements.
e270f7b
Jason Johnston Fix IE6 img rendering so it ignores the original border-width which w…
…ill have been moved to the padding already by the hideBorder logic.
a577b91
Jason Johnston Bump build number to 1.0beta5 401e817
Commits on Sep 05, 2011
Jason Johnston Partial fix for issue #79: explicitly set the size of the background …
…image fill tile in pixels so that IE will automatically adjust it to the user's zoom level.
d97c930
Commits on Sep 09, 2011
Jason Johnston Add gradient patterns site demo 5424e71
Jason Johnston Site documentation updates to get up to date with beta5 release 67094db
Commits on Sep 10, 2011
Jason Johnston Merge branch 'zoom' c8a3864
Commits on Sep 11, 2011
Jason Johnston Implement rendering of background origin and size params in IE<9. Res…
…olves issue #110.
0230feb
Commits on Sep 27, 2011
@nfang nfang Set a min-width for source code panel on demos/gradient-patterns.html 4c8b877
Commits on Sep 29, 2011
@lojjic lojjic Merge pull request #166 from nfang/patch-1
Set a min-width for source code panel
c5be27f
Commits on Oct 01, 2011
Jason Johnston Implement split build and loader. PIE.htc is now a very small (1K) st…
…ub which loads one of two separate .js files containing all the logic. Those two .js files contain only the code needed for IE9 and IE6-8 respectively, decreasing the total download size for any given user. The location of the .js files can be customized via a -pie-base-url property on the html element; this will likely be expanded to pull from a CDN by default.
aa82152
Jason Johnston Add the -pie-base-url property to all test documents to ensure they p…
…ull from the local build dir.
dc192f9
Commits on Oct 02, 2011
Jason Johnston Tweaks to script loading: remove the manual onLoad call from the end …
…of the .js and use a script onreadystatechange listener instead; don't start the script loading for IE>9; add a default base url for the scripts (currently at github); add public PIE.version property
7ccfe56
Commits on Oct 03, 2011
Jason Johnston Add support for multiple fallback CDN locations 762539a
Commits on Oct 08, 2011
Jason Johnston Fix split build for IE9: add missing files and functions, move color …
…names back into IE9 build as it needs them during parsing, use separate compressor runs to prevent the global empty-function factory in the first output file.
4119484
Jason Johnston Add ant task to automate pushing build result files to the gh-pages b…
…ranch
2798bc5
Jason Johnston Rename -pie-base-url to -pie-load-path to avoid future confusion 4490ed5
Jason Johnston Merge branch 'loader' d04bc09
Commits on Oct 11, 2011
@lojjic lojjic Add http://www.cheapmortgages.com/ to example sites 6a0b613
@lojjic lojjic Oops, bad copy-paste and lack of proofreading :/ 9cfa2ca
Commits on Nov 06, 2011
Jason Johnston Fix comma f07d54b
Jason Johnston Major refactoring: VML is now constructed as a single string of marku…
…p that gets inserted all at once rather than via many DOM insertions. A new VmlShape abstraction handles switching to incremental DOM updates after the shapes have initially been created. This improves initial rendering performance, and also allows use of the o:opacity2 attribute which can only be set via markup. Updated box-shadow rendering to use o:opacity2: it now supports rgba with blur and no longer has to create quadrant shapes for large blurs. Also unified updateProps and updateSize since they are almost always the same; updateProps no longer forces a destroy so we can reuse shapes more intelligently.
9fcfa80
Jason Johnston Add empty vbscript block at end of htc file as a workaround for very … 1da1423
Jason Johnston Use 'win' alias for window object 5b66b6c
Commits on Nov 07, 2011
Jason Johnston Remove zindex from shape id 47558e5
Jason Johnston Put the length calc element into the body rather than the documentEle…
…ment, fixes unit conversions in IE<8
a6d4640
Commits on Nov 11, 2011
Jason Johnston In test doc, separate out standard background-size property to be lon…
…ghand since current browsers don't yet support the slash-notation in the shorthand.
1c3fb0d
Commits on Nov 13, 2011
Jason Johnston Fix issues with rendering of rounded borders:
 - Box path calculation has been improved to ensure a correct (squared) path when the shrink is greater than the radius.
 - Rewrote border renderer to use only fills with "eofill" subpaths to make the cut-outs for dashed/dotted/double styles.
 - Dashes are now centered along the edge like WebKit does.
 - Removed all logic around VML stroke as it is no longer used.
 - Flattened the getBoxPath method signature to avoid unnecessary transient object creation.
Fixes issue #11
47dc9d8
Jason Johnston Add preliminary support for rgba opacity in simple 2-stop linear grad…
…ients. Enhance VmlShape abstract away the shape regeneration from markup when o:opacity2 is changed.
7e02823
Commits on Nov 19, 2011
Jason Johnston Prevent error when calculating box path coordinates if border-radius …
…is not specified (square box). Closes issue #182
9f098ce
Jason Johnston Don't perform border rendering if there is no border-radius specified. c2f711d
Jason Johnston Stop trying to load scripts when reaching the end of the baseUrls lis…
…t, prevents runaway script inclusion
32ad0df
Commits on Nov 20, 2011
Jason Johnston Fix issue where VML elements would sometimes be invisible on initial …
…render when loading from a remote server, by registering the VML namespace on the document.
d9df42d
Jason Johnston Fix divide-by-zero error when the total width or height of the box-sh…
…adow shape is zero.
28d18b5
Commits on Nov 24, 2011
Jason Johnston Enhancements to PIE.Color: handle converting hsl and hsla color value…
…s to equivalents recognizable by IE, and add a hexValue method which forces colors to 6-digit hex format (this is needed by the Glow filter as it only accepts full hex)
098df06
Jason Johnston Implement rendering of groove, ridge, inset, and outset border styles…
…. Completes issue #10
7e0f6a8
Commits on Nov 25, 2011
Jason Johnston Unbreak border-color on simple rounded borders 51ada2d
Jason Johnston Create the border-image rect shapes immediately rather than waiting u…
…ntil the image loads; works around an issue where the rects would sometimes not display their image and would have a black border instead.
535902a
Jason Johnston Fix alpha value in rgb and hsl colors; was getting set to 0, should be 1 0b100c1
Jason Johnston Sometimes the body doesn't exist yet when doing length units calculat…
…ion (e.g. inclusion of PIE*.js), so fall back to documentElement
887a062
Jason Johnston Don't use uniqueID in PIE.Util.getUID to avoid the check on non-eleme…
…nts. Make getUID for objects only.
576790b
Jason Johnston Ditch the top-level PIE var in the .htc file, since it is very unreli…
…able and was allowing the conditional to get entered twice on different behavior attachments, resulting in double .js downloads.
cac6afb
Commits on Nov 27, 2011
Jason Johnston Combine htc wrapper files into one 4538197
Commits on Dec 01, 2011
@lojjic lojjic Add second background-size value to gradient patterns demo, since bro…
…wsers (namely Gecko) are starting to honor the spec and treat gradients as having no intrinsic aspect ratio, making gradients expand to full width if the second value is empty. See https://bugzilla.mozilla.org/show_bug.cgi?id=706121 -- thanks to David Carson for the heads-up.
ebdc675
Commits on Dec 25, 2011
Jason Johnston updatePos is only used by the root renderer, so move it there instead…
… of being in all renderers
e15ed01
Jason Johnston Change border-image renderer to use simple shapes with an image fill …
…rather than rects with imagedata. This prevents the images from sometimes not getting painted after a long load, and fixes the issue with gaps sometimes appearing between slices.

 Fixes #52
 Fixes #186
317ca26
Jason Johnston Remove imagedata handling from VmlShape, as it is no longer used in b…
…order-image rendering.
454487d
Jason Johnston Merge branch 'master' of github.com:lojjic/PIE 89769ea
Jason Johnston Fix errors when printing: reinstate el reference on Element instance …
…since it's used during print cleanup, and remove the printing logic entirely in IE9 as it isn't needed.
037ffb3
Commits on Dec 27, 2011
Jason Johnston Implement rendering of background-clip. Fix order of gradient opacity. 775ce0a
Commits on Dec 31, 2011
Jason Johnston Make sure the element still exists after the add/removeClass delay. F…
…ixes #191.
0c0087f
Commits on Feb 09, 2012
@lojjic lojjic Fix printing error in IE9 by putting the print media check before att…
…empting to access window.PIE
c080e1b
@lojjic lojjic Bump build number to start 2.0 beta series 4b397f2
Commits on Feb 13, 2012
@CSSJS CSSJS Update documentation/pie-js.html 8f69083
Commits on Feb 27, 2012
@betalb betalb Strip single quotes as well as double from `pie-load-path` a1ac21f
@lojjic lojjic Merge pull request #202 from betalb/patch-1
Strip single quotes as well as double from `pie-load-path`
9697dfe
Commits on Feb 29, 2012
@lojjic lojjic Fix typo. Thanks to Yochai Weiss 34fe48b
Commits on Mar 14, 2012
@lojjic lojjic Add discounthotels.co.uk to sites list. Add rel="nofollow" to all sit…
…e links.
34154b1
Commits on Mar 25, 2012
@lojjic lojjic Merge pull request #200 from CSSJS/patch-1
Update documentation/pie-js.html
239cd8e
Commits on Mar 28, 2012
@lojjic lojjic Add -pie-track-active:false flag to prevent toggling the active class…
… name on mousedown/up on a case by case basis. This can be used to avoid the IE6-7 bug where you couldn't drag the scrollbar of a descendant. Fixes issue #190.
29edda0
@lojjic lojjic Merge branch 'master' of github.com:lojjic/PIE e7d3630
Commits on May 12, 2012
@lojjic lojjic Add support for -pie-track-hover property to allow disabling of autom…
…atic :hover tracking
7f94811
@lojjic lojjic Adjust for IE7's inconsistent application of logical vs. device pixel…
… ratio when zoomed. Issue #79
322d587
@lojjic lojjic IE7 zoom: use offsetWidth/Height directly in boundsInfo width/height …
…instead of multiplying so they are always rounded, as VML doesn't like fractional values. Apply the ratio to the background image size.
c622e0d
@lojjic lojjic Update build doc with info about the 1.x branch 0b22935
@lojjic lojjic Update title of z-index known issues section to be more obvious for u…
…sers experiencing the problem
77fa7a1
Commits on May 13, 2012
@lojjic lojjic Add docs for -pie-track-hover and -pie-track-active cae6bc8
Commits on May 20, 2012
@lojjic lojjic Honor background-clip for the background color in IE9. Fixed issue #207. 5e2c432