Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css-cascade] Make an example easier to understand #664

Closed
xfq opened this issue Oct 29, 2016 · 0 comments
Closed

[css-cascade] Make an example easier to understand #664

xfq opened this issue Oct 29, 2016 · 0 comments

Comments

@xfq
Copy link
Member

xfq commented Oct 29, 2016

I think an example in the Important Declarations section can be improved.

That example includes six rules from two style sheets, and uses a long paragraph to explain which value/declaration is the winning one. Although the explanation is correct, it is not very intuitive.

IMHO adding something like the following after the </pre> (no need to remove the explanation paragraph) will make the example easier to grasp:

<table class="data">
    <thead>
        <tr>
            <th>Property
            <th>Winning value
    <tbody>
        <tr>
            <th>'text-indent'
            <td><css>1em</css>
        <tr>
            <th>'font-style'
            <td><css>italic</css>
        <tr>
            <th>'font-size'
            <td><css>12pt</css>
        <tr>
            <th>'font-family'
            <td><css>sans-serif</css>
</table>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants