[css-values] Readibility Poll

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[css-values] Readibility Poll

fantasai
Wrt resolution in https://lists.w3.org/Archives/Public/www-style/2016May/0209.html
Preferences on wording?

Version A:

   If a ''url()''’s value starts with a U+0023 NUMBER SIGN (<code>#</code>),
   parse and compute it as described above for relative URLs,
   but always resolve that fragment against the currently-active base URL.
   This reference must always be treated as same-document
   (rather than cross-document).
   Additionally, when serializing such a ''url()'',
   serialize just the fragment.

Version B:

   If a ''url()''’s value starts with a U+0023 NUMBER SIGN (<code>#</code>),
   parse it as per normal for URLs,
   but additionally set the “local url flag” of the ''url()''.

   When matching a ''url()'' with the <a>local url flag</a> set,
   ignore everything but the URL's fragment,
   and resolve that fragment against the current document
   that relative URLs are resolved against.
   This reference must always be treated as same-document
   (rather than cross-document).

   When serializing a ''url()'' with the <a>local url flag</a> set,
   it must serialize as just the fragment.

~fantasai

Reply | Threaded
Open this post in threaded view
|

Re: [css-values] Readibility Poll

Florian Rivoal-4

> On Jun 9, 2016, at 08:56, fantasai <[hidden email]> wrote:
>
> Wrt resolution in https://lists.w3.org/Archives/Public/www-style/2016May/0209.html
> Preferences on wording?
>
> Version A:
>
>  If a ''url()''’s value starts with a U+0023 NUMBER SIGN (<code>#</code>),
>  parse and compute it as described above for relative URLs,
>  but always resolve that fragment against the currently-active base URL.
>  This reference must always be treated as same-document
>  (rather than cross-document).
>  Additionally, when serializing such a ''url()'',
>  serialize just the fragment.
>
> Version B:
>
>  If a ''url()''’s value starts with a U+0023 NUMBER SIGN (<code>#</code>),
>  parse it as per normal for URLs,
>  but additionally set the “local url flag” of the ''url()''.
>
>  When matching a ''url()'' with the <a>local url flag</a> set,
>  ignore everything but the URL's fragment,
>  and resolve that fragment against the current document
>  that relative URLs are resolved against.
>  This reference must always be treated as same-document
>  (rather than cross-document).
>
>  When serializing a ''url()'' with the <a>local url flag</a> set,
>  it must serialize as just the fragment.


I find B clearer and easier to follow.

 - Florian
Reply | Threaded
Open this post in threaded view
|

Re: [css-values] Readibility Poll

Zack Weinberg-2
In reply to this post by fantasai
On Wed, Jun 8, 2016 at 7:56 PM, fantasai <[hidden email]> wrote:

> Wrt resolution in
> https://lists.w3.org/Archives/Public/www-style/2016May/0209.html
> Preferences on wording?
>
> Version A:
>
>   If a ''url()''’s value starts with a U+0023 NUMBER SIGN (<code>#</code>),
>   parse and compute it as described above for relative URLs,
>   but always resolve that fragment against the currently-active base URL.
>   This reference must always be treated as same-document
>   (rather than cross-document).
>   Additionally, when serializing such a ''url()'',
>   serialize just the fragment.
>
> Version B:
>
>   If a ''url()''’s value starts with a U+0023 NUMBER SIGN (<code>#</code>),
>   parse it as per normal for URLs,
>   but additionally set the “local url flag” of the ''url()''.
>
>   When matching a ''url()'' with the <a>local url flag</a> set,
>   ignore everything but the URL's fragment,
>   and resolve that fragment against the current document
>   that relative URLs are resolved against.
>   This reference must always be treated as same-document
>   (rather than cross-document).
>
>   When serializing a ''url()'' with the <a>local url flag</a> set,
>   it must serialize as just the fragment.

I find A clearer and easier to follow.

zw