W3C home > Mailing lists > Public > public-css-archive@w3.org > January 2017

Re: [csswg-drafts] [css-values] what's the base URL to be used for inline styles?

From: Boris Zbarsky via GitHub <sysbot+gh@w3.org>
Date: Thu, 12 Jan 2017 18:57:24 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-272249717-1484247443-sysbot+gh@w3.org>
Note that at least for HTML presentational attributes the HTML spec 
covers this.  For example, for <body background> it says:

> When a body element has a background attribute set to a non-empty 
value, the new value is expected to be parsed relative to the 
element's node document, and if this is successful, the user agent is 
expected to treat the attribute as a presentational hint setting the 
element's 'background-image' property to the resulting URL string.

The "parsed" bit there returns an absolute URL.

-- 
GitHub Notification of comment by bzbarsky
Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/899#issuecomment-272249717 
using your GitHub account
Received on Thursday, 12 January 2017 18:57:30 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:07 UTC