-
Notifications
You must be signed in to change notification settings - Fork 240
ControlUICustomization - Common HTML structure for views #368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'm inclined to agree with this. I think we'll need to do some experimenting to see how robust the user-slotted parts are to changes in the control HTML structure. If we don't come up with a way to minimize interop issues, we might have to go further than OpenUI is currently going in restricting allowable differences in the default control HTML structure across browsers. Given how much we're specifying in OpenUI, including the structure of the control anatomy (the |
While I agree with the core of this issue, I'm loathe to jump all the way to specifying the full HTML structure. I'm guessing implementers will balk at that, for good reasons. Is there a reason why we would need to specify, for example, the HTML structure of all of the "accent" pieces of each control? For example, what if a UA wants a floating SVG logo behind one of the controls - do need need to specify a part of the control for that? Perhaps the best approach is to move ahead with specifying just the parts that are required for each control, and see how far that goes. The example given (the |
100% agree. I'd like to get buy in on the general model and see willingness from other UAs on implementing against this model before taking that next step. @jcgregorio I should note that this has been discussed by the editors of the proposal as well as in other meetings with members of the CSSWG. We plan to try and investigate this but it's a layer above this and isn't required to validate the model and get general agreement from UAs. |
Uh oh!
There was an error while loading. Please reload this page.
In the Open Questions you raise the following issue:
Allowing the developer to clear the default styles and provide their own stylesheet isn't a solution, because different platforms may have used a different HTML structure to build their control views. E.g. the slider track might be built with styled <div>s in one platform and styled <span>s in another.
I'm so glad you pointed this out because I incorrectly assumed that the complete HTML structure of each control would be fully specified.
I strongly believe that unless the entire structure of the contro is specified completely this entire specification will end up as an interoperability nightmare and everyone will stick to writing custom controls.
So the same developer-provided stylesheet would not work interoperably unless the entire control UI was replaced.
This is the core of the problem, it puts the onus of interoperability on the developer instead of on the browser.
The text was updated successfully, but these errors were encountered: