Skip to content

Instantly share code, notes, and snippets.

@jyasskin
Created July 3, 2014 19:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jyasskin/1ec78dece1c90117e295 to your computer and use it in GitHub Desktop.
Save jyasskin/1ec78dece1c90117e295 to your computer and use it in GitHub Desktop.
Notes on HTML inadequacies

I'm the editor for the C++ Library Fundamentals TS, and I keep running into missing features in various bits of the HTML ecosystem that make this more difficult than it should be. I'm starting this document to record these so I can file useful bugs in the future.

HTML

Web Components

CSS

white-space

white-space isn't powerful enough. I have a chunk of code:

template <class Fn, class... ArgTypes> struct raw_invocation_type<Fn(ArgTypes...)>;

If this fits on one line, that's great. If not, I want it to wrap like:

template <class Fn, class... ArgTypes>
struct raw_invocation_type<Fn(ArgTypes...)>;

If that doesn't fit, I want it to wrap like:

template <class Fn,
          class... ArgTypes>
struct raw_invocation_type<
    Fn(ArgTypes...)>;

white-space only gives me boolean control at each point, rather than a hierarchy. CSS3 Text anticipates the need for prioritization, but gives authors no control over it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment