|
|
ru.website- RU.WEBSITE ------------------------------------------------------------------- From : Konstantin Riabitsev 2:5020/400 16 Feb 2001 23:40:38 To : Konstantin Riabitsev Subject : [mozilla] баг был вовсе и не багом -------------------------------------------------------------------------------- Bring owt yer dead! - сказал я и мне вынесли Konstantin Riabitsev... Hаглядный пример проблемы между клавиатурой и стулом -- я думал что это баг: KR> Пример -- буквально два дня назад я нашел такой баг: KR> <html> KR> <body> KR> <div id="gray" style="width: 100%; height: 100%"> KR> <div id="blue" style="width: 40%; height: 40%; margin-top: 30%"> KR> </div> KR> </div> KR> </body> KR> </html> KR> В мозилле наблюдается регрессия "margin-top" из блока blue в gray, но KR> происходит это только если в блоке gray нет инлайн-контента. А оказалось что так и надо, поскольку блоки без инлайн-контента должны коллапсироваться и их margin сливаться воедино. Думал баг, а оказалось что баги в голове, о чем мне и поспешили сообщить в W3C: See CSS2: http://www.w3.org/TR/REC-CSS2/box.html#collapsing-margins and the section of the CSS2 errata item for section 10.6.3 in http://www.w3.org/Style/css2-updates/REC-CSS2-19980512-errata.html for an explanation. The first says that *any* adjacent vertical margins of blocks in the normal flow collapse (this includes margins of adjacent siblings, of parent and first or last child, and combinations thereof). The second clarifies that this collapsed margin, in the case of parent/child collapsing, goes outside the parent. -- 0> Konstantin Riabitsev (Mr. Icon) -> icon@mricon.com / ) My XML-XSLT powered website -> http://www.mricon.com/ ~ XMMS playing -> %s --- ifmail v.2.15dev5 * Origin: Nicodemus Project (OISter) (2:5020/400) Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.website/10467e051ed54.html, оценка из 5, голосов 10
|