Tantek-Mozilla-Projects: Difference between revisions
(→CSS4 UI: more overflow extensions) |
|||
Line 303: | Line 303: | ||
*** CSS portions of [[Gecko:FullScreenAPI]], e.g. the new pseudo-classes | *** CSS portions of [[Gecko:FullScreenAPI]], e.g. the new pseudo-classes | ||
*** <span id="new-resize-values">new 'resize' values</span> - e.g. '''grow-vertical''', '''grow-horizontal''' | *** <span id="new-resize-values">new 'resize' values</span> - e.g. '''grow-vertical''', '''grow-horizontal''' | ||
**** Facebook uses some JS to add rows to text areas when you hit the end of the available space. It feels nicer than a scrollbar because you can see all of what you typed -- the height of the text area just grows and grows as you need it. It would be great to have 'resize' property values that allow the browser to auto-grow a textarea as a user enters data, e.g. 'grow-horizontal', 'grow-vertical'. 'grow-vertical' would emulate the current behavior that FB does with JS. | **** Facebook uses some JS to add rows to text areas when you hit the end of the available space. It feels nicer than a scrollbar because you can see all of what you typed -- the height of the text area just grows and grows as you need it. It would be great to have 'resize' property values that allow the browser to auto-grow a textarea as a user enters data, e.g. 'grow-horizontal', 'grow-vertical'. 'grow-vertical' would emulate the current behavior that FB does with JS. (note from fantasai - this is the behavior you'd get with fixed min-height and auto height, so CSS can do this already if HTML doesn't get in the way) | ||
**** Update 2011-032: [http://twitter.com/LeaVerou/status/32642516146724866 @LeaVerou requested] "elastic textarea effect with pure CSS" [http://twitter.com/LeaVerou/status/32651575688175616 and follow-up]: "mostly about height, not width" which sounds like resize:grow-vertical. There's also mention of "-moz-available" (need to research that and link it up). | **** Update 2011-032: [http://twitter.com/LeaVerou/status/32642516146724866 @LeaVerou requested] "elastic textarea effect with pure CSS" [http://twitter.com/LeaVerou/status/32651575688175616 and follow-up]: "mostly about height, not width" which sounds like resize:grow-vertical. There's also mention of "-moz-available" (need to research that and link it up). | ||
** forward reaching properties/values to enable native-like interfaces | ** forward reaching properties/values to enable native-like interfaces |
Revision as of 00:50, 17 February 2011
Hi, I'm Tantek Çelik, and you've found my list of projects that I'm working on with Mozilla.
I'm currently (as of 2010-146) a Mozilla contractor working with Chris Blizzard and the web standards team, focused on specification work, especially around web applications user interfaces and social/identity open web technologies. I participate in standards related events for both official organizations like W3C, and grass-roots efforts like microformats and ActivityStreams. If you have feedback for these groups, let me know!
Specifications, efforts and summary status:
- CSS
- CSS Style Attributes: Achieved Candidate Recommendation (CR). Possible next steps, test cases/suite to help exit CR.
- CSS3 Color: Achieved Proposed Recommendation (PR). Awaiting CSS 2.1 to reach PR.
- CSS3 UI: editing CR toward producing a new LCWD.
- CSS UI Layout: Flex Box and Grid: Discussing differences and use cases with dbaron, and how to best design/define both for the benefit of web designers.
- CSS3 Element: decide which draft to get it into (separate draft, Values and Units) and update draft accordingly.
- CSS4 UI: collecting ideas, features, proposals towards writing a FPWD.
- CSS4 Color: collecting ideas, features, proposals towards writing a FPWD.
- HTML5:
- follow-up on rejected/accepted spec improvement suggestions, figuring out next-steps for anything rejected
- figure auto-close p issue. awaiting feedback from HTML5 Superfriends... then blog or email public-html about it.
- DOM API vendor prefixing: discussing internally at Mozilla to build consensus, set a good example.
- vCard4: waiting-for responses to feedback on draft 15 to vcarddav group, updated draft (16?) with at least some of my requested changes being accepted.
Unfiled:
See below for more details on each.
Web Apps
UI Styling
At a high level there are two general clusters of use cases that web pages/apps want/need to solve in terms of user interface fidelity.
1. Beautiful Built-in Tweakable Controls. Pages that have some interactivity where the designer wants to use the built-in set of semantic user interface controls/inputs as long as they can just "tweak" them to match their web page/site design, e.g. color, background, typography. As long as the look and feel of built-in controls is beautiful enough both by default and with minor tweaks, then the hypothesis is that web designers will be happy/content to use built-in controls rather than go the extra mile to re-build custom controls with divs and javascript etc.
Some data for this hypothesis: default iPhone/iPad controls are pretty enough that most developers are more than happy to use them - the default controls make their apps look beautiful, polished, without much work/tweaking (modulo layout/sizing etc.) If we can achieve that same experience with built-in controls, the theory is that most web designers will be happy to stick with built-in controls + CSS.
2. Rich native-app-like experiences. Games. Media interfaces like WinAmp. There are always going to be some user interfaces where the developer wants nearly total control of the look and feel. Just take a look at typical Flash or Flex app UIs (note: some of those are egregiously inconsistent with the underlying OS platform just for the sake of being different - hard to avoid that but we can discourage it by making the cluster 1 solution easier and more accessible). In this case I'd like to see us figure out how to build hybrid controls that:
a) Are built with the closest semantic built-in control for any particular custom control, and
b) Use a <canvas> for drawing custom appearance, with DOM event handlers drawing control-specific state in the canvas, and
c) Have text-based fall-back in the canvas.
Example markup (event attributes/handlers omitted for simplicity)
<button><canvas> Play </canvas></button>
(Now we just need a way to do that with text inputs too.)
The goal in this second scenario is to enable building rich native-app-like user interfaces where the path of least resistance to building it uses building blocks that in themselves enable accessibility. I think this is both possible, and is a necessary course of action to avoid having to do "bolt-on" accessibility later.
For now, the sections below focus on addressing/solving the first cluster of use cases first.
The theory is that by addressing that first that it will become more obvious which specific real-world rich interfaces fall into the second cluster, and therefore we can design for that second cluster based on those specific interfaces.
Styling HTML5 UI elements
We need to define how Forms and other UI elements can be styled, and to synchronize our work with the W3C.
Working with Mounir Lamouri on this: User:Mounir.lamouri/HTML5_Forms
Each HTML5 UI element must be complete to the following criteria:
1. It must include pleasant and working UI, where appropriate.
This is a big design challenge. Take a look at what Opera has done for example (in terms of challenges). Here is a simple test page which shows default renderings - compare in various browsers and try interacting with the new widgets especially in Opera:
http://tantek.com/new-inputs.html
See HTML5/input for more <input> element tests.
- Need more sample/test/wiki pages for other HTML5 UI elements.
2. You must be able to use CSS to style the element, especially the UI that we generate. This includes any pre-defined pseudo-selectors (invalid, required, icon, etc.)
Agreed, this is an absolute requirement.
Whenever there is any custom appearance of a form control, e.g. based on the new types, designers must be able to restyle them to fit in with their design. This means at a minimum:
- ability to select specific "pieces" of any compound/composite form control for styling
- feeds into requirements for CSS pseudo-elements
- consider existing CSS3-UI pseudo-elements
- ::value can be used for selecting/styling placeholder text (see bug 457801 comment 25)
- ::choices
- ::repeat-item
- ::repeat-index
- consider additional pseudo-elements based on vendor prefixed pseudos
- Safari 5 supports pseudo-elements for restyling overflow scrollbars
- ::webkit-scrollbar-thumb
- ::webkit-scrollbar-track
- ::webkit-scrollbar
- Safari 5 supports pseudo-elements for restyling overflow scrollbars
- ability to select specific "states" of any form control (may require ability to select states of specific pieces as well - that will be a challenge though as pseudo-elements themselves cannot have pseudo-classes in CSS)
- existing Selectors UI pseudo-classes, and some notes on how HTML5 DOM property states trigger these pseudo-classes
- :hover :active - based on mouse/pointer interactions. the challenge here is to find alternatives for touch based interfaces.
- :focus - an element which is currently accepting keyboard, pointer, or other input device events.
- :enabled and :disabled - based on the state of the "disabled" property on the element.
- :checked - based on the "checked" property on input types "radio" and "checkbox", and also on the "selected" property on option element.
- :indeterminate - based on the "indeterminate" property of the input types "radio" and "checkbox".
- :default - default buttons or submit buttons
- :valid and :invalid - input elements that are candidates for constraint validation and either do or don't (respectively) satisfy their constraints.
- :in-range and :out-of-range - input elements that are candidates for constraint validation and that are neither under nor overflowing (for :in-range) or either under/overflowing (for :out-of-range).
- :required and :optional - see HTML5 description of being required / required attribute
- :read-only and :read-write - see HTML5 description of read-only vs read-write elements.
- additional pseudo-selectors as needed for states/portions included in HTML5 forms elements features
- "placeholder" attribute - needs a new :-moz-placeholder pseudo-class (bug 457801)
- :placeholder pseudo-class needs to be proposed for CSS3.1 UI/Selectors.
- "placeholder" attribute - needs a new :-moz-placeholder pseudo-class (bug 457801)
- existing Selectors UI pseudo-classes, and some notes on how HTML5 DOM property states trigger these pseudo-classes
- typography
- font properties
- text properties
- color
- box properties
- width
- height
- padding
- border
- margin
- background
- box-shadow
3. If there's a constraint API the API must be complete.
4. It should be fully accessible.
Possible new HTML5 UI elements
The new user interface elements in HTML5 cover quite a bit of Web Apps UI scenarios. There are both requests based on specific user/application scenarios, and there is also the full set of user interface objects represented by the values of the CSS3 UI 'appearance' property
specific new elements
<menubar>
- pull-down-menu
- context-menu
<input type="year">
- based on<time>
element use case research<input type="month-day">
- based on<time>
element use case research
CSS3 UI appearance values
From CSS3 UI 5.1. Appearance values:
Needs:
- tab - a button that looks like the browser's tabbed windows tabs.
- menubar - a menu of menus, typically arranged linearly, in a horizontal bar.
- pull-down-menu - a menu where the name of the menu is displayed and the options remain hidden until the user activates the menu. When the user releases or deactivates the menu, the options are hidden again.
- radio-group - a menu where the options are displayed as radio-buttons.
- checkbox-group - a menu where the options are displayed as checkboxes.
- outline-tree - a menu where the options can be shown or hidden with small widgets, often represented by a small triangle or plus and minus signs. might be possible to build one using
<details>
and<summary>
. - combo-box - a field which is accompanied by a menu of preset values that can be used to quickly enter common or typical values.
- signature - a field for entering a signature.
Full list with equivalents:
- icon - handled by 'icon' property and HTML5 Drag & Drop
- window - mostly handled outside of elements, except perhaps 'tooltip' which could be purely presentational
- button - by default a push-button
- push-button -
<input type=button>
and
<button>
- hyperlink -
<a href>
- radio-button -
<input type="radio">
- checkbox -
<input type="checkbox">
- menu-item -
<option>
and<optgroup>
- tab - no HTML5 equivalent
- push-button -
- menu - by default a pop-up-menu
- menubar - no HTML5 equivalent
- pull-down-menu - no HTML5 equivalent
- pop-up-menu -
<select>
- list-menu -
<select size=n
(where n>1) - radio-group - no HTML5 equivalent
- checkbox-group - no HTML5 equivalent
- outline-tree - no complete HTML5 equivalent but
<details>
and<summary>
may help. - range -
<input type="range">
- field -
<input type="text">
and<textarea>
- combo-box - no HTML5 equivalent
- signature - no HTML5 equivalent
- password -
<input type="password">
CSS Style Attributes
- latest published draft (CR)
- http://www.w3.org/TR/css-style-attr/
- latest development / in progress draft
- http://dev.w3.org/csswg/css-style-attr/
- spec source (for editing)
- http://dev.w3.org/csswg/css-style-attr/Overview.src.html
- test suite
- TBD
- implementation reports of the test suite
- TBD
- issues list for the current draft
- http://wiki.csswg.org/spec/css-style-attr
remaining tasks
- email Hixie to update reference to CSS Style Attributes draft in HTML5 References
See also CSSWG wiki task list: http://wiki.csswg.org/spec/css-style-attr
CSS3 UI
- latest published draft
- http://www.w3.org/TR/css3-ui/
- latest development / in progress draft
- http://dev.w3.org/csswg/css3-ui/
- spec source (for editing)
- http://dev.w3.org/csswg/css3-ui/Overview.src.html
- test suite
- TBD
- implementation reports of the test suite
- TBD
- issues list for the current draft
- http://wiki.csswg.org/spec/css3-ui
remaining tasks
Remaining tasks to get CSS3 UI to PR:
- text-overflow
- clarify text per emails from fantasai/RoC or consider explicitly stating as undefined (per suggestions from RoC)
- the behavior of text-overflow:ellipsis on a block with 'overflow' of 'scroll' (no good interop, ideal behavior documented, needs screenshots)
- testcase from RoC: http://lists.w3.org/Archives/Public/www-style/2011Jan/att-0669/test.html
- interaction of text-overflow:ellipsis with event handling
- behavior of text-overflow:ellipsis on lines containing replaced elements
- also create an implementer FAQ on the CSS WG wiki re: text-overflow accordingly
- resolve issues. resolve/apply proposals from issues list: http://wiki.csswg.org/spec/css3-ui
- overflow-x overflow-y. consider incorporating overflow-x and overflow-y
- pull-in the entirety of section 16 from
- sync (incorporated) any updates/changes in 2.1:
- search www-style for issues related to 'overflow-x' and 'overflow-y'
- ask Anne van Kesteren and www-style directly
- check that css3-marquee implicitly deals with overflow-x and overflow-y correctly
- investigate discussion of ink overflow vs layout overflow - fantasai will get more info on this. e.g. box-shadow should never trigger scrollbars. do margins? maybe they don't trigger overflow but if there is overflow anyways (something else triggers scrollbars), then margins influence the dimensions of the scrollable area.
- implementation documentation. document claims of existing implementations (CSSWG implementers have until 2010-09-17 to submit claims of implementation)
- Webkit CSS3 UI - http://lists.w3.org/Archives/Public/public-html/2009Sep/0060.html
- Opera CSS3 UI - http://lists.w3.org/Archives/Public/public-html/2009Sep/0202.html
- Mozilla CSS3 UI
- :default
- :indeterminate
- ::-moz-selection - needs removal of prefix.
- :-moz-placeholder
- more UI related pseudo-classes discussed in devmo CSS Reference
- -moz-appearance - needs analysis to figure out if it complies with intent of 'appearance' property
- -moz-box-sizing - needs unprefixing (bug 243412).
- extra value 'padding-box' is implemented - consider adding it to CSS3-UI
- 'cursor' - new values
- outline-offset -
- Internet Explorer 8 CSS3 UI support - ??? (expect email from johnjan @ MS)
- IE5/Mac CSS3 UI support - ???
- draft and publish at least a minimal coverage test suite that covers those claims
- document actual implementation results
- reducing feature set down to what's been implemented in more than one browser
- write new CSS3 UI LCWD editors draft with only non-at-risk features based on above implementation evidence (or imminent implementation - kept at risk)
- write new UI Selectors FPWD editors draft with all new UI selectors (consider limiting to those with at least one implementation, any with less than 2 implementations, mark at risk up front)
- collect/address new CSS3 UI LCWD issues as they are reported
- respond to all the commenters on issues with proposed resolutions (hopefully thus addressing their concerns and resolving the issues accordingly)
- incrementally draft new CSS3-UI CR draft accordingly
- wait for new CSS3 UI LCWD last-call period to end
- write UI Selectors LCWD - with features with at least one implementation, any with less than 2 implementations, mark at risk.
- edit CSS3-UI CR draft accordingly that is ready for PR
- WG processes for taking it to PR
Remaining related Firefox bugs/development tasks (stub/incomplete)
For each of these, figure out who is the right Mozilla developer to work on this and then work with to understand what it will take to get it implemented:
- cursor / border-radius interaction bug: 595652
- if/when fixed, add that detail to spec
- cursor on root element applying to viewport: 568450
- if/when fixed, add that detail to spec
- icon support: http://www.w3.org/TR/css3-ui/#element
- 'icon' property
- 'content:icon' value
- box-sizing prefix drop: https://bugzilla.mozilla.org/show_bug.cgi?id=243412
- ...
Additional CSS3 UI related features in Mozilla to investigate:
CSS4 UI
- write CSS4 UI FPWD with:
- previous CSS3-UI features that got dropped
- stuff from CSS3 UI CR that only had one implementation (that we believe is worthy of standardizing, or at least one other implementer expresses interest on)
- stuff from and related to previous CSS3 UI drafts that's been reraised
- 'user-input'
- 'user-focus'
- 'user-modify'
- 'user-select'
- all suggested to replace 'contentEditable': www-style: Implementing contentEditable in CSS3 UI
- other CSS features that are UI related in other CSS or other W3C specs
- :placeholder pseudo-class. related: bug 457801
- overflow-radius per implementation: Mozilla supports -moz-outline-radius (no second implementation however - thus in CSS4 UI)
- CSS3 Hyperlink
- text-overflow:<string>. consider incorporating dropped <string> value. Here are the markup changes for that:
<td>clip | ellipsis |
<a class="noxref" href="http://www.w3.org/TR/CSS21/syndata.html#value-def-string">
<span class="value-inst-string"><string></span></a>
</td>
...
<dt><dfn title="text-overflow:<string>">
<code><var><string></var></code></dfn></dt>
<dd>Render the given string to represent clipped text.</dd>
- HTML5 inputs/forms features that are presentation related
- new features
- CSS portions of Gecko:FullScreenAPI, e.g. the new pseudo-classes
- new 'resize' values - e.g. grow-vertical, grow-horizontal
- Facebook uses some JS to add rows to text areas when you hit the end of the available space. It feels nicer than a scrollbar because you can see all of what you typed -- the height of the text area just grows and grows as you need it. It would be great to have 'resize' property values that allow the browser to auto-grow a textarea as a user enters data, e.g. 'grow-horizontal', 'grow-vertical'. 'grow-vertical' would emulate the current behavior that FB does with JS. (note from fantasai - this is the behavior you'd get with fixed min-height and auto height, so CSS can do this already if HTML doesn't get in the way)
- Update 2011-032: @LeaVerou requested "elastic textarea effect with pure CSS" and follow-up: "mostly about height, not width" which sounds like resize:grow-vertical. There's also mention of "-moz-available" (need to research that and link it up).
- forward reaching properties/values to enable native-like interfaces
- 'spell-check'
- 'grammar-check'
- both suggested by: www-style: Re: Implementing contentEditable in CSS3 UI
- more "overflow" extensions: http://wiki.csswg.org/spec/css3-overflow
CSS3 Element
write up moz-element proposal
Firefox 4 implements background: -moz-element(#foo); to use element with id foo as the background per http://hacks.mozilla.org/2010/08/mozelement/
We're pursuing adding element(#foo) as an "at-risk" feature to the CSS3 Values and Units module.
Proposal (worked with Tab Atkins)
Threads:
Thoughts:
- CSS image() value - which Tab Atkins is already writing up
- Add both to CSS3 Values and Units as at risk for taking it quickly to CR
- in addition to the calc() work that David Baron is already doing in CSS3 Values and Units
CSS4 Color
- collect new features for CSS3.1/4 Color - color-correction
- follow-up on color management properties for css3-color that were discussed at 2009 November TPAC CSS f2f (but later punted from css3-color to a future version).
- check minutes from that meeting for details on conclusions of the property (name, values etc.)
- contact Beth regarding level of implementation interest, plan to move forward with putting the color management property into a post-css3 working draft of the Color Module
- write a first working draft of CSS3.1/4 Color with collected feature(s) (even if it includes just a new color management property)
- find out where Hixie's tests went (was at http://test.csswg.org/source/contributors/hixie/incoming/css3-color/ ) and figure out what to do with them.
DOM API vendor prefixing
spec implementation problem statement
Problem statement: the specification-implementation co-dependency problem.
All standards in development have the challenging seemingly contradictory problems of:
- needing some implementation to reality-check that the API/protocol/format "works" as intended, or is workable/usable
- being stuck with a specific (often buggy) implementation once it ships because there's content/pages/apps out there that depend on it.
There are three areas of the open web app platform that this has been problematic:
- CSS. In the past, some properties were implemented, either as spec'd (and the spec was buggy), or in a way that made sense but incompatible with the spec (because the spec didn't make sense or was not useful to web authors), and then we got "stuck" with those implementations and were not able to update/fix the spec and the respective properties and/or values. Examples:
- 'clip' property. mis-specified in CSS 2.0. implemented as presumed intended in IE4/Windows etc. but turned out to be buggy. some content started depending on it. we (CSS WG at the time) were unable to really fix it in a way that implementations could change, though CSS 2.1 tries to fix clip.
- 'word-wrap' property. in this case, created/proposed by Microsoft, and implemented as of IE5.5/Windows ca 2000, we are again, kind of stuck with the particular implementation. Forum posts as of 2002 were recommending use of the literal word-wrap property. Though since Microsoft did switch to advocating/supporting a prefixed version '-ms-word-wrap'. Note that it is also supported in Firefox 3.5 ca 2009, and it is in the latest (2007) version of the CSS3 Text spec which is just a working draft.
- See related 'word-break' property (word-break in CSS3 Text WD - latest, 2007), also initially (partially) implemented in Internet Explorer 5.x as word-break, and later switched to the prefixed '-ms-word-break'. More on CSS Compatibility and Internet Explorer.
- HTML. Too many examples to list here. Some browsers are still stuck supporting
<blink>
and <marquee>
(which has many odd details), nevermind the classic example of <table>
layout, with tons of odd special cases and error-handling for compat, originally from Netscape's implementation, reverse-engineered by Microsoft in Internet Explorer, which has subsequently been reverse-engineered by every other browser.
- DOM. In particular Web Storage working draft (e.g. the 'localStorage' attribute/property) was implemented in multiple browsers (IE8+, Chrome, Safari, Opera, Mozilla as of 2010 - date order unknown). By the time people discovered it was not threadsafe as specified, it was too late to change the spec to fix that problem - it would have broken too many apps/sites already written which apparently depended on it.
existing solutions
The only one of these areas of technology that has an explicit solution to the specification-implementation co-dependency problem is CSS, through vendor-prefixes.
CSS vendor prefixes
In the early 2000s the participants in the CSS working group agreed to formalize a way for implementors to build experimental implementations of new properties and values which were only in a working draft (not yet in a Candidate Recommendation) without saddling the property with implementation specific bugs that content would end up inadvertently depending on.
CSS prefixing is fairly straight forward:
- abbreviated_vendor_prefix - property_name
(spaces added for clarification of the different components)
Examples include:
- -moz-opacity
- -o-border-radius
- -webkit-border-radius
- -ms-word-wrap
CSS vendor prefixes case studies
- border-radius. for a few years now browsers have been implementing vendor prefixed versions of the border-radius properties, web authors have been experimenting on the web, and the spec has iterated/improved based on feedback. Now we have a well-designed and road-tested 'border-radius' property in a CR spec and implementations are implementing that.
- word-wrap vs whitespace: pre-wrap. interactions between new properties and new values on existing properties. See this example of the property vs value interaction between the new 'word-wrap' property and the (sometimes prefixed) new 'pre-wrap' value on the 'whitespace' property. The point is to show how prefixing can actually work across different approaches to evolving CSS.
CSS vendor prefixes successes
Several well known web designers and developers have written at length about the successes of CSS vendor prefixes, and how they have both helped avoid problems from before, and actually improve the evolution of CSS.
- A List Apart: Prefix or Posthack by Eric Meyer
- WIRED Webmonkey: Advice From the CSS Guru: Embrace Prefixes by By Michael Calore
- The Haystack: Coping with CSS vendor prefixes by Stephen Hay
- Snook.ca: NOT SUPPORTED by Jonathan Snook
- Anne van Kesteren: In defense of CSS prefixes by Anne van Kesteren
analysis of applicability
Can we apply similar thinking and solutions to HTML and/or DOM?
For HTML (or any markup) the thinking is no - because of the fact that an element only allows one tagname, there is no way to have content first use a vendor prefixed tagname (or tagnames from multiple vendors), and then also use a final unprefixed tagname all at the same time as part of a content evolution/transition strategy. CSS vendor prefixing works (as illustrated in the case studies) because authors can create style sheets that use multiple versions of a property (vendor prefixed and unprefixed) in one style sheet, together while evolving their content over time.
For DOM, it is not only possible, but there are examples in the wild.
mozOrientation is a good example of a vendor prefixed DOM interface implementation. (Note mozOrientation needs to be submitted to a W3C working group for standardization/iteration)
simple DOM vendor prefixes proposal
For all DOM interfaces that are:
- Proprietary. No standards organization draft yet published. OR
- In a W3C working draft, not yet in a Candidate Recommendation.
Use vendor prefixed interfaces and values as follows:
vendor_prefix _ unprefixed_name
E.g. in the above example of mozOrientation, we really should be using:
moz_Orientation
This works because standard DOM APIs do not use underscores.
Our goal is to establish a convention (like the above) for all such pre-CR DOM APIs that has the consensus of implementers so that we can avoid creating broken versions of APIs
simple protocol scheme prefixes proposal
The WebSockets specification (and iteration) provides a good example of a W3C Working Draft that has work also going on at the IETF (perhaps primarily), and there is a high likelihood of backwards incompatible changes being made to WebSockets's "ws:" protocol between different versions (-76, -00, -01).
Thus it is worth considering prefixing implementations of the "ws:" protocol in order to break/rev as necessary instead of being locked into a specific draft due to premature reliant adoption.
For all protocol schemes that are:
- Proprietary. No standards organization draft yet published. OR
- In a W3C or IETF working draft, not yet in a Candidate Recommendation, or perhaps public last call for IETF drafts (open to suggestions here).
Use vendor prefixed protocol schemes as follows:
vendor_prefix - unprefixed_name
E.g. WebSockets has a new ws: scheme, and we've implemented it in Firefox 4. We really should be using:
moz-ws:
Our goal is to establish a convention (like the above) for all such pre-CR protocol schemes that has the consensus of implementers so that we can avoid creating broken versions of protocols.
simple HTML attributes prefixes proposal
Implementing prefixes on element names doesn't work because you can't have more than one element name per element, and thus prefixed versions would force developers to choose between unprefixed and a particular prefixed version.
However elements do have multiple attributes, and thus prefixing can work for attributes.
For all HTML attributes that are:
- Proprietary. No standards organization draft yet published. OR
- In a W3C working draft (e.g. New in HTML5), not yet in a Candidate Recommendation.
Use vendor prefixed attributes as follows:
vendor_prefix _ unprefixed_name
E.g. HTML5 has a new 'pattern' attribute, and we've implemented it in Firefox 4. We really should be using:
moz_pattern
This works because standard HTML attributes do not use underscores.
Our goal is to establish a convention (like the above) for all such pre-CR new HTML5 attributes that has the consensus of implementers so that we can avoid creating broken versions of elements.
UI Layout
CSS3 Flex Box and Grid
There are two new CSS3 layout mechanisms being developed that could greatly assist with the layout of user interfaces.
- CSS3 Flex Box
- current working draft: http://www.w3.org/TR/css3-flexbox/
- current editor's draft: http://dev.w3.org/csswg/css3-flexbox/
- Tab's proposed update: http://dev.w3.org/csswg/css3-flexbox/Overview.new.src.html
- Tab's documentation of differences between editor's draft and his draft: http://www.xanthir.com/blog/b48Z0
- CSS3 Grid
- 2007-09-05 (current) working draft: http://www.w3.org/TR/css3-grid/
- 2008-01-06 (current) editor's draft: http://dev.w3.org/csswg/css3-grid/
- CSS3 Grid Align - not clear on the relation between Grid and Grid Align
- Alex Mogilevsky's CSS3 Grid Align first draft: http://www.interoperabilitybridges.com/css3-grid-align/
- Alex's www-style email thread announcing his draft: http://lists.w3.org/Archives/Public/www-style/2010Oct/thread.html#msg787
- 2010-11-18 (current) editor's draft: http://dev.w3.org/csswg/css3-grid-align/
Some next-steps:
- need to get in touch with Tab Atkins and catch-up on the current state of his Flex Box work vs. existing prefixed partial implementation in Firefox and Safari.
- 2010-155 briefly spoke with Tab about flex box in irc and noted that I'm working on css3-color and css3-ui first.
HTML5 spec improvements
A set of tasks/projects for improving the state of the HTML5 specification. Proposals will be moved to separate pages once mature enough for submission to standards bodies.
Most of this has been moved to HTML5: spec issues.
Next: follow-up on each, determining next steps on rejected proposals.
waiting for HTML5 improvements
keeping crappy stuff out
simplify alt attribute guidance
Moved to HTML5/img.
remove meta Content-Language
Moved to HTML5/meta
upgrade HTML4 features to be more flexible and usable
restoring pragmatic HTML4 things
Moved to HTML5/cite.
improving new features
iframe sandbox removal
Moved to HTML5/iframe.
summary naming
Moved to HTML5/summary
expand time
Moved to HTML5/time
nesting time
Moved to HTML5/time. am pm handling too.
lower priority improvements
<meter>
- poorly named. would prefer something like "gauge" but that's potentially hard(er) to spell. this is a bit bikesheddy though so not a high priority.
Web Apps Waiting For
Tasks which are awaiting follow-ups from various standards bodies/lists. Reping as necessary to keep moving forward.
CSS Waiting For
CSS3 Backgrounds and Borders
Waiting for CR of http://www.w3.org/TR/css3-background/
And then: outstanding UI related issues:
prefix removal from -moz-border-radius
Currently Mozilla's border-radius properties are prefixed with -moz- and the following bugs/issues are preventing us from removing the prefix:
- % values on border-radius. There is existing content (themes?) that depend on the legacy moz-border-radius implementation of % values that depend on the % of *width* in both dimensions.
- clipping overflow and replaced elements. We don't currently clip overflow hidden and replaced elements (e.g. img, video, canvas) to rounded corners. We need to do to this for a proper/complete implementation that won't risk creating further legacy/backward compat problems.
Bugzilla bugs:
Social and Identity
Related Features
Features/people working with:
- Account Manager - Dan Mills
- Mozilla Contacts - Michael Hanson
- Context Menu - Aza Raskin
- see related: 2010-05-03 The Context Menu Module & Microformats (JetPack)
- ...
Standards and Communities
Standards and communities to engage with (recommended, grouped by related)
identity / profiles / contacts
social web
- OAuth (including OAuth 2, xAuth, OWF)
- Activity Streams
- Federated Social Web
- ...
Events
Events I'm planning on participating in accordingly:
- September 23-25 Web Directions USA in Atlanta
Web Standards Coordination
There are a lot of people at Mozilla working with a variety of different standards bodies. With Arun's recent departure, it's more clear than ever that we need to at least have some sort of a directory of standards organizations (and sub-orgs like working groups) listing who at Mozilla is working with each.
- Standards - who is working on what standards in what organizations
Reference
Pages
Done
Completed tasks, projects, events that have no further related active work items. Will likely move to its own page as it grows, in which case, I'll probably just keep *recently* finished items here and regularly archive them.
Completed Events
- June 1-3 Open Source Bridge, Portland, OR, http://opensourcebridge.org
- June 28-30 Voices That Matter Web Design in SF http://www.voicesthatmatter.com/webdesign2010
- July 6-10 Mozilla Summit in Whistler, Canada.
- July 13 Real Estate Connect San Francisco (click on "Workshops »", search for "HTML5") at Hilton San Francisco Union Square, 333 O'Farrell Street, San Francisco, California
- participating in WORKSHOP: ConnectTech / HTML5 Is Coming, Are You Ready?
- July 17 OpenWebCamp II at Stanford
- July 18 Federated social web summit (schedule)
- more info: announcement, attendees
- August 23-25 W3C CSS WG f2f in Oslo
- September 1-3 dConstruct in Brighton - web design and development
Resolved HTML5 improvements and spec issues
reject longdesc
moved to: HTML5/img
allow date only on del ins datetime attribute
- moved to HTML5/del.
CSS
CSS Style Attributes
- CSS Style Attributes - achieved CR!
- latest published draft (CR)
- http://www.w3.org/TR/css-style-attr/
- latest development / in progress draft
- http://dev.w3.org/csswg/css-style-attr/
- spec source (for editing)
- http://dev.w3.org/csswg/css-style-attr/Overview.src.html
- test suite
- TBD
- implementation reports of the test suite
- TBD
- issues list for the current draft
- http://wiki.csswg.org/spec/css-style-attr
CSS3 Color
- CSS3 Color draft - achieved PR!
- latest published draft
- http://www.w3.org/TR/css3-color/
- latest development / in progress draft
- http://dev.w3.org/csswg/css3-color/
- spec source (for editing)
- http://dev.w3.org/csswg/css3-color/Overview.src.html
- test suite
- http://www.w3.org/Style/CSS/Test/CSS3/Color/20080721/
- implementation reports of the test suite
- http://www.w3.org/Style/CSS/Test/CSS3/Color/current/reports/
- issues list for the current last call
- http://wiki.csswg.org/spec/css3-color
CSS3 UI
Updated CSS3 UI Editor's draft with:
pointer-events
- add pointer-events A way of specifying whether an element is opaque to pointer events (and receives them) or is transparent to them (letting them get handled by what's underneath.
- CSSWG wiki: http://wiki.csswg.org/ideas/pointer-events
- https://developer.mozilla.org/en/css/pointer-events - Mozilla spec
- shipped in Firefox 3.6 - demo: http://demos.hacks.mozilla.org/openweb/pointer-events/ (bug 380573).
- See also SVG version: https://wiki.mozilla.org/SVG:Pointer-events
- http://webkit.org/specs/PointerEventsProperty.html - Webkit spec
- shipped in Safari 4.0 (bug 11395)
- Opera proposal
- related: SVG:Pointer-events
- key issue: precisely define default behavior (auto or visible etc.)
- pointer events should be defined to affect:
- application of cursor property
- :hover
- mouseevents
- touchevents
- general concept of hit-testing so that elementFromPoint can be defined in terms of it (feedback fron annevk).
text-overflow
- text-overflow. incorporated 'text-overflow', since it's more a UI/overflow thing than a typesetting thing. There are at least 3 implementations (IE, WebKit, Opera), and has a bug against Firefox: 312156
- Wanted for post-FF4; mats will be working on it, needs spec
- W3C: http://dev.w3.org/csswg/css3-text/#text-overflow
- http://www.w3.org/blog/CSS/2009/11/25/resolutions_84 for bidi discussions
- DevMo: https://developer.mozilla.org/En/CSS/text-overflow
- Webkit: http://developer.apple.com/library/safari/documentation/appleapplications/reference/SafariCSSRef/Articles/StandardCSSProperties.html#//apple_ref/doc/uid/TP30001266-SW24
- Microsoft/IE: http://msdn.microsoft.com/en-us/library/ms531174(VS.85).aspx
- write test cases for 'ellipsis' and 'clip' (default value) and confirm cross-browser support.
- Details that RoC wants:
- What style the ellipsis has (font, color, etc) ... does it come from the text or does it come from the element with text-overflow on it?
- from the element with text-overflow on it, this is what WebKit and Opera do
- need test case to see what Webkit, IE, Opera do
- does text-overflow inherit by default or not?
- Inherited: no
- how does it work with text-align:right, does the ellipsis go on the left?
- text-align does not affect text-overflow
- how does it work with bidi text, e.g. a line of Hebrew?
- it is rendered according to the 'direction' of the element.
- What about mixed bidi text e.g. English followed by Hebrew? I'm particuarly interested in the case of an LTR word followed by an RTL word that doesn't fit, e.g.
english WERBEH
where only "english HEB" fits, where should the ellipsis go?
- "english BEH…"
- Can bidi text make the ellipsis appear at the beginning of the line?
- bidi text? no. howevrer, setting 'direction:rtl' on the element will cause any ellipses to be drawn on the left side.
- what happens if there's replaced content near the end of the line, say an image?
- the image would wrap to the next line. but if there is white-space:nowrap, then...
- Do you get the ellipsis or does the image overflow?
- Images never cause ellipsis (in current implementations) per https://bugzilla.mozilla.org/show_bug.cgi?id=312156#c28
- If an ellipsis, where does the ellipsis go?
- it goes instead of the image and any text you have to remove in order to make the ellipsis fit.
- add
CSS IS AWESOME examples/tests to the spec
- capture issues and undefined aspects from fantasai/RoC emails as of 2011-031.
- clarify text per emails from fantasai/RoC
- the effect of text-overflow:ellipsis on lines whose line boxes are not direct children of the block box(es) with text-overflow.
- the behavior of text-overflow:ellipsis on a block with 'overflow' of 'scroll' (no good interop, ideal behavior documented, needs screenshots)
- testcase from RoC: http://lists.w3.org/Archives/Public/www-style/2011Jan/att-0669/test.html
- Safari scrolls the ellipsis ... and doesn't reveal any additional text - this doesn't make sense to me (RoC, nor me Tantek) as a user. If I scroll I should get to see the rest of the content. (Agreed)
- Opera scrolls the text into view until the you can see the end of the text at which point the block scrolls no further (this is ideal beahvior -t). No ellipsis is display on the otherside of the block when you start scrolling characters off the start edge.
- This seems like the best behavior so far, with the exception that as a user (and developer) I'd expect to see the text that scrolled off the start of the block get replaced by an ellipsis rather than simply clipped (agreed precisely with RoC on this and have specified this expected behavior as a SHOULD)
- Testing IE9 in standards mode showed same behavior as Safari for scrolling+ellipsis.