LGJ Notes

蒙古大夫 2.0。 這裡紀錄的都不是我的專業,我的專業就是不專業。別傻了,什麼是專業?

« 小玩 METAFONT | Main | Ruby 到底是什麼? »

你的瀏覽器支援 CSS2 嗎?
2005/12/07,23:17 :: 點閱次數 (3524)
目前在 GNU/Linux 及 *BSD 作業系統裡頭的主流瀏覽器應該是 mozillafirefox,但他們對 CSS2 的支援如何呢?


我們先來測試一下網頁:

http://edt1023.sayya.org/vim/vst/css2-test.html

你的測試結果如何呢?重點是在各章節標題前的編號。mozilla/firefox 通通不及格。反而 konqueror 才是正確的。請參考以下各圖(click 該圖後放大):

Mozilla-1.7.12
Mozilla-1.7.12

Firefox-1.5
Firefox-1.5

Konqueror-3.4.2
Konqueror-3.4.2

請注意,Mozilla-1.7.12 完全不支援章節標題在 CSS 中的編號(counter)。Firefox-1.5 有支援,但卻是破掉的。只有 Konqueror-3.4.2 是正確的編號。你可以抓下這個網頁的原始碼研究一下,CSS 通通定義在同一個檔內。並對照 CSS2 規格:

http://www.w3.org/TR/REC-CSS2/generate.html

大家就來找渣一下,到底誰是誰非?:-D

迴響

Comment Icon

Safari v.2.0.2 (416.33) has the same result as Mozilla 1.7.12.

Camino 1.0b1 looks similar to Firefox 1.5.

Posted by: Antony Shen at 2005/12/09, 14:35
Comment Icon counter rest

It can be fixed by reseting counter in the body and header tags. But I'm not sure if Safari/Camino can be fixed, it works in Firefox 1.5.

body {
counter-reset: chapter section subsection subsubsection paragraph;
counter-reset: lchapter lsection lsubsection lsubsubsection lparagraph; }
h2 { counter-reset: section subsection subsubsection paragraph }
h3 { counter-reset: subsection subsubsection paragraph }
h4 { counter-reset: subsubsection paragraph }
h5 { counter-reset: paragraph }

Posted by: 李果正 at 2005/12/09, 18:46
Comment Icon w3c 自己的浏览器 amaya 都不支持 CSS2 ……

w3c 自己的浏览器 amaya 都不支持 CSS2 ……

我用的 amaya 9.1

Posted by: 华华 at 2005/12/29, 15:46
Comment Icon Opera

不只Konqueror喔,Opera 8.52也一樣可以正確的瀏覽。

Posted by: lRabbit at 2006/04/01, 23:18
 
Accessible and Valid XHTML 1.0 Strict and CSS Powered by BS2 Blog