<br><br><div class="gmail_quote">2009/2/8 Smylers <span dir="ltr"><<a href="mailto:Smylers@stripey.com">Smylers@stripey.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">Giovanni Campagna writes:<br>
<br>
> If <input type="submit"> in some UA is rendered with all properties<br>
> set to initial, not only it does not express the semantic of a button,<br>
> but it may be difficult for a user to actually recognize it as a<br>
> button and eventually click it. In that case I, as the author, may<br>
> need to manually set { appearance:push-button;<br>
> content:attr(value,string,"Send"); } in order to have my form<br>
> submitted. Try this example (in Firefox or Safari):<br>
> data:text/html,<style>label { position:fixed; top:-1em; border:1px<br>
> solid black; } label input { -moz-appearance:none;<br>
> -webkit-appearance:none; border:none; width:auto; } input[type=submit]<br>
> { -moz-appearance:none; -webkit-appearance:none;<br>
> background-color:transparent; border:none; }</style><form<br>
> action="<a href="http://www.google.com/search" target="_blank">http://www.google.com/search</a>" method="get"><label>Search:<br>
> <input type="text" value="" name="q"></label><input type=submit<br>
> value="Go"><br>
><br>
> Imagine that was the UA default stylesheet instead of an author<br>
> stylesheet and you may see what interoperability means with web<br>
> application look and feel.<br>
<br>
</div>Indeed it would be a problem if a major web browser shipped with such a<br>
default style-sheet. But ... I'm really having trouble imagining any of<br>
them doing so. It isn't in mainstream browsers' interests to produce<br>
products which purposefully confuse their users.<br>
<br>
Surely a browser which disguises buttons as plain text is going to lose<br>
market share of its own accord, regardless of what HTML 5 says?</blockquote><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Or, to look at it from the opposite direction, supposing a browser<br>
producer really wanted to make buttons look like plain text, would<br>
whether HTML 5 condemns this practice really affect what they do? Would<br>
not being able to market their browser as HTML-5-compliant be enough<br>
that they'd begrudgingly forget their desire? Would users dissatisfied<br>
with the behaviour only complain because it breaches HTML 5, rather than<br>
because, say, it's really stupid?<br>
<br>
I can't see how a requirement such as you propose would make any<br>
practical difference on avoiding the outcomes you wish to avoid. But it<br>
might unnecessarily curtail innovation in directions that we haven't yet<br>
envisaged -- perhaps somebody developing a specialist user-agent for<br>
mobile devices (or digital TV, or for print-based output, or<br>
large-screen non-interactive displays, or ...) comes up with a different<br>
way of displaying certainly elements which she considers is superior for<br>
her particular target audience; why should the spec attempt to dissuade<br>
her from doing so?<br>
<font color="#888888"><br>
Smylers<br>
</font></blockquote></div><br>I agree with you that we must not constrain the innovation, but in that case, what is the whole purpose of the Rendering section?<br>I think that section is for<br>- implementors of new UAs, that don't need to reverse engineer the competitor products in order to find the defaults<br>
- authors, that in this way know what to expect from the various UA with less testing, that sometimes is also impossible, eg. you cannot test the rendering of a mobile phone if you don't have a mobile phone<br>Having somewhere written that hyperlinks should be blue, allows you to style the background-color to anything but blue.<br>
If the UA suddenly displays hyperlinks in green and I decided that my background is green, the user will complain with me, not with the UA (and will probably switch to a different website)<br>Having somewhere said that <table> should be rendered as CSS tables, allows you to put a border-collapse for example. If <table> suddenly starts to be displayed as an hierarchical tree, my site may be broken at once.<br>
<br>The solutions are two:<br>1) either provide a default style sheets only for author and say: "you want the usual rendering everywhere? import this". This means that the whole Rendering sections should be moved to an Appendix and a separate downloadable CSS file should be provided. In addition the "presentational hints" become useless, since many of them cannot be expressed in terms of CSS, and actually, all UA default style sheets are less important, because most of time they will be overriden by author style sheets. Last, but not least, you have to face an increased traffic to load an heavy CSS file just for two or three display.<br>
2) mandate a set of CSS properties and value.<br><br>Giovanni<br>