Re: dynamic states and pseudo elements for inline styles

Zack Weinberg <zackw@panix.com>:
> Right
> now, the contents of a style attribute are syntactically and
> functionally identical to the contents of a declaration block.  We
> could maintain that equivalence if pseudo-class/element blocks were
> allowed inside declaration blocks in general, as well as per-element
> style properties.
> 
> <header><a style="
>              color: #000; text-decoration: none;
>   :visited { color: #000; text-decoration: none; }
>   :hover   { color: #222; text-decoration: underline }
> " href="/">This is the Name of My Site</a></header>

Could also be fixed with Selectors-based HTML attributes:

  <header><a style="color: #000; text-decoration: none;"
     style:visited="color: #000; text-decoration: none;"
       style:hover="color: #222; text-decoration: underline"
  href="/">This is the Name of My Site</a></header>

  <header><a style="color: #000; text-decoration: none;"
     style-visited="color: #000; text-decoration: none;"
       style-hover="color: #222; text-decoration: underline"
  href="/">This is the Name of My Site</a></header>

Received on Friday, 11 November 2016 14:36:08 UTC