RE: issue-77 Rule parsing precedence

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.

Cheers,
Pablo.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

> ... 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.

(http://www.w3.org/TR/2012/WD-its20-20121206/#selection-precedence)

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>.

cheers,
-yves

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