![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
inherit Initial: none |
#2
| |||
| |||
|
|
From HTML4: User agents generally render links in such a way as to make them obvious to users (underlining, reverse video, etc.). The exact rendering depends on the user agent. Rendering may vary according to whether the user has already visited the link or not. From CSS2: 'text-decoration' Value: none | [ underline || overline || line-through || blink ] | inherit Initial: none Applies to: all elements Inherited: no (see prose) Percentages: N/A Media: visual This property describes decorations that are added to the text of an element. If the property is specified for a block-level element, it affects all inline-level descendants of the element. If it is specified for (or affects) an inline-level element, it affects all boxes generated by the element. ---- From my understanding, these two standards are somewhat conflicting. The HTML standard basically acknowledges that browsers typically perform special rendering for anchors but makes no specification as such. Under CSS, an anchor would be an inline element and so should use the same text-decoration as its parent block. |
|
Assuming the default as 'none', most browsers are technically wrong under CSS to render anchors with an underline if the stylesheet is not explicitly set to do so. Is my understanding correct? |
#3
| |||
| |||
|
|
From HTML4: User agents generally render links in such a way as to make them obvious to users (underlining, reverse video, etc.). The exact rendering depends on the user agent. Rendering may vary according to whether the user has already visited the link or not. From CSS2: 'text-decoration' Value: none | [ underline || overline || line-through || blink ] | inherit Initial: none Applies to: all elements Inherited: no (see prose) Percentages: N/A Media: visual This property describes decorations that are added to the text of an element. If the property is specified for a block-level element, it affects all inline-level descendants of the element. If it is specified for (or affects) an inline-level element, it affects all boxes generated by the element. ---- From my understanding, these two standards are somewhat conflicting. The HTML standard basically acknowledges that browsers typically perform special rendering for anchors but makes no specification as such. Under CSS, an anchor would be an inline element and so should use the same text-decoration as its parent block. Assuming the default as 'none', most browsers are technically wrong under CSS to render anchors with an underline if the stylesheet is not explicitly set to do so. |
#4
| |||
| |||
|
|
From my understanding, these two standards are somewhat conflicting. The HTML standard basically acknowledges that browsers typically perform special rendering for anchors but makes no specification as such. Under CSS, an anchor would be an inline element and so should use the same text-decoration as its parent block. Assuming the default as 'none', most browsers are technically wrong under CSS to render anchors with an underline if the stylesheet is not explicitly set to do so. Is my understanding correct? |
#5
| |||
| |||
|
|
From HTML4: User agents generally render links in such a way as to make them obvious to users (underlining, reverse video, etc.). The exact rendering depends on the user agent. Rendering may vary according to whether the user has already visited the link or not. From CSS2: 'text-decoration' Value: none | [ underline || overline || line-through || blink ] | inherit Initial: none Applies to: all elements Inherited: no (see prose) Percentages: N/A Media: visual This property describes decorations that are added to the text of an element. If the property is specified for a block-level element, it affects all inline-level descendants of the element. If it is specified for (or affects) an inline-level element, it affects all boxes generated by the element. ---- From my understanding, these two standards are somewhat conflicting. The HTML standard basically acknowledges that browsers typically perform special rendering for anchors but makes no specification as such. Under CSS, an anchor would be an inline element and so should use the same text-decoration as its parent block. Assuming the default as 'none', most browsers are technically wrong under CSS to render anchors with an underline if the stylesheet is not explicitly set to do so. Is my understanding correct? |
#6
| |||
| |||
|
|
If you turn off the default stylesheet, you will lose the underlining |
#7
| |||
| |||
|
|
But browsers implement much of HTML4 rendering rules with a "default stylesheet". |
|
Typically that contains a rule like :link { text-decoration:underline } See Appendix D of CSS 2.1 for the suggested default stylesheet. |
|
So even if there are no author stylesheets, links will be underlined. If you turn off the default stylesheet, you will lose the underlining (and also headings, paragraphs, list item bullets, in principle even tables -- everything will just be display: inline, font-size: medium, etc.) |
#8
| |||
| |||
|
|
In article <slrnhd3543.9hl.spamspam (AT) bowser (DOT) marioworld>, Ben C <spamspam (AT) spam (DOT) eggs> wrote: If you turn off the default stylesheet, you will lose the underlining Using FF View/page Style/No Style does not remove the underlining. |
|
Nor via the normal Web Developer tools (like Disable Browser Default Styles). |
|
Is the default stylesheet a towering hunk intimidating all and everything that tries to shunt it aside. Not quite. It happily withdraws in respect to many styles. But not the underlining. Perhaps link underlining is hard coded into the browser somehow as default for anchors but which can be overridden by CSS. |
#9
| |||
| |||
|
|
Ben C wrote: But browsers implement much of HTML4 rendering rules with a "default stylesheet". Or they just do as browsers have traditionally done, and you might be able to describe this in terms of a fictitional default stylesheet. Modern browsers might get closer to real browser stylesheets, but much of "browser stylesheets" is just figurative speech. |
|
So even if there are no author stylesheets, links will be underlined. If you turn off the default stylesheet, you will lose the underlining (and also headings, paragraphs, list item bullets, in principle even tables -- everything will just be display: inline, font-size: medium, etc.) Maybe you will, maybe you won't. Browsers existed for HTML documents before CSS, too. They might thus fall back to pre-CSS rendering habits rather than CSS-enabled rendering with default stylesheet ignores. |
#10
| |||
| |||
|
|
dorayme wrote: .... ... not the underlining. Perhaps link underlining is hard coded into the browser somehow as default for anchors but which can be overridden by CSS. The link colors are preserved, too. I wonder how it should be described in CSS terms, but anyway this seems to depend on what is settable in Firefox browser settings. .... |
![]() |
| Thread Tools | |
| Display Modes | |
| |