On Sat, Dec 29, 2012 at 12:27 AM, Adam Harvey <[email protected]> wrote:
> On 29 December 2012 11:04, Daniel Convissor > <[email protected]> wrote: > > The prototype website is interesting. I couldn't help but notice that > > the main navigation at the top of the page (Documentation, Community and > > Help) all do nothing if clicked on with JavaScript disabled. > > > > Good websites use straight up HTML and CSS that any web browser can > > process, then use JavaScript to improve the user experience through > > "progressive enhancement." > > > > By the way, the sub-menu effect can be done using CSS alone. > > It's actually one of the things on my list to deal with pre-launch — > you're right that there's no reason we can't do this in pure CSS, and > we need to have the option for fallback, at least. > Here's the issue I have with that. If you do the effects completely in CSS you require everyone to have a CSS 3 capable browser in order for it work. Otherwise you have to fall back to javascript anyway. That just means a larger diff, more code, more testing, etc... That's not an ideal situation as it is because I see very scarce contributions to the php.netinfrastructure at present. I fear it will grow even less maintainable than it is now. Even with growing CSS 3 support in modern browsers not all parts of the spec are implemented or fully implemented in widely used browsers (IE being one of the biggest offenders). From what I can tell so far the prototype's biggest weakness is its CSS rules. As an example the current issue with the user notes section and the the alignment/spacing of the voting information at the top of each note resides from the fact that padding is mixed between pixels and em. So you get awkwardly padded divs when we have this mix under varying resolutions/view-spaces... #usernotes .note .votes .tally { color: #333; padding: 0 0.3em; } and #usernotes .note .votes .usernotes-voted { border-top: 10px solid #999; } That's mostly my fault for deviating from the existing stylesheet already having been laid out in ems and then introducing pixels to the mix. But mostly those are minor issues that I'll touch up in the next few days. Just my 0.00002 cents (sorry inflation is crazy). Sherif, The one that does not work for *you know who*. > > Adam > > -- > PHP Webmaster List Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >
