Mozilla Quirks Mode Behavior

The following is a rough  list of the differences that exist between Mozilla's standards mode and quirks mode behavior.

Miscellaneous & Style

  • All of the style rules in layout/style/quirk.css apply only in quirks mode:
    • Orphaned LI has an inside bullet (bug 1049).
    • Add padding if the very first node in an LI is another UL or OL (bug 98636).
    • List bullets do not inherit the font size of the list (bug 97351).
      Proposed to remove: bug 648331.
    • Don't inhertit font properties into tables except for font-family.
    • Make TABLE borders gray rather than using the foreground color.
    • Collapse top margin of BODY and TD and bottom margin of TD.
    • Collapse the bottom or top margins of empty elements (bug 97361).
    • Support <PRE wrap><PRE cols><PRE width>.
    • Orphaned DD has generated content :before instead of margin (bug 5119).
    • Indent nested DL elements (bug 8749).
    • MAP acts like an inline, not a block.
    • Give floated IMG a 3px margin (bug 58899).
    • Residual style tags' size info does not take precedence over heading tags' size (bug 77352).
    • Use box-sizing:border-box for most INPUT types and TEXTAREA.
    • Give FORM a margin-bottom:1em (bug 41806).
  • In quirks mode CSS class and id names are case insensitive. In standards mode they are case sensitive.  (This also applies to getElementsByClassName.)
  • Stylesheets linked in the document with an advisory mime type of text/css will still be treated as CSS even if the server gives a Content-Type header other than text/css.
  • The CSS parser accepts colors not beginning with #, except in shorthands.
  • The CSS parser interprets unitless numbers as px (except for line-height and any other properties where they have distinct meaning, and except in shorthands).
  • In quirks mode, the CSS parser allows {} around the contents of style attributes (bug 99554). This behavior is being removed in Firefox 27, for interoperability. (bug 915053)
  • An empty string for the background attribute sets the background URL to empty only in quirks mode.
  • The topmarginbottommarginleftmargin, and rightmargin attributes on BODY are supported only in quirks mode (bug 9258).
    Proposed to apply in all modes: bug 95530.
  • The scrollLeftscrollTopscrollWidth, and scrollHeight properties are relative to BODY in quirks mode (instead ofHTML)  (bug 211030).
  • HTML (1-7) and CSS (xx-small - xx-large) font sizes are calculated slightly differently (see bug 18136).
  • The :hover and :active pseudoclass will only be applied to links, images, and form controls. To match other elements, the selector must include a tag name, id, class or attribute.
    Prior to Gecko 6.0 (Firefox 6.0 / Thunderbird 6.0 / SeaMonkey 2.3), there was no class check, so the :hover pseudoclass was not applied to class selectors; for example, .someclass:hover did not work.
  • Quirks mode has document.all support (undetected).
  • Images (IMG elements) without alt attributes sometimes display placeholder icons in quirks mode.
  • Obsolete since Gecko 2.0 HTML colors were parsed differently up to Gecko 1.9.2 (Firefox 3.6 / Thunderbird 3.1 / Fennec 1.0) (bug 121738).
  • In quirks mode, the URL fragment #top scrolls to the top of the page when there is no such anchor.
    Obsolete since Gecko 10.0 However, HTML5 requires this behavior, and starting in Gecko 10.0 (Firefox 10.0 / Thunderbird 10.0 / SeaMonkey 2.7), this also works in standards mode (bug 80784bug 93077).

Block and Inline layout

  • [This quirk is present in almost standards mode.] Line height (not line-height) calculations are different to fix bug 5821 and bug 24186 (some other issues are described in bug 22274).  See almost standards mode for more details.
  • There are a bunch of quirks to get percentage heights on images, tables, objects, and applets (etc.?) to "work" (the way they did in Netscape Navigator 4), even though CSS says that percentage heights should behave like 'auto' heights when the parent element doesn't have a fixed height. See bug 33443#c9. See also bug 41656 and its duplicates. Some of these quirks may cause other effects (see bug 54119).
  • In quirks mode, the FONT element changes the color of text decorations specified on ancestor elements.
    Proposed to apply in all modes: bug 747517.
  • In quirks mode, text-decoration is propagated into floating and absolutely positioned elements.
  • (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1) In quirks mode, text-decoration is not  propagated into tables (bug 572713).
  • maybe (Firefox 3) When computing the minimum intrinsic width of an inline flow directly in a table cell (no blocks in between), it is assumed that it is not possible to break before and after an image (when otherwise it would be).
  • Obsolete since Gecko 8.0 Prior to Gecko 8.0 (Firefox 8.0 / Thunderbird 8.0 / SeaMonkey 2.5) text-decoration in quirks mode had line thickness and position adjusted on descendant text to match the descendant.

Tables

  • TDTHTRTHEADTBODY, and TFOOT elements have the document background (and color?) applied to them (when the document background is specified in certain ways?) (see also bug 70831). [This may have been an accurate description when written in June 2001, but no longer appears accurate. Should look into TableQuirkColorRule, re-describe, and figure out when it changed.]
  • The empty-cells property defaults to hide in quirks mode but show (according to CSS2.1) in standards mode (see bug 33244) (though the correct fix would be to specify it on the HTML TABLE element in quirk.css).
  • In quirks mode floated tables never move to the next "line" if they don't fit next to other floats, they just keep widening the page (see bug 43086).  To correspond, their width is computed as though only the remaining available space is the containing block width (bug 99461).
  • In quirks mode colspan="0" and rowspan="0" are intentionally not handled as described in HTML4 (bug 9879).
  • hspace and vspace are supported on TABLE only in quirks mode (bug 41893).
    Proposed to remove: bug 725646.
  • In quirks mode, when tables have a border style of inset or outset, the border color is based on the background color of the table or of the nearest ancestor with non-transparent background. [This may have been an accurate description when written in June 2001, but it no longer appears correct. I don't follow the code in nsCSSRenderingBorders well enough to tell, though.]
  • In quirks mode a fixed width specified on a table cell resets the nowrap attribute. If the nowrap attribute is present the cell width will never be smaller than the specified fixed width (bug 277232).
  • In quirks mode, tables with no rows/rowgroups have zero height even when a height is specified (bug 241161).
  • Something about the overhanging border (i.e., the half of the border that's outside the border-box) in border-collapse tables differs between quirks mode and standards mode. [See nsTableFrame::GetDeflationForBackground and figure out what really differs, and when it started differing.]
  • Gecko had bug 248239, where table cells acted as they had box-sizing:border-box applied for the purpose of theheight property. This is fixed in Gecko 16 (Firefox 16) for standards mode but remains in quirks mode for compatibility with quirks mode behavior of other browsers.
  • (Firefox 16 / Thunderbird 16 / SeaMonkey 2.13) Since this version bug 338554 is fixed and (-moz-)box-sizing applies to table cells in standards mode, but quirks mode keeps the old behavior.
  • Obsolete since Gecko 1.9 (Firefox 3) In quirks mode table cells with a border have a minimum width of one pixel.
  • Obsolete since Gecko 1.9 (Firefox 3) The basic table layout strategy ignores padding (on what) in quirks mode.
  • Obsolete since Gecko 1.9 (Firefox 3) The basic table layout strategy handles widths differently in some way.
  • Obsolete since Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1) In quirks mode absmiddle (handled incorrectly?) and middle (perhaps incorrectly as well?) are accepted as values of align on table cells, and absmiddleabscenter, andmiddle are supported on tables (treated the same as center).
    Removed in bug 559834 and bug 573322, though middle and absmiddle in table cells work in all modes now.
  • In quirks mode, percentage values are supported on the cellspacing attribute, but treated as pixels (bug 106336).
    Obsolete since Gecko 13.0 (Firefox 13.0 / Thunderbird 13.0 / SeaMonkey 2.10) This quirk has been adopted in standards mode now.

Frames

  • In quirks mode marginwidth and marginheight on a FRAME are propagated to the contained BODY.
  • In a FRAMESET cols/rows specification 0* is treated as 1* (see bug 40383).
  • Obsolete The scrolling attribute on FRAME is handled differently.

HTML Parser

  • In quirks mode, we parsed HTML comments in a non-SGML way compatible with other browsers instead of treating "--" as the comment start and end delimiter.
    Obsolete since Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1) This quirk is now HTML5 conform and has been adopted in standards mode.

Original Document Information

  • Author(s): David Baron, Boris Zbarsky

See also

Mozilla's Quirks Mode

以下是对提供的参考资料的总结,按照要求结构化多个要点分条输出: 4G/5G无线网络优化与网规案例分析: NSA站点下终端掉4G问题:部分用户反馈NSA终端频繁掉4G,主要因终端主动发起SCGfail导致。分析显示,在信号较好的环境下,终端可能因节能、过热保护等原因主动释放连接。解决方案建议终端侧进行分析处理,尝试关闭节电开关等。 RSSI算法识别天馈遮挡:通过计算RSSI平均值及差值识别天馈遮挡,差值大于3dB则认定有遮挡。不同设备分组规则不同,如64T和32T。此方法可有效帮助现场人员识别因环境变化引起的网络问题。 5G 160M组网小区CA不生效:某5G站点开启100M+60M CA功能后,测试发现UE无法正常使用CA功能。问题原因在于CA频点集标识配置错误,修正后测试正常。 5G网络优化与策略: CCE映射方式优化:针对诺基亚站点覆盖农村区域,通过优化CCE资源映射方式(交织、非交织),提升RRC连接建立成功率和无线接通率。非交织方式相比交织方式有显著提升。 5G AAU两扇区组网:与三扇区组网相比,AAU两扇区组网在RSRP、SINR、下载速率和上传速率上表现不同,需根据具体场景选择适合的组网方式。 5G语音解决方案:包括沿用4G语音解决方案、EPS Fallback方案和VoNR方案。不同方案适用于不同的5G组网策略,如NSA和SA,并影响语音连续性和网络覆盖。 4G网络优化与资源利用: 4G室分设备利旧:面对4G网络投资压减与资源需求矛盾,提出利旧多维度调优策略,包括资源整合、统筹调配既有资源,以满足新增需求和提质增效。 宏站RRU设备1托N射灯:针对5G深度覆盖需求,研究使用宏站AAU结合1托N射灯方案,快速便捷地开通5G站点,提升深度覆盖能力。 基站与流程管理: 爱立信LTE基站邻区添加流程:未提供具体内容,但通常涉及邻区规划、参数配置、测试验证等步骤,以确保基站间顺畅切换和覆盖连续性。 网络规划与策略: 新高铁跨海大桥覆盖方案试点:虽未提供详细内容,但可推测涉及高铁跨海大桥区域的4G/5G网络覆盖规划,需考虑信号穿透、移动性管理、网络容量等因素。 总结: 提供的参考资料涵盖了4G/5G无线网络优化、网规案例分析、网络优化策略、资源利用、基站管理等多个方面。 通过具体案例分析,展示了无线网络优化中的常见问题及解决方案,如NSA终端掉4G、RSSI识别天馈遮挡、CA不生效等。 强调了5G网络优化与策略的重要性,包括CCE映射方式优化、5G语音解决方案、AAU扇区组网选择等。 提出了4G网络优化与资源利用的策略,如室分设备利旧、宏站RRU设备1托N射灯等。 基站与流程管理方面,提到了爱立信LTE基站邻区添加流程,但未给出具体细节。 新高铁跨海大桥覆盖方案试点展示了特殊场景下的网络规划需求。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值