ä»æ¥ã¯20幎å
HÃ¥konãããã¥ã¡ã³ããæžããŠ
ãŠã§ãããã°ããç¶ããªã
次ã«ãã¹ã¿ã€ã«ãå®çŸ©ããæ¹æ³ãå¿ èŠã§ãã
玹ä»ãããŠããã ããŸãã
èŠèŠçãªåŸ¡addèµ°ãè¿œå ããæ¹æ³ïŒ
ããŒã³ã³è»æ¹ã®ã«ã¹ã±ãŒãã¹ã¿ã€ã«ã·ãŒãã§ãïŒ
ããããç§ãã¡ãããŒã«ã®å®¶ã«æ¥ãŠåœŒã«ãã®æãæã£ãŠãããããã«é Œãã ãšãã圌ã¯æåŠããFontTagãšBgcolorãšåŒã°ããç¬ãç§ãã¡ã«éããŸããã ãããã£ãŠããã®ãããªã©ãŠã³ãã®æ¥ä»ãããŒã¯ããããã«ãHaakonã«è¡ããCSSã®éå»ãçŸåšãæªæ¥ã«ã€ããŠããã€ã質åãããŸããã
20幎åã«CSSãæãã€ããã ããªãã®çºæ³ãæé·ããããšã«æºè¶³ããŠããŸããïŒ
ã¯ããç§ã¯ãšãŠãæºè¶³ããŠããŸãã CSSã¯Webæšæºã®åºç€ã§ãããããŒãžãããçŸããèŠããŸãã CSSã®æåã«ãããHTMLèªäœããŸã çããŠããŠç¹æ ããŠãããšããäºå®ãå¯èœã§ãã ããããè¥è ã®å Žåã¯ãã€ãããã§ãããæé·ããäœå°ã¯ãŸã ãããŸãã
å€ãã®å ŽåãHTMLãä¿åããããã«CSSãææ¡ããããªãã®èšèãåŒçšããŸãã ãã®èãã説æããŠãã ããã
CSSã䜿çšããªãå ŽåãHTMLã¯å®å šã«ç°ãªããŸãã ç§ãå«ãããã¹ã¯ãããç°å¢ã§Webã«ã¢ã¯ã»ã¹ããçµéšã®ããã¬ã€ã¢ãŠããã¶ã€ããŒã¯ã<color>ã¿ã°ãš<font>ã¿ã°ããªãããã«å®å šã«æ··ä¹±ããŠããŸããã 1993幎ã«åããŠããã¥ã¡ã³ããWebã§å ¬éãããšããããã¹ããåçã«å€æããå¿ èŠããããŸãã ã äºæ ãã©ãã©ãé²ãã§ãããšããŠã§ãã¯å·šå€§ãªãã¡ãã¯ã¹æ©ã«å€ããããã¹ãŠã®ããã¹ããåçã®åœ¢ã§éä¿¡ãããŸãã ããã¯ç®ã®äžèªç±ãªãŠãŒã¶ãŒãæ€çŽ¢ãããã«ãšã£ãŠæªå€¢ã§ãã ãããé²ãããã«CSSãææ¡ããHTMLãè©°ãŸãããããšãªãè¡šçŸåè±ããªãã¶ã€ã³ãäœæããæ©äŒãäœæè ã«äžããŸããã
ä»æ§ã®å ã®ããŒãžã§ã³ã§ã¯ãã圱é¿ããæå®ããããã®ã¡ã«ããºã ãææ¡ãããŸãããããã¯æ¬¡ã®ããã«èŠããŸããïŒ
h1.font.size = 24pt 100%
ã 次ã®ããžãã¯ãæ©èœããã¯ãã§ããïŒ
è¡æ«ã®ããŒã»ã³ãå€ã¯ãåžæãã圱é¿ã¬ãã«ïŒããã§ã¯-100ïŒ ïŒãèšå®ããŸãã ãããæäžäœã®ã¹ã¿ã€ã«ã·ãŒãã§ããïŒã€ãŸãããŠãŒã¶ãŒã®å®å šãªå¶åŸ¡äžã«ããïŒå Žåã圱é¿ã¬ãã«ã®èŠæ±ã¯å®å šã«æºããããšãã§ããŸããããšãã°ããã¹ãŠã®ããããŒã¯Helveticaãã©ã³ãã§è¡šç€ºãããŸãã 圱é¿ã®ã¬ãã«ãäœãã¹ã¿ã€ã«ã§èŠæ±ãããå Žåãããã¯é«ãã¹ã¿ã€ã«ã蚱容ããç¯å²ã§æºããããŸãã
ãªããã®ã¡ã«ããºã ã¯æŸæ£ãããã®ã§ããïŒ
ææžã®äœè ãšèªè ã®å¥œã¿ã®éã§åŠ¥åæ¡ãèŠã€ããããšãææ¡ãããŸããã ã€ã³ã¹ãã¬ãŒã·ã§ã³ã®æºã¯MIT Media Labã®ã¢ã€ãã¢ã§ãã-å°æ¥ããã¬ãã«ã¯æãããè²ã ãã§ãªããæ§å¥ãæŽåã®ã¬ãã«ããŸãã¯ããšãã°å·Šå³ã®æ¿æ²»çèŠè§£ãå¶åŸ¡ããèŠå¶æ©é¢ãå¿ èŠã§ãã 圱é¿ã¡ã«ããºã ã«ã¯ããã®ãããªãã¹ã©ã€ããŒãã®äœæãå«ãŸãããã®äžç«¯ã§äœæè ãææžã®è¡šç€ºãå®å šã«å¶åŸ¡ããèªè ãä»ç«¯ã§å¶åŸ¡ããŸããã ãããŠããã©ãŠã¶ã¯ã誰ããæºè¶³ããããã«ãç¹å®ã®å²åã§å¥œã¿ãæ··ããªããã°ãªããŸããã§ããã ããã¯äžéšã®ããããã£ïŒããšãã°
font-size
ïŒã§ã¯ããŸãæ©èœããŸããããä»ã®ããããã£ïŒããšãã°
font-family
ïŒã§ã¯åé¡ãåŒãèµ·ãããŸããã CSSææ¡ãžã®æåã®å¿çã§ã ããŒããã¹ã¯ãã®èããæ¹å€ããŸããã
2ã€ã®ãã¶ã€ã³ãªãã·ã§ã³ãçµã¿åãããŠãç¹å®ã®ããã«ã¹ã¿ã€ã«ãå®çŸã§ãããšããèãã¯ããŸã£ããééã£ãŠããããã«æããŸãã é»è²ã®èæ¯ã«ããéè²ã®ããã¹ããã誰ãã®ãæ°ã«å ¥ãã®éè²ã®é»è²ãšæ··ãããšã©ããªããŸããïŒ ç·ããç·ïŒ ãŸãã¯ãåè¡çãªè£ 食ãã©ã³ãã§å ¥åãããèŠåºããšHelveticaã«ãã£ãŠå ¥åãããããã¹ãã®æ®µèœãããããŒãžãæ³åããŠãã ããã
ç§ã¯çãã ïŒ
äžéšã®å±æ§ã¯ä»ã®å±æ§ãããããŸãæ··åãããŸãã ãå éå¹³åãã䜿çšããäžè¬çãªã±ãŒã¹ã¯ãããšãã°ãã©ã³ããµã€ãºãå€æŽããããšã§ãäœããéé¢ããããšããèè ã®è©Šã¿ãç·©åããåæã«èªè ã«èããäŒããããšã§ãã ãã®æ©äŒãå©çšãã矩åã¯èª°ã«ããããŸããããã100ïŒ ãã¯ãã€ããªãŠããããšéãã¯ãããŸãããããã€ããªããžãã¯ã«ã¯æäœã®äœå°ããããŸããã äžè¬çã«ãã³ã³ãã¥ãŒã¿ãŒã®ã€ã³ã¿ãŒãã§ã€ã¹ã¯ããŸãã«ããã€ããªã®ããã§ãã
ãã¡ãããBertã¯ããã®ææ¡ã解決ãããããå€ãã®åé¡ãåŒãèµ·ãããšããããšã¯æ£ããïŒã»ãšãã©åžžã«æ£ããïŒã®ã§ãæåŠããªããã°ãªããŸããã§ããã
JavaScriptã¹ã¿ã€ã«ã®ããããä»ããããããã£åã®èšè¿°ã«é¢ããåã質åã ãªãæŸæ£ãããã®ã§ããïŒ
èå³æ·±ãããšã«ããJavaScriptã¹ã¿ã€ã«ããšåŒã³ãŸãã ç§ãæç« ãæžãããšããJavaScriptã¯ãŸã çºæãããŠããªãã£ãã®ã§ããããããã®æ§æãåŸãããšãã§ããŸããã§ããã å®éãMITã®å¥ã®ãããžã§ã¯ãã§ããX Window Systemã®X ãªãœãŒã¹ã¯ãã€ã³ã¹ãã¬ãŒã·ã§ã³ã®æºæ³ãšãªããŸããã
CSSæ§æã
font.size
ãã
font-size
font.size
çç±ã¯2ã€ãããŸããã ãŸãããã€ãã³ã«ãããã³ãŒãã¯è±èªã®ãã¬ãŒã³ããã¹ãã®ããã«ãã€ãŸãèªã¿ããããªããŸããã 第äºã«ã DSSSLããã³DSSSL-Liteã§ã¯ãããããã£åã¯ãã€ãã³ã§æ£ç¢ºã«èšè¿°ãããŠããŸããã DSSSL-Liteã®æåã®ãã©ãããæžããJames Clarkã¯ã æåã®W3Cã¹ã¿ã€ã«ã·ãŒãäŒè°ã«åå ããBertãšç§ã¯DSSSLãããã€ãã³ãåããŸããã ãããããã®æ§æã«ãæ¬ ç¹ããããŸãããã€ãã³ã¯ãã€ãã¹èšå·ãšããŠäœ¿çšãããããŒãµãŒãæ··ä¹±ãããå¯èœæ§ããããŸãã
Bert Bosã¯ã©ã®ããã«ãããžã§ã¯ãã«åå ããã©ã®ããã«ååããŸãããïŒ
ããŒãã»ãã¹ã¯ç§ã®æåã®ææ¡ã«ã€ããŠã¬ãã¥ãŒãæžããŸããã 圌ã®çµéšãšèå³ã¯ç§ã®ãã®ãšã¯å°ãç°ãªããŸãããã 圌ãèªåã®ææ¡ãçºè¡šãããšããç§ãã¡ã¯äž¡æ¹ã®ãªãã·ã§ã³ãçµã¿åãããå¿ èŠãããããšã«ããã«æ°ä»ããŸããã ã¡ããã©ãã®ãšããCERNã¯Webããããªãã¯ãã¡ã€ã³ã«ç§»è¡ããW3Cã³ã³ãœãŒã·ã¢ã ã圢æãããŸããã INRIAã« W3Cã¢ãã£ãªãšã€ããèšç«ããããã«ããŒããéããŸããã CSS1æšæºã®ã»ãšãã©ã¯ãSophia Antipolisãã¯ãããžãŒããŒã¯ã®ãã¯ã€ãããŒãã§çãŸããŸããã ä»ãŸã§ãå¥ã®å°é£ãªæè¡çåé¡ãšæŠã£ãŠãããŒããšãã®ããŒããè¿ãããšã倢èŠãŠããŸãã
CSSãå®çŸãã人ã ã®ãªã¹ãã«å ããŠããã€ã¯ããœããã®Thomas ReardonãšChris Wilsonã«ã€ããŠãèšåããå¿ èŠããããŸãã ããŒãã¹ã¯Internet Explorerã®ãªãŒããŒã§ãããæåããã¹ã¿ã€ã«ã·ãŒããWebã®äžéšã«ããã¢ã€ãã¢ãæãã€ããŸããã Chris Wilsonã¯ãIE3ã§CSSãå®è£ ããŠããããã°ã©ããŒã§ãã IE3ã§ã®CSSã®å®è£ ã¯æšæºããã¯ã»ã©é ããã®ã§ããããCSS1ä»æ§ãå®æããåã«ãã®ãã©ãŠã¶ãŒãç»å Žããããšãå¿ããŠã¯ãªããŸããã ãµã€ã¢ã³ãããšã«ãºïŒMicrosoftãããïŒã¯IE3ã®å°è±¡çãªãã¢ãããã€ãæžããŠããããã®3ã€ã¯å€§æãœãããŠã§ã¢äŒç€Ÿã«è¥ãæšæºããµããŒãããããã«èª¬åŸããŸããã
代æ¿ãªãã¡ãŒã¯ãããŸãããïŒ ã©ãã ã£ãïŒ
çŽ12ã®ä»£æ¿æ§æã®ææ¡ããããŸããã ãããããããã®ãã¹ãŠãããã®ç¹ç°æ§ã®ããã«Webã§ã®äœ¿çšã«é©ããŠããããã§ã¯ãããŸããã ããšãã°ããã©ãŠã¶ã¯ããŒãæã«ããã¥ã¡ã³ããé çªã«ã¬ã³ããªã³ã°ããŸãããã¹ã¿ã€ã«ããŸã 䜿çšå¯èœã§ãªãå Žåã§ããããå®è¡ã§ããå¿ èŠããããŸãã ãŸããã€ã³ã¿ãŒãããã«ã¯ããŸããŸãªããã€ã¹ããããããããã«åå¥ã®ã¹ã¿ã€ã«ã·ãŒããäœæããããšã¯ã§ããŸããã ãã®ãããã¹ã¿ã€ã«èšèªã¯ã¹ã±ãŒã©ãã«ã§ã¬ã¹ãã³ã·ããªãã¶ã€ã³ããµããŒãããå¿ èŠããããŸãã ããã¯ç 究ã«ãšã£ãŠãšããµã€ãã£ã³ã°ãªãããã¯ã§ããã¹ã¿ã€ã«ã·ãŒããæŽçããããã®ããŸããŸãªã¢ãããŒããæ¯èŒããè«æãæè·ããŸããã
ãã¡ããã2çªç®ã®è³ªåã«ã¯ãå¿ãéããŠçããããšã¯ã§ããŸããã CSSã«ã¯ãèšèªãWebã§ã®äœ¿çšã«ç¹ã«é©ãããã®ã«ããããã€ãã®ãã€ã³ãããããšç¢ºä¿¡ããŠããŸããã«ã¹ã±ãŒããæ¬äŒŒã¯ã©ã¹ããã³æ¬äŒŒèŠçŽ ãçŽæ¥äºææ§ã®ãã解æã«ãŒã«ãããŸããŸãªçš®é¡ã®ã¡ãã£ã¢ã®ãµããŒããã»ã¬ã¯ã¿ãŒã®äœ¿çšã®åŒ·èª¿ããããŠãã¡ãã枬å®åäœ
em
ã§ãã
ïŒãããŠããŒãã®ïŒæ倧ã®ééãã¯äœã§ãããïŒ
ç§ã®è«æã§ã¯ãã»ã¯ã·ã§ã³å šäœãCSSã®æ¬ é¥ã«åœãŠãããŠããŸãã ã¯ããããã§ããç§ãã¡ã®é倱ãå«ãã ããããæåã®ããŒãžã§ã³ã®æ倧ã®åé¡ã¯èšèªèªäœã®èšèšã§ã¯ãªãïŒç§ã®æèŠã§ã¯ããªãè¯ãïŒããã©ãŠã¶ãŒã§ã®å®è£ ã§ããã ãžã§ããªãŒã»ãŒã«ããã³ã¯ç¶æ³ãããŸã説æããŸããã
Netscape 3ã<body>
èŠçŽ ã®CSSã«ãŒã«ãç¡èŠããããŒãžã®æ§é èŠçŽ ã«ä»»æã®ãã£ãŒã«ããè¿œå ããå ŽåãIE4ã¯<body>
æ£ããåäœãpadding
ãpadding
ãšæ··åãããŸããããCSSã³ãŒããã©ã®ããã«èšè¿°ããŸãããïŒ äžéšã®éçºè ã¯ããŸã£ããäœæããªãããšã奜ã¿ãŸããã IE4ã®æ¬ é¥ãæã€ãã¡ã€ã«ãšãNetscape 4ã®ãããã³ã°ãæã€ãã¡ã€ã«ãæžãã人ãããŸããã
ãã¡ããã責任ã®äžéšã¯MicrosoftãšNetscapeã«ãããŸããã ä»æ§ã ãã§ãªããã¹ãã¹ã€ãŒããæåããå ¬éããŠããã°ãç§ãBertãW3Cãå€ãã®åé¡ãåé¿ã§ããã§ãããã æåã®çã®CSSãã¹ãã¯ã1998幎10æã«Todd FarnerãAcid testãå ¬éãããšãã«åããŠç»å ŽããŸããã ãã¹ãã¯ç°åžžã§èŠèŠçã§ãã-éçºè ã¯ããã©ãŠã¶ãŒããã¹ãã«åæ Œãããã©ãããããã«ç解ã§ããŸããã æåã¯ãåäžã®ãã©ãŠã¶ã§æž¡ãããšã¯ã§ããŸããã§ããã ãããããã®åŸãCSSã³ãã¥ããã£ããã®åŒ·ãå§åã®äžã§ãäºæ ã¯æ¹åãå§ããŸããã WaSPãããžã§ã¯ã㯠ãæšæºãµããŒãã®æ¹åã«éèŠãªåœ¹å²ãæãããŠããŸããã Operaãã©ãŠã¶ãè²¢ç®ããCSSãæ£ããå®è£ ã§ããããšã瀺ããŸããã OperaãCSSïŒMicrosoftãNetscapeãããã¯ããã«åªããŠããïŒããµããŒãããŠããã®ãèŠããšããOperaã«åå ããŸããã
ãã以åãOperaã®ããªãã¯ã®1ã€ã¯ããã©ãŠã¶ã1æã®ãããããŒãã£ã¹ã¯ïŒ1.44 MBïŒã«åãŸãããšã§ããã åœæãããããããŒãã£ã¹ã¯ã«åãŸãããšãããã¬ãŒãºã¯ã¯ãŒã«ãªåºåã¹ããŒã¬ã³ã§ããã CSSã®è¿œå ã«ããããããããŒãã£ã¹ã¯ã1ã€æ¬ èœããŠããŸããã ããããããŒãã£ã¹ã¯ã«ã»ãŒåãŸãããšããé³ã¯ãããã»ã©ã¯ãŒã«ã§ã¯ãããŸããã
ãªãªãžãã«ã®Acidãã¹ãã¯Acid2ãšAcid3ã®ã¢ãã«ã«ãªããåãã¬ã·ãã«åŸããŸããïŒ:ãªã¬ã€ã¢ãŠãã®WebããŒãžã§ãèšèªã®å€ãã®æ©èœãã©ãã ããµããŒããããŠããããããã«ç€ºããŸãã Acid2ã®éçºã®æšé²åã¯ã Bill Gatesããã®å ¬éæžç°¡ã§ãã ãããã§ã¯ãäºææ§ãæ¯æŽããããã«åœŒãæž©ããçºèšããŸããã IE7æšæºãæºæ ãããããšã¯è«ççãªæ¬¡ã®ã¹ãããã®ããã«æããAcid2ã¯Microsoftã«ãšã£ãŠã®ææŠã§ããã æ£çŽãªãšãããä»ã®ãã©ãŠã¶ãŒã«ãåé¡ããããAcid2ã¯ãã¹ãŠã®ãã©ãŠã¶ãŒã§ãšã©ãŒãçºèŠããŸããã Microsoftã¯IE7ã®Acid2ãç¡èŠããŸãããã-å¥è·¡ãæã èµ·ãã-IE8ã¯å®ç§ã«ãããæž¡ããŸããã ãã¹ãŠã®ææ°ãã©ãŠã¶ãšåæ§ã
第äºéš