W3C home > Mailing lists > Public > public-multilingualweb-lt@w3.org > January 2013

RE: issue-77 Rule parsing precedence

From: Pablo Nieto Caride <pablo.nieto@linguaserve.com>
Date: Fri, 11 Jan 2013 19:18:39 +0100
To: "'Yves Savourel'" <ysavourel@enlaso.com>, <public-multilingualweb-lt@w3.org>
Cc: 'Pēteris Ņikiforovs' <peteris.nikiforovs@Tilde.lv>, 'Andis Lagzdiņš' <andis.lagzdins@Tilde.lv>
Message-ID: <02fa01cdf028$14b69300$3e23b900$@linguaserve.com>
Hi Mārcis,

Yves is correct, I'm not sure if I understand exactly what you meant but developers can place the script element and the end of the body for speeding up purposes and still use both inline and external rules without precedence or overriding problems.


> ... In such scenarios the external rules would always be overriden by 
> the inline rules and there would not be a possibility to use them in 
> such loading time sensitive scenarios (thus also my concern on the 
> limitation ...).

I'm still not sure I understand:
As far as I know *in any scenario* all global rules are overridden by the local ones.


so external rules are always overridden by local attribute, just like in CSS.

or am I missing something?

> However, there is also a limitation – if prioritization is a top-down 
> one, the external rules can never override global rules that are in <body> tags!
> Please correct me if I am mistaken here?!

It can: an its:rules inside a <script> can have a link to an external file.

In other words, you have two ways to get external rules in HTML: the <link> element or the link attribute in <its:rules> inside <script>.

Received on Friday, 11 January 2013 18:19:09 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:32:00 UTC