Skip navigation.

Posts tagged with "test"

CSS Test: My 1st JavaScript + transparency

, ,

CSS transparency test: here

This idea came from the CSS fixed position. I needed a "follow mouse y coordinate" script and I'm no good in JavaScript, I tried to write one myself and gave up when found out that I could tweaked a script from javascriptkit worked. (It's becoming a bad habit!)


These are the different transparency rules I have found:

/* standard css opacity rule: */

opacity: 0.5

/* for Gecko Browsers: */

-moz-opacity:0.5

/* for Konquerer and Safari: */

-khtml-opacity:0.5

/* for IE: */

filter:alpha(opacity=50)


Most browsers won't understand the standard rule for transparency : opacity:0.5.(yet? I hope)
The problem: Either the hightlight block follows the cursor and you won't be able click on a link so it has to be a bit above or below.

This test has been tested it in Firefox, Opera and Safari, dosn't work in Mac IE which is normal. But I don't know if it will work for other browsers in Windows. If it doesn't work please let me know, comments are welcome.


Here's the test: CSS3 and Javascript screen reader test




CSS test n*2:Outset and Headers

, , , ...

Div, Headers n' borders


Headers inside a DIV with borders set to thin outset grey/gray(both work).
Notice how each browser render header width very differently. These are the smallest window width I could get without cutting out the content.



Firefox 1.0.7:



This is the only one where top bottom paddings are different. Huge right padding.

Internet explorer Mac 5.2.3:



Top bottom padding are equal. No margin above H1. Borders look solid.

Safari 1.3.1:



Top bottom padding are equal. Big right padding


Opera 8.5:



Top bottom padding are equal. H1 and H2 have more margin-bottom than Firefox, H6 has no margin-bottom.

CSS test n*1 -Inside tags: DIVS

, , ,

Comparing different tags, -no paddings, no margins:
compare the yellow aeras...


div
Done in Firefox

Download Opera, the fastest and most secure browser